Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
马博
test-platform
Commits
6a1cd26b
Commit
6a1cd26b
authored
May 25, 2020
by
马博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
e530dd0d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
Qb_兑换限制测试_ExchangeTest.java
...cases/ExchangeTest/兑吧_直充类商品兑换/Qb_兑换限制测试_ExchangeTest.java
+1
-0
兑吧老优惠券_兑换流程测试_ExchangeTest.java
...a/http/cases/ExchangeTest/兑吧老优惠券_兑换流程测试_ExchangeTest.java
+2
-1
平台券_兑换流程测试_ExchangeTest.java
...java/http/cases/ExchangeTest/平台券_兑换流程测试_ExchangeTest.java
+2
-1
duiba.properties
src/test/profiles/aliyun/duiba.properties
+4
-1
No files found.
src/test/java/http/cases/ExchangeTest/兑吧_直充类商品兑换/Qb_兑换限制测试_ExchangeTest.java
View file @
6a1cd26b
...
...
@@ -138,6 +138,7 @@ public class Qb_兑换限制测试_ExchangeTest extends CheckTemplet {
public
void
用户每月兑换限制
()
throws
Exception
{
int
uid
=
7478
;
Thread
.
sleep
(
4000
);
//第一次兑换
Response
response
=
qbExchangeService
.
doTakePrize
(
authorization
.
dafuwengLogin
(
uid
),
"12343432554"
,
"3"
);
String
orderId
=
(
String
)
response
.
jsonPath
().
get
(
"orderId"
);
...
...
src/test/java/http/cases/ExchangeTest/兑吧老优惠券_兑换流程测试_ExchangeTest.java
View file @
6a1cd26b
...
...
@@ -325,6 +325,7 @@ public class 兑吧老优惠券_兑换流程测试_ExchangeTest extends CheckTem
String
orderId
=
this
.
优惠券兑换订单
(
appItemId
,
itemId
,
uid
);
logger
.
info
(
"订单号:"
+
orderId
);
Thread
.
sleep
(
3000
);
//订单审核,判断是否在待审核节点
Map
<
String
,
Object
>
mapOrder
=
jdbc
.
findSimpleResult
(
"SELECT * FROM "
+
Database
.
orders_consumer
+
"."
+
Database
.
orders9
+
" WHERE id = "
+
orderId
);
String
flowWork
=
String
.
valueOf
(
mapOrder
.
get
(
"flowwork_stage"
));
...
...
@@ -348,7 +349,7 @@ public class 兑吧老优惠券_兑换流程测试_ExchangeTest extends CheckTem
//判断订单是否审核成功,如果订单没有成功则继续审核
int
j
=
10
;
while
(
j
>
0
&&
!
flowWork
.
equals
(
"Success-complete"
))
{
Thread
.
sleep
(
1
000
);
Thread
.
sleep
(
3
000
);
auditResponse
=
dsOrderService
.
submitAudit
(
"22542"
,
orderId
,
"pass"
,
authorization
.
hdLoginCommonNew
(
"15833333333"
));
mapOrder
=
jdbc
.
findSimpleResult
(
"SELECT * FROM "
+
Database
.
orders_consumer
+
"."
+
Database
.
orders9
+
" WHERE id = "
+
orderId
);
flowWork
=
String
.
valueOf
(
mapOrder
.
get
(
"flowwork_stage"
));
...
...
src/test/java/http/cases/ExchangeTest/平台券_兑换流程测试_ExchangeTest.java
View file @
6a1cd26b
...
...
@@ -40,7 +40,8 @@ public class 平台券_兑换流程测试_ExchangeTest extends CheckTemplet {
// private MysqlUtils jdbc;
// @BeforeClass
// @BeforeClassF优惠券用户批次兑换限制测试()
// public void before(){
//
// jdbc = MysqlUtils.mysqlDuiba("");
...
...
src/test/profiles/aliyun/duiba.properties
View file @
6a1cd26b
...
...
@@ -28,7 +28,10 @@ db.password= 2Fe36uDap8TMqtfzob3f1u8r2aK8qjdnwPP
//
db.url
=
jdbc:mysql://47.97.127.67:13001/?tinyInt1isBit=false
#db.url = jdbc:mysql://autotest-config.duibatest.com.cn:3306/?tinyInt1isBit=false&connectTimeout=10000&socketTimeout=10000
db.url
=
jdbc:mysql://auto.testdb2.duibar.com:3306/?serverTimezone=UTC&tinyInt1isBit=false&connectTimeout=10000&socketTimeout=10000
#db.url = jdbc:mysql://auto.testdb2.duibar.com:3306/?serverTimezone=UTC&tinyInt1isBit=false&connectTimeout=10000&socketTimeout=10000
db.url
=
jdbc:mysql://auto.testdb2.duibar.com:5306/?serverTimezone=UTC&tinyInt1isBit=false&connectTimeout=10000&socketTimeout=10000
db.driver
=
com.mysql.cj.jdbc.Driver
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment