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
85678d97
Commit
85678d97
authored
Jan 10, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
线索重构,删除客户列表和部分接口,替换部分接口
parent
6e60b08f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
MyForward.java
...test/java/com/kjj/cases/assistant/whoSawMe/MyForward.java
+1
-1
Comment.java
src/test/java/com/kjj/cases/live/liveConfig/Comment.java
+4
-0
No files found.
src/test/java/com/kjj/cases/assistant/whoSawMe/MyForward.java
View file @
85678d97
...
@@ -127,7 +127,7 @@ public class MyForward implements Authorization {
...
@@ -127,7 +127,7 @@ public class MyForward implements Authorization {
param
.
put
(
"visitType"
,
2
);
param
.
put
(
"visitType"
,
2
);
response
=
network
.
postResponse
(
param
,
BasicConfig
.
FORWARD_LIST
);
response
=
network
.
postResponse
(
param
,
BasicConfig
.
FORWARD_LIST
);
Assert
.
assertTrue
(
response
.
jsonPath
().
getBoolean
(
"success"
),
network
.
message
(
param
,
BasicConfig
.
FORWARD_LIST
,
"接口调用失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
response
.
jsonPath
().
getBoolean
(
"success"
),
network
.
message
(
param
,
BasicConfig
.
FORWARD_LIST
,
"接口调用失败"
,
response
.
body
().
asString
()));
String
contentId
=
response
.
jsonPath
().
getString
(
"data.list[
0
].contentVo.contentId"
);
String
contentId
=
response
.
jsonPath
().
getString
(
"data.list[
1
].contentVo.contentId"
);
Assert
.
assertEquals
(
contentId
,
ARTICLE_CONTENTID
,
network
.
message
(
param
,
FORWARD_LIST
,
"筛选结果contentId与预期不符"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
contentId
,
ARTICLE_CONTENTID
,
network
.
message
(
param
,
FORWARD_LIST
,
"筛选结果contentId与预期不符"
,
response
.
body
().
asString
()));
}
}
...
...
src/test/java/com/kjj/cases/live/liveConfig/Comment.java
View file @
85678d97
...
@@ -48,6 +48,7 @@ public class Comment implements Authorization {
...
@@ -48,6 +48,7 @@ public class Comment implements Authorization {
@Test
(
description
=
"访客A发表评论"
,
priority
=
2
)
@Test
(
description
=
"访客A发表评论"
,
priority
=
2
)
public
void
访客
A
发表评论
()
{
public
void
访客
A
发表评论
()
{
visitorAuth1
();
visitorAuth1
();
sleep
(
500
);
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
Params
.
put
(
"msg"
,
"希望能好运"
);
Params
.
put
(
"msg"
,
"希望能好运"
);
...
@@ -59,6 +60,7 @@ public class Comment implements Authorization {
...
@@ -59,6 +60,7 @@ public class Comment implements Authorization {
@Test
(
description
=
"访客B回复访客A的评论"
,
priority
=
3
)
@Test
(
description
=
"访客B回复访客A的评论"
,
priority
=
3
)
public
void
访客
B
回复访客
A
的评论
()
{
public
void
访客
B
回复访客
A
的评论
()
{
visitorAuth2
();
visitorAuth2
();
sleep
(
500
);
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
Params
.
put
(
"msg"
,
"你一定会好运"
);
Params
.
put
(
"msg"
,
"你一定会好运"
);
...
@@ -71,6 +73,7 @@ public class Comment implements Authorization {
...
@@ -71,6 +73,7 @@ public class Comment implements Authorization {
@Test
(
description
=
"访客C回复访客B的回复"
,
priority
=
4
)
@Test
(
description
=
"访客C回复访客B的回复"
,
priority
=
4
)
public
void
访客
C
回复访客
B
的回复
()
{
public
void
访客
C
回复访客
B
的回复
()
{
visitorAuth3
();
visitorAuth3
();
sleep
(
500
);
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
Params
.
put
(
"msg"
,
"你也会好运的!"
);
Params
.
put
(
"msg"
,
"你也会好运的!"
);
...
@@ -110,6 +113,7 @@ public class Comment implements Authorization {
...
@@ -110,6 +113,7 @@ public class Comment implements Authorization {
@Test
(
description
=
"访客C回复小马甲"
,
priority
=
7
)
@Test
(
description
=
"访客C回复小马甲"
,
priority
=
7
)
public
void
访客
C
回复小马甲
()
{
public
void
访客
C
回复小马甲
()
{
visitorAuth3
();
visitorAuth3
();
sleep
(
500
);
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
Params
.
put
(
"msg"
,
"猜猜我是谁"
);
Params
.
put
(
"msg"
,
"猜猜我是谁"
);
...
...
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