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
84041ed2
Commit
84041ed2
authored
Nov 04, 2021
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Feature/202111101-gxh' into 'master'
将文章相关的用例中的contengId固定为一篇文章 See merge request test-group/kejiji!159
parents
a7257a11
53e5444a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
ArticalPersonCard.java
.../java/com/kjj/cases/assistant/card/ArticalPersonCard.java
+1
-0
RecommendMaterial.java
...a/com/kjj/cases/assistant/homePage/RecommendMaterial.java
+1
-0
NoviceGuidance.java
...est/java/com/kjj/cases/assistant/menu/NoviceGuidance.java
+2
-6
No files found.
src/test/java/com/kjj/cases/assistant/card/ArticalPersonCard.java
View file @
84041ed2
...
...
@@ -42,6 +42,7 @@ public class ArticalPersonCard implements Authorization {
Response
response
=
network
.
getResponse
(
ARTICLE_GETEXPLOSIONCONTENTLIST
);
articleContentId
=
response
.
jsonPath
().
getString
(
"data[0].contentId"
);
Assert
.
assertNotNull
(
articleContentId
,
network
.
message
(
ARTICLE_GETEXPLOSIONCONTENTLIST
,
"获取爆款素材文章失败"
,
response
.
body
().
asString
()));
articleContentId
=
"Kj22MTk4NDc1OQ"
;
}
//文章内容页
@Test
(
description
=
"代理人_文章内容页"
,
priority
=
3
)
...
...
src/test/java/com/kjj/cases/assistant/homePage/RecommendMaterial.java
View file @
84041ed2
...
...
@@ -42,6 +42,7 @@ public class RecommendMaterial implements Authorization {
Response
response
=
network
.
getResponse
(
ARTICLE_GETEXPLOSIONCONTENTLIST
);
grasscontentId
=
response
.
jsonPath
().
getString
(
"data[0].contentId"
);
Assert
.
assertNotNull
(
grasscontentId
,
network
.
message
(
ARTICLE_GETEXPLOSIONCONTENTLIST
,
"获取种草素材文章失败"
,
response
.
body
().
asString
()));
grasscontentId
=
"Kj22MTk4NDc1OQ"
;
}
//种草文章内容页
...
...
src/test/java/com/kjj/cases/assistant/menu/NoviceGuidance.java
View file @
84041ed2
...
...
@@ -19,7 +19,7 @@ import static com.kjj.utils.ThreadSleepUtils.sleep;
public
class
NoviceGuidance
implements
Authorization
{
private
long
userId
;
//小葡萄的用户id
private
long
sellerId
;
//小葡萄的销售id
private
String
grasscontentId
;
//文章id
private
String
grasscontentId
=
"Kj22MTk4NDc1OQ"
;
//文章id
private
String
scid
;
//转发文章的scid
private
String
visitId
;
//访问id
private
static
final
NetworkUtils
network
=
NetworkUtils
.
getInstance
();
...
...
@@ -137,14 +137,10 @@ public class NoviceGuidance implements Authorization {
@Test
(
description
=
"代理人转发文章后访客查看文章"
,
priority
=
10
)
public
void
代理人转发文章
(){
//获取种草素材id
Response
response
=
network
.
getResponse
(
ARTICLE_GETEXPLOSIONCONTENTLIST
);
grasscontentId
=
response
.
jsonPath
().
getString
(
"data[0].contentId"
);
//获取素材对应的scid
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"contentId"
,
grasscontentId
);
response
=
network
.
getResponse
(
params
,
GETSCID
);
Response
response
=
network
.
getResponse
(
params
,
GETSCID
);
scid
=
response
.
jsonPath
().
getString
(
"data"
);
Assert
.
assertNotNull
(
scid
,
network
.
message
(
params
,
GETSCID
,
"获取文章的scid失败"
,
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