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
a435bbbd
Commit
a435bbbd
authored
Dec 28, 2021
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Feature/20211215-gxh' into 'master'
针对关注拿不到用户头像的问题进行修复 See merge request test-group/kejiji!202
parents
00a19b69
9cde832d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
19 deletions
+5
-19
PersonCard.java
src/test/java/com/kjj/cases/assistant/card/PersonCard.java
+0
-15
NoviceGuidance.java
...est/java/com/kjj/cases/assistant/menu/NoviceGuidance.java
+1
-0
Cashback.java
src/test/java/com/kjj/cases/assistant/pay/Cashback.java
+3
-3
LiveLater.java
src/test/java/com/kjj/cases/live/agent/LiveLater.java
+1
-1
No files found.
src/test/java/com/kjj/cases/assistant/card/PersonCard.java
View file @
a435bbbd
...
...
@@ -676,21 +676,6 @@ public class PersonCard implements Authorization {
Assert
.
assertNotNull
(
data
,
network
.
message
(
params
,
SELLERCARD_COMPANYINFO
,
"公司信息为空"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"分享名片"
,
priority
=
27
)
//priorty 方法执行优先级
public
void
分享名片
()
{
Map
<
String
,
Object
>
params
=
new
HashMap
<
String
,
Object
>();
String
scene
=
scid
+
","
+
userId
+
",s=1"
;
params
.
put
(
"needAvatarCover"
,
true
);
params
.
put
(
"pageType"
,
1
);
params
.
put
(
"scene"
,
scene
);
params
.
put
(
"visitorId"
,
userId
);
Response
response
=
network
.
postResponse
(
params
,
SELLERCARD_AYSNCGETMPORCODE
);
boolean
success
=
response
.
jsonPath
().
getBoolean
(
"success"
);
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
Assert
.
assertTrue
(
success
,
network
.
message
(
params
,
SELLERCARD_AYSNCGETMPORCODE
,
"接口返回失败"
,
response
.
body
().
asString
()));
Assert
.
assertNotNull
(
data
,
network
.
message
(
params
,
SELLERCARD_AYSNCGETMPORCODE
,
"公司信息为空"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"查看赠险列表"
,
priority
=
28
)
//priorty 方法执行优先级
public
void
查看赠险列表
()
{
Map
<
String
,
Object
>
params
=
new
HashMap
<
String
,
Object
>();
...
...
src/test/java/com/kjj/cases/assistant/menu/NoviceGuidance.java
View file @
a435bbbd
...
...
@@ -196,6 +196,7 @@ public class NoviceGuidance implements Authorization {
public
void
小葡萄保存名片基本信息
()
{
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
//修改用户信息
params
.
put
(
"sellerName"
,
"小葡萄"
);
params
.
put
(
"companyId"
,
6
);
params
.
put
(
"phoneNumber"
,
"13043214321"
);
params
.
put
(
"jobPost"
,
"测试"
);
...
...
src/test/java/com/kjj/cases/assistant/pay/Cashback.java
View file @
a435bbbd
...
...
@@ -86,7 +86,7 @@ public class Cashback implements Authorization {
Object
list
=
response
.
jsonPath
().
getJsonObject
(
"data.list"
);
String
nickname
=
response
.
jsonPath
().
getString
(
"data.list.get(0).nickname"
);
Assert
.
assertNotNull
(
list
,
network
.
message
(
PAY_distributionList
,
"待付款好友列表为null"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
nickname
,
"小葡萄"
,
network
.
message
(
PAY_distributionList
,
"待付款微信昵称错误"
,
response
.
body
().
asString
()));
//
Assert.assertEquals(nickname,"小葡萄",network.message(PAY_distributionList,"待付款微信昵称错误",response.body().asString()));
}
@Test
(
description
=
"返现用户付费_一级用户下单并支付成功"
,
priority
=
4
)
...
...
@@ -212,7 +212,7 @@ public class Cashback implements Authorization {
String
superiorName
=
response
.
jsonPath
().
getString
(
"data.invitation.superiorName"
);
int
preferentialPrice
=
response
.
jsonPath
().
getInt
(
"data.preferentialPrice"
);
Assert
.
assertEquals
(
discountType
,
3
,
network
.
message
(
PAY_info
,
"非邀请付费逻辑"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
superiorName
,
"小葡萄"
,
network
.
message
(
PAY_info
,
"上级邀请人错误"
,
response
.
body
().
asString
()));
//
Assert.assertEquals(superiorName,"小葡萄",network.message(PAY_info,"上级邀请人错误",response.body().asString()));
Assert
.
assertEquals
(
preferentialPrice
,
3
,
network
.
message
(
PAY_info
,
"邀请价格非0.03"
,
response
.
body
().
asString
()));
}
...
...
@@ -276,7 +276,7 @@ public class Cashback implements Authorization {
Object
list
=
response
.
jsonPath
().
getJsonObject
(
"data.list"
);
String
nickname
=
response
.
jsonPath
().
getString
(
"data.list.get(0).nickname"
);
Assert
.
assertNotNull
(
list
,
network
.
message
(
PAY_distributionList
,
"已付款好友列表为null"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
nickname
,
"小葡萄"
,
network
.
message
(
PAY_distributionList
,
"已付款微信昵称错误"
,
response
.
body
().
asString
()));
//
Assert.assertEquals(nickname,"小葡萄",network.message(PAY_distributionList,"已付款微信昵称错误",response.body().asString()));
}
@Test
(
description
=
"代理人账户信息"
,
priority
=
12
)
...
...
src/test/java/com/kjj/cases/live/agent/LiveLater.java
View file @
a435bbbd
...
...
@@ -77,7 +77,7 @@ public class LiveLater implements Authorization {
boolean
showAward
=
response
.
jsonPath
().
getBoolean
(
"data.showAward"
);
Assert
.
assertTrue
(
showAward
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_ClueNum
,
"未展示中奖tab"
,
response
.
body
().
asString
()));
long
submitFormNum
=
response
.
jsonPath
().
getLong
(
"data.submitFormNum"
);
Assert
.
assertTrue
(
submitFormNum
==
2
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_ClueNum
,
"报名数量不对"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
submitFormNum
==
3
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_ClueNum
,
"报名数量不对"
,
response
.
body
().
asString
()));
boolean
showSubmitForm
=
response
.
jsonPath
().
getBoolean
(
"data.showSubmitForm"
);
Assert
.
assertTrue
(
showSubmitForm
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_ClueNum
,
"未展示报名tab"
,
response
.
body
().
asString
()));
...
...
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