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
ed4d8426
Commit
ed4d8426
authored
Aug 16, 2021
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '20210816_gxh' into 'master'
20210816 gxh See merge request test-group/kejiji!99
parents
9f556c37
b2bc55f2
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
194 deletions
+26
-194
LiveVisitors.java
src/test/java/com/kjj/cases/live/anchor/LiveVisitors.java
+26
-142
LiveMaterial.java
...test/java/com/kjj/cases/live/liveConfig/LiveMaterial.java
+0
-52
No files found.
src/test/java/com/kjj/cases/live/anchor/LiveVisitors.java
View file @
ed4d8426
This diff is collapsed.
Click to expand it.
src/test/java/com/kjj/cases/live/liveConfig/LiveMaterial.java
View file @
ed4d8426
...
...
@@ -352,57 +352,5 @@ public class LiveMaterial implements Authorization {
}
@Test
(
description
=
"秒薪测试"
,
priority
=
15
)
public
void
秒薪测试
()
{
Map
<
String
,
Object
>
testParam
=
new
HashMap
<>();
testParam
.
put
(
"companyId"
,
101
);
testParam
.
put
(
"clueType"
,
1
);
testParam
.
put
(
"mainButtonTitle"
,
"领取门票"
);
testParam
.
put
(
"resourcePicturesArr"
,
Arrays
.
asList
(
"https://yun.dui88.com/kjy/image/20210306/1615033326937.jpg"
));
testParam
.
put
(
"resourceImg"
,
"https://yun.dui88.com/kjy/image/20210306/1615033315608.jpeg"
);
testParam
.
put
(
"resourceTitle"
,
"秒薪测试"
);
testParam
.
put
(
"saleButtonTitle"
,
"saleButtonTitle"
);
testParam
.
put
(
"testType"
,
1
);
testParam
.
put
(
"resourceButtonTitle"
,
"我要报名"
);
testParam
.
put
(
"tradeIntroducePictures"
,
"https://yun.dui88.com/kjy/image/20210306/1615040918512.jpeg"
);
Response
testRes
=
network
.
postResponse
(
testParam
,
BasicConfig
.
MANAGER_saveTest
);
Object
data
=
testRes
.
jsonPath
().
getJsonObject
(
"data"
);
System
.
out
.
println
(
data
);
Assert
.
assertNotNull
(
data
,
network
.
message
(
testParam
,
BasicConfig
.
MANAGER_saveTest
,
"新增秒薪失败"
,
testRes
.
body
().
asString
()));
}
@Test
(
description
=
"删除秒薪测试"
,
priority
=
16
)
public
void
删除秒薪测试
()
{
Map
<
String
,
Object
>
test1Param
=
new
HashMap
<>();
test1Param
.
put
(
"companyId"
,
101
);
test1Param
.
put
(
"pageIndex"
,
1
);
test1Param
.
put
(
"pageSize"
,
1
);
test1Param
.
put
(
"resourceTypeList"
,
13
);
Response
test1Res
=
network
.
getResponse
(
test1Param
,
BasicConfig
.
MANAGER_resourceList
);
WelfareListBean
data1
=
JsonUtil
.
parseResponseToBean
(
test1Res
,
WelfareListBean
.
class
);
if
(
data1
.
getTotalCount
()
>
0
)
{
WelfareBean
bean
=
data1
.
getList
().
get
(
0
);
Assert
.
assertNotNull
(
bean
,
network
.
message
(
test1Param
,
BasicConfig
.
MANAGER_resourceList
,
"查询测试失败"
,
test1Res
.
body
().
asString
()));
int
id
=
bean
.
getId
();
Map
<
String
,
Object
>
delResourceParam
=
new
HashMap
<>();
delResourceParam
.
put
(
"id"
,
id
);
Response
delResourceRes
=
network
.
postResponse
(
delResourceParam
,
BasicConfig
.
MANAGER_delResource
);
boolean
data
=
delResourceRes
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data
);
Assert
.
assertTrue
(
data
,
network
.
message
(
delResourceParam
,
BasicConfig
.
MANAGER_delResource
,
"删除测试失败"
,
delResourceRes
.
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