Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oto
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
龚小红
oto
Commits
a7257a11
Commit
a7257a11
authored
Nov 03, 2021
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Feature/202111101-gxh' into 'master'
Feature/202111101 gxh See merge request test-group/kejiji!158
parents
f35171ef
d54fc86f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
8 deletions
+6
-8
PersonCard.java
src/test/java/com/kjj/cases/assistant/card/PersonCard.java
+4
-1
Cashback.java
src/test/java/com/kjj/cases/assistant/pay/Cashback.java
+1
-1
Pay.java
src/test/java/com/kjj/cases/assistant/pay/Pay.java
+1
-1
liveTestNG.xml
src/test/liveTestNG.xml
+0
-5
No files found.
src/test/java/com/kjj/cases/assistant/card/PersonCard.java
View file @
a7257a11
...
@@ -65,10 +65,13 @@ public class PersonCard implements Authorization {
...
@@ -65,10 +65,13 @@ public class PersonCard implements Authorization {
boolean
success
=
response
.
jsonPath
().
getBoolean
(
"success"
);
boolean
success
=
response
.
jsonPath
().
getBoolean
(
"success"
);
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
WechatCard
card
=
JsonUtil
.
parseResponseToBean
(
response
,
WechatCard
.
class
);
WechatCard
card
=
JsonUtil
.
parseResponseToBean
(
response
,
WechatCard
.
class
);
System
.
out
.
println
(
response
.
body
().
asString
());
String
screenshotUrl
=
response
.
jsonPath
().
getString
(
"data.screenshotUrl"
);
String
avatar
=
response
.
jsonPath
().
getString
(
"data.screenshotUrl"
);
scid
=
response
.
jsonPath
().
getString
(
"data.scid"
);
scid
=
response
.
jsonPath
().
getString
(
"data.scid"
);
Assert
.
assertTrue
(
success
,
network
.
message
(
SELLERCARD_topOfDetail
,
"接口返回失败状态"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
success
,
network
.
message
(
SELLERCARD_topOfDetail
,
"接口返回失败状态"
,
response
.
body
().
asString
()));
Assert
.
assertNotNull
(
data
,
network
.
message
(
SELLERCARD_topOfDetail
,
"返回数据为空"
,
response
.
body
().
asString
()));
Assert
.
assertNotNull
(
data
,
network
.
message
(
SELLERCARD_topOfDetail
,
"返回数据为空"
,
response
.
body
().
asString
()));
Assert
.
assertNotNull
(
screenshotUrl
,
network
.
message
(
SELLERCARD_topOfDetail
,
"返回数据为空"
,
response
.
body
().
asString
()));
Assert
.
assertNotNull
(
avatar
,
network
.
message
(
SELLERCARD_topOfDetail
,
"返回数据为空"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
card
.
getSellerName
(),
"吉吉"
,
network
.
message
(
SELLERCARD_topOfDetail
,
"名片信息错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
card
.
getSellerName
(),
"吉吉"
,
network
.
message
(
SELLERCARD_topOfDetail
,
"名片信息错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
card
.
getJobPost
(),
"嘿嘿嘿"
,
network
.
message
(
SELLERCARD_topOfDetail
,
"名片信息错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
card
.
getJobPost
(),
"嘿嘿嘿"
,
network
.
message
(
SELLERCARD_topOfDetail
,
"名片信息错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
card
.
getPhoneNumber
(),
"13012341234"
,
network
.
message
(
SELLERCARD_topOfDetail
,
"名片信息错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
card
.
getPhoneNumber
(),
"13012341234"
,
network
.
message
(
SELLERCARD_topOfDetail
,
"名片信息错误"
,
response
.
body
().
asString
()));
...
...
src/test/java/com/kjj/cases/assistant/pay/Cashback.java
View file @
a7257a11
...
@@ -52,7 +52,7 @@ public class Cashback implements Authorization {
...
@@ -52,7 +52,7 @@ public class Cashback implements Authorization {
comboId
=
actualPayMoneyResponse
.
jsonPath
().
getString
(
"data[0].id"
);
comboId
=
actualPayMoneyResponse
.
jsonPath
().
getString
(
"data[0].id"
);
Assert
.
assertNotNull
(
comboId
,
network
.
message
(
PAY_combo
,
"套餐ID为null"
,
actualPayMoneyResponse
.
body
().
asString
()));
Assert
.
assertNotNull
(
comboId
,
network
.
message
(
PAY_combo
,
"套餐ID为null"
,
actualPayMoneyResponse
.
body
().
asString
()));
String
actualPayMoney
=
actualPayMoneyResponse
.
jsonPath
().
getString
(
"data[0].actualPayMoney"
);
String
actualPayMoney
=
actualPayMoneyResponse
.
jsonPath
().
getString
(
"data[0].actualPayMoney"
);
Assert
.
assertEquals
(
actualPayMoney
,
"
365
"
,
network
.
message
(
PAY_combo
,
"获取付费价格:价格不是365"
,
actualPayMoneyResponse
.
body
().
asString
()));
Assert
.
assertEquals
(
actualPayMoney
,
"
0.01
"
,
network
.
message
(
PAY_combo
,
"获取付费价格:价格不是365"
,
actualPayMoneyResponse
.
body
().
asString
()));
//创建支付
//创建支付
Map
<
String
,
Object
>
payParams
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
payParams
=
new
HashMap
<
String
,
Object
>();
...
...
src/test/java/com/kjj/cases/assistant/pay/Pay.java
View file @
a7257a11
...
@@ -54,7 +54,7 @@ public class Pay implements Authorization {
...
@@ -54,7 +54,7 @@ public class Pay implements Authorization {
comboId
=
actualPayMoneyResponse
.
jsonPath
().
getString
(
"data[0].id"
);
comboId
=
actualPayMoneyResponse
.
jsonPath
().
getString
(
"data[0].id"
);
Assert
.
assertNotNull
(
comboId
,
network
.
message
(
PAY_combo
,
"套餐ID为null"
,
actualPayMoneyResponse
.
body
().
asString
()));
Assert
.
assertNotNull
(
comboId
,
network
.
message
(
PAY_combo
,
"套餐ID为null"
,
actualPayMoneyResponse
.
body
().
asString
()));
String
actualPayMoney
=
actualPayMoneyResponse
.
jsonPath
().
getString
(
"data[0].actualPayMoney"
);
String
actualPayMoney
=
actualPayMoneyResponse
.
jsonPath
().
getString
(
"data[0].actualPayMoney"
);
Assert
.
assertEquals
(
actualPayMoney
,
"
365
"
,
network
.
message
(
PAY_combo
,
"获取付费价格:价格不是365"
,
actualPayMoneyResponse
.
body
().
asString
()));
Assert
.
assertEquals
(
actualPayMoney
,
"
0.01
"
,
network
.
message
(
PAY_combo
,
"获取付费价格:价格不是365"
,
actualPayMoneyResponse
.
body
().
asString
()));
}
}
...
...
src/test/liveTestNG.xml
View file @
a7257a11
...
@@ -277,10 +277,5 @@
...
@@ -277,10 +277,5 @@
<class
name=
"com.kjj.cases.live.treasure.GoldenEgg"
/>
<class
name=
"com.kjj.cases.live.treasure.GoldenEgg"
/>
</classes>
</classes>
</test>
</test>
<test
preserve-order=
"true"
name=
"企业后台后台配置"
>
<classes>
<class
name=
"com.kjj.cases.live.Corp.ManageCorp"
/>
</classes>
</test>
</suite>
</suite>
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