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
cf2f8d6f
Commit
cf2f8d6f
authored
Jun 05, 2019
by
马博
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/mabo' into mabo
parents
07a37391
b4306a2d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
15 deletions
+14
-15
自有活动出奖_DuibaTest.java
src/test/java/http/cases/DeveloperTest/自有活动出奖_DuibaTest.java
+6
-8
兑吧新实物_兑换流程测试_ExchangeTest.java
...va/http/cases/ExchangeTest/兑吧新实物_兑换流程测试_ExchangeTest.java
+6
-6
自有新实物_兑换流程测试_ExchangeTest.java
...ses/ExchangeTest/自有_商品兑换限制/自有新实物_兑换流程测试_ExchangeTest.java
+2
-1
No files found.
src/test/java/http/cases/DeveloperTest/自有活动出奖_DuibaTest.java
View file @
cf2f8d6f
...
...
@@ -33,7 +33,7 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
public
void
出奖自有实物
()
throws
Exception
{
Map
map
=
jdbc
.
findSimpleResult
(
"select * from stock.tb_stock where stock_id = 674900849714500524"
);
long
remaining
=
(
long
)
map
.
get
(
"stock"
);
int
remaining
=
(
int
)
map
.
get
(
"stock"
);
Response
response
=
newActivityService
.
doJoin2
(
"21803"
,
"h5ps61"
);
String
orderId
=
response
.
jsonPath
().
getString
(
"orderId"
);
response
=
newActivityService
.
getOrderStatus2
(
orderId
);
...
...
@@ -61,7 +61,7 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
Thread
.
sleep
(
1000
);
map
=
jdbc
.
findSimpleResult
(
"select * from stock.tb_stock where stock_id = 674900849714500524"
);
long
remainingNew
=
(
long
)
map
.
get
(
"stock"
);
int
remainingNew
=
(
int
)
map
.
get
(
"stock"
);
Assert
.
assertEquals
(
remaining
-
1
,
remainingNew
,
"扣库存失败"
);
...
...
@@ -170,7 +170,7 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
public
void
出奖自有虚拟商品
()
throws
Exception
{
Map
map
=
jdbc
.
findSimpleResult
(
"select * from stock.tb_stock where stock_id = 674900860200070105"
);
long
remaining
=
(
long
)
map
.
get
(
"stock"
);
int
remaining
=
(
int
)
map
.
get
(
"stock"
);
Response
response
=
newActivityService
.
doJoin2
(
"21793"
,
"h5ps61"
);
String
orderId
=
response
.
jsonPath
().
getString
(
"orderId"
);
response
=
newActivityService
.
getOrderStatus2
(
orderId
);
...
...
@@ -198,7 +198,7 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
Thread
.
sleep
(
1000
);
map
=
jdbc
.
findSimpleResult
(
"select * from stock.tb_stock where stock_id = 674900860200070105"
);
long
remainingNew
=
(
long
)
map
.
get
(
"stock"
);
int
remainingNew
=
(
int
)
map
.
get
(
"stock"
);
Assert
.
assertEquals
(
remaining
-
1
,
remainingNew
,
"扣库存失败"
);
}
...
...
@@ -206,7 +206,7 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
@Test
public
void
出奖兑吧实物
()
throws
Exception
{
Map
map
=
jdbc
.
findSimpleResult
(
"select * from stock.tb_stock where stock_id = 674900440770170322 "
);
long
remaining
=
(
long
)
map
.
get
(
"stock"
);
int
remaining
=
(
int
)
map
.
get
(
"stock"
);
Response
response
=
newActivityService
.
doJoin2
(
"22637"
,
"h5ps61"
);
String
orderId
=
response
.
jsonPath
().
getString
(
"orderId"
);
response
=
newActivityService
.
getOrderStatus2
(
orderId
);
...
...
@@ -233,12 +233,10 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
Thread
.
sleep
(
1000
);
map
=
jdbc
.
findSimpleResult
(
"select * from stock.tb_stock where stock_id = 674900440770170322 "
);
long
remainingNew
=
(
long
)
map
.
get
(
"stock"
);
int
remainingNew
=
(
int
)
map
.
get
(
"stock"
);
Assert
.
assertEquals
(
remaining
-
1
,
remainingNew
,
"扣库存失败"
);
}
@Test
...
...
src/test/java/http/cases/ExchangeTest/兑吧新实物_兑换流程测试_ExchangeTest.java
View file @
cf2f8d6f
...
...
@@ -449,19 +449,18 @@ public class 兑吧新实物_兑换流程测试_ExchangeTest extends CheckTemple
@Test
(
description
=
"新实物确认下单页面"
)
public
void
实物确认下单测试
()
throws
Exception
{
int
uid
=
7284
;
String
appItemId
=
"196093"
;
String
appSkuId
=
"154"
;
String
appItemId
=
"196218"
;
String
appSkuId
=
"145"
;
Response
response
=
gawService
.
confirmItemDetail
(
uid
,
appItemId
,
appSkuId
);
response
.
prettyPrint
();
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.items[0].sku.attr[0].value"
),
"白色"
,
"校验sku信息颜色失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.items[0].sku.attr[1].value"
),
"S"
,
"校验sku信息尺寸失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.items[0].sku.credits"
),
"
2
00"
,
"校验sku商品积分失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.items[0].multiImage"
),
"//yun.dui88.com/images/20190
5/h8x0e1talx.pn
g"
,
"校验图片信息失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.items[0].sku.credits"
),
"
1
00"
,
"校验sku商品积分失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.items[0].multiImage"
),
"//yun.dui88.com/images/20190
6/9p72lmu1qn.jp
g"
,
"校验图片信息失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.items[0].title"
),
"【自动化勿动】自有实物sku"
,
"校验实物名称失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.orderCredits"
),
"
2
00"
,
"校验订单积分失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.orderCredits"
),
"
1
00"
,
"校验订单积分失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.expressPrice"
),
"500"
,
"校验订单运费金额失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.consumerPayPrice"
),
"500"
,
"校验订单支付金额失败"
);
...
...
@@ -475,4 +474,5 @@ public class 兑吧新实物_兑换流程测试_ExchangeTest extends CheckTemple
}
src/test/java/http/cases/ExchangeTest/自有_商品兑换限制/自有新实物_兑换流程测试_ExchangeTest.java
View file @
cf2f8d6f
...
...
@@ -42,7 +42,6 @@ public class 自有新实物_兑换流程测试_ExchangeTest extends CheckTemple
return
result
;
}
@BeforeMethod
public
void
beforeMethod
(){
try
{
...
...
@@ -379,6 +378,8 @@ public class 自有新实物_兑换流程测试_ExchangeTest extends CheckTemple
}
//测试使用
//@Test(enabled=true, dataProvider="testdp", threadPoolSize=1, invocationCount=100)
@DataProvider
(
name
=
"testdp"
,
parallel
=
true
)
public
static
Object
[][]
testdp
(){
return
new
Object
[][]{
...
...
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