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
ae21ecd2
Commit
ae21ecd2
authored
Jan 18, 2019
by
赵然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zr
parent
cd6fd695
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
CustomActivity_DuibaTest.java
...p/cases/DefinedActivityTest/CustomActivity_DuibaTest.java
+1
-0
自有活动出奖_DuibaTest.java
src/test/java/http/cases/DeveloperTest/自有活动出奖_DuibaTest.java
+1
-2
页面元素测试_DuibaTest.java
...est/java/http/cases/NewActivityTest/页面元素测试_DuibaTest.java
+5
-5
No files found.
src/test/java/http/cases/DefinedActivityTest/CustomActivity_DuibaTest.java
View file @
ae21ecd2
...
...
@@ -100,6 +100,7 @@ public class CustomActivity_DuibaTest extends DuibaTestBase {
//进行接口测试传参
Response
response
=
this
.
自定义答题活动抽奖
(
activityId
,
token
,
device
);
response
.
prettyPrint
();
String
type
=
String
.
valueOf
(
response
.
jsonPath
().
getString
(
"lottery.type"
));
//根据case选择对应的校验项
...
...
src/test/java/http/cases/DeveloperTest/自有活动出奖_DuibaTest.java
View file @
ae21ecd2
...
...
@@ -88,7 +88,7 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
j
--;
}
Assert
.
assertEquals
(
flowWork
,
"SupplierExchange-started"
,
"数据库主订单流程节点校验失败"
);
Assert
.
assertEquals
(
String
.
valueOf
(
selectResult2
.
get
(
"biz_params"
)),
"胡梦新:18258853242:浙江
省
:杭州市:西湖区:西溪街道:数娱大厦 "
,
"数据库主订单biz_params校验失败"
);
Assert
.
assertEquals
(
String
.
valueOf
(
selectResult2
.
get
(
"biz_params"
)),
"胡梦新:18258853242:浙江:杭州市:西湖区:西溪街道:数娱大厦 "
,
"数据库主订单biz_params校验失败"
);
Assert
.
assertEquals
(
String
.
valueOf
(
selectResult2
.
get
(
"pay_status"
)),
"none"
,
"数据库主订单pay_status校验失败"
);
Assert
.
assertEquals
(
String
.
valueOf
(
selectResult2
.
get
(
"status"
)),
"consume_success"
,
"数据库主订单status校验失败"
);
...
...
@@ -131,7 +131,6 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
result
=
response
.
jsonPath
().
getString
(
"result"
);
i
--;
}
String
id
=
response
.
jsonPath
().
getString
(
"lottery.id"
);
String
imgurl
=
response
.
jsonPath
().
getString
(
"lottery.imgurl"
);
String
link
=
response
.
jsonPath
().
getString
(
"lottery.link"
);
...
...
src/test/java/http/cases/NewActivityTest/页面元素测试_DuibaTest.java
View file @
ae21ecd2
...
...
@@ -52,11 +52,11 @@ public class 页面元素测试_DuibaTest extends AbstractTestNGSpringContextTes
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"options[0].prizeType"
),
"thanks"
,
"校验显示谢谢参与失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"options[1].prizeType"
),
"coupon"
,
"校验显示优惠券失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"options[2].prizeType"
),
"object"
,
"校验显示实物失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"options[
3
].prizeType"
),
"alipay"
,
"校验显示支付宝失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"options[
4
].prizeType"
),
"qb"
,
"校验显示Q币失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"options[
5
].prizeType"
),
"phonebill"
,
"校验显示话费失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"options[
6
].prizeType"
),
"collectGoods"
,
"校验显示集卡失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"options[
7
].prizeType"
),
"virtual"
,
"校验显示虚拟奖失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"options[
4
].prizeType"
),
"alipay"
,
"校验显示支付宝失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"options[
5
].prizeType"
),
"qb"
,
"校验显示Q币失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"options[
6
].prizeType"
),
"phonebill"
,
"校验显示话费失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"options[
7
].prizeType"
),
"collectGoods"
,
"校验显示集卡失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"options[
3
].prizeType"
),
"virtual"
,
"校验显示虚拟奖失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"options[0].hidden"
),
"false"
,
"校验是否显示谢谢参与失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"options[1].hidden"
),
"false"
,
"校验是否显示优惠券失败"
);
...
...
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