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
2e0f515c
Commit
2e0f515c
authored
Mar 29, 2021
by
张艳玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
5f9186a8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
36 deletions
+35
-36
CloseLive.java
src/test/java/com/kjj/cases/live/CloseLive.java
+1
-1
LiveMaterial.java
src/test/java/com/kjj/cases/live/LiveMaterial.java
+15
-15
OpenLive.java
src/test/java/com/kjj/cases/live/OpenLive.java
+1
-1
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+3
-2
liveTestNG.xml
src/test/liveTestNG.xml
+15
-17
No files found.
src/test/java/com/kjj/cases/live/CloseLive.java
View file @
2e0f515c
...
...
@@ -23,7 +23,7 @@ public class CloseLive implements AdminAuthorization{
public
void
结束直播
()
{
Map
<
String
,
Object
>
closeParam
=
new
HashMap
<>();
closeParam
.
put
(
"liveid"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
closeParam
.
put
(
"cid"
,
90
);
closeParam
.
put
(
"cid"
,
101
);
Response
closeRes
=
network
.
postResponse
(
closeParam
,
BasicConfig
.
ANCHOR_CLOSE
);
Object
data
=
closeRes
.
jsonPath
().
getJsonObject
(
"data"
);
System
.
out
.
println
(
data
);
...
...
src/test/java/com/kjj/cases/live/LiveMaterial.java
View file @
2e0f515c
...
...
@@ -34,7 +34,7 @@ public class LiveMaterial implements AdminAuthorization {
saveOrUpdateParam
.
put
(
"welfareName"
,
"盲盒锦鲤"
);
saveOrUpdateParam
.
put
(
"welfarePictures"
,
"https://yun.dui88.com/kjy/image/20210304/1614844198545.jpeg"
);
saveOrUpdateParam
.
put
(
"welfarePicturesArr"
,
"https://yun.dui88.com/kjy/image/20210304/1614844198545.jpeg"
);
saveOrUpdateParam
.
put
(
"companyId"
,
90
);
saveOrUpdateParam
.
put
(
"companyId"
,
101
);
Response
saveOrUpdatePes
=
network
.
postResponse
(
saveOrUpdateParam
,
BasicConfig
.
MANAGER_SAVEORUPDATE6
);
boolean
data
=
saveOrUpdatePes
.
jsonPath
().
getBoolean
(
"data"
);
...
...
@@ -46,7 +46,7 @@ public class LiveMaterial implements AdminAuthorization {
public
void
查询福利并删除
()
{
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"companyId"
,
90
);
params
.
put
(
"companyId"
,
101
);
params
.
put
(
"pageIndex"
,
1
);
params
.
put
(
"pageSize"
,
1
);
...
...
@@ -76,7 +76,7 @@ public class LiveMaterial implements AdminAuthorization {
public
void
添加投票
()
{
Map
<
String
,
Object
>
choiceParam
=
new
HashMap
<>();
choiceParam
.
put
(
"companyId"
,
90
);
choiceParam
.
put
(
"companyId"
,
101
);
choiceParam
.
put
(
"question"
,
"投票测试一"
);
List
<
VoteListBean
>
votes
=
new
ArrayList
<>();
VoteListBean
vote
=
new
VoteListBean
();
...
...
@@ -103,7 +103,7 @@ public class LiveMaterial implements AdminAuthorization {
public
void
查询投票并删除
()
{
Map
<
String
,
Object
>
choiceListPram
=
new
HashMap
<>();
choiceListPram
.
put
(
"companyId"
,
90
);
choiceListPram
.
put
(
"companyId"
,
101
);
choiceListPram
.
put
(
"pageIndex"
,
1
);
choiceListPram
.
put
(
"pageSize"
,
1
);
...
...
@@ -131,7 +131,7 @@ public class LiveMaterial implements AdminAuthorization {
@Test
(
description
=
"问题管理"
,
priority
=
5
)
public
void
添加问题
()
{
Map
<
String
,
Object
>
questionParam
=
new
HashMap
<>();
questionParam
.
put
(
"companyId"
,
90
);
questionParam
.
put
(
"companyId"
,
101
);
questionParam
.
put
(
"question"
,
"测试问题"
);
Response
questionRes
=
network
.
postResponse
(
questionParam
,
BasicConfig
.
MANAGER_QUESTION
);
...
...
@@ -144,7 +144,7 @@ public class LiveMaterial implements AdminAuthorization {
public
void
查询问题并删除
()
{
Map
<
String
,
Object
>
question1Param
=
new
HashMap
<>();
question1Param
.
put
(
"companyId"
,
90
);
question1Param
.
put
(
"companyId"
,
101
);
question1Param
.
put
(
"pageIndex"
,
1
);
question1Param
.
put
(
"pageSize"
,
1
);
...
...
@@ -172,7 +172,7 @@ public class LiveMaterial implements AdminAuthorization {
@Test
(
description
=
"添加图文资料"
,
priority
=
7
)
public
void
添加图文资料
()
{
Map
<
String
,
Object
>
resourceParam
=
new
HashMap
<>();
resourceParam
.
put
(
"companyId"
,
90
);
resourceParam
.
put
(
"companyId"
,
101
);
resourceParam
.
put
(
"resourceTitle"
,
"图文资料2"
);
resourceParam
.
put
(
"resourceButtonTitle"
,
"我要报名"
);
resourceParam
.
put
(
"resourceImg"
,
"https://yun.dui88.com/kjy/image/20210306/1615023456356.jpeg"
);
...
...
@@ -190,7 +190,7 @@ public class LiveMaterial implements AdminAuthorization {
public
void
查询图文并删除
()
{
Map
<
String
,
Object
>
imageTextParam
=
new
HashMap
<>();
imageTextParam
.
put
(
"companyId"
,
90
);
imageTextParam
.
put
(
"companyId"
,
101
);
imageTextParam
.
put
(
"pageIndex"
,
1
);
imageTextParam
.
put
(
"pageSize"
,
1
);
imageTextParam
.
put
(
"resourceTypeList"
,
1
);
...
...
@@ -237,7 +237,7 @@ public class LiveMaterial implements AdminAuthorization {
public
void
查询链接并删除
()
{
Map
<
String
,
Object
>
linkParam
=
new
HashMap
<>();
linkParam
.
put
(
"companyId"
,
90
);
linkParam
.
put
(
"companyId"
,
101
);
linkParam
.
put
(
"pageIndex"
,
1
);
linkParam
.
put
(
"pageSize"
,
1
);
linkParam
.
put
(
"resourceTypeList"
,
9
);
...
...
@@ -267,7 +267,7 @@ public class LiveMaterial implements AdminAuthorization {
@Test
(
description
=
"添加表单"
,
priority
=
11
)
public
void
添加表单
()
{
Map
<
String
,
Object
>
formParam
=
new
HashMap
<>();
formParam
.
put
(
"companyId"
,
90
);
formParam
.
put
(
"companyId"
,
101
);
formParam
.
put
(
"resourceTitle"
,
"表单"
);
formParam
.
put
(
"resourceButtonTitle"
,
"我要报名"
);
formParam
.
put
(
"resourcePicturesArr"
,
Arrays
.
asList
(
"https://yun.dui88.com/kjy/image/20210306/1615033326937.jpg"
));
...
...
@@ -286,7 +286,7 @@ public class LiveMaterial implements AdminAuthorization {
public
void
查询表单并删除
()
{
Map
<
String
,
Object
>
form1Param
=
new
HashMap
<>();
form1Param
.
put
(
"companyId"
,
90
);
form1Param
.
put
(
"companyId"
,
101
);
form1Param
.
put
(
"pageIndex"
,
1
);
form1Param
.
put
(
"pageSize"
,
1
);
form1Param
.
put
(
"resourceTypeList"
,
12
);
...
...
@@ -315,7 +315,7 @@ public class LiveMaterial implements AdminAuthorization {
@Test
(
description
=
"免费领资料"
,
priority
=
13
)
public
void
免费领资料
()
{
Map
<
String
,
Object
>
freeParam
=
new
HashMap
<>();
freeParam
.
put
(
"companyId"
,
90
);
freeParam
.
put
(
"companyId"
,
101
);
freeParam
.
put
(
"resourceTitle"
,
"免费领资料"
);
freeParam
.
put
(
"resourceButtonTitle"
,
"领取资料"
);
freeParam
.
put
(
"resourcePicturesArr"
,
Arrays
.
asList
(
"https://yun.dui88.com/kjy/image/20210306/1615033326937.jpg"
));
...
...
@@ -334,7 +334,7 @@ public class LiveMaterial implements AdminAuthorization {
public
void
删除免费领资料
()
{
Map
<
String
,
Object
>
form1Param
=
new
HashMap
<>();
form1Param
.
put
(
"companyId"
,
90
);
form1Param
.
put
(
"companyId"
,
101
);
form1Param
.
put
(
"pageIndex"
,
1
);
form1Param
.
put
(
"pageSize"
,
1
);
form1Param
.
put
(
"resourceTypeList"
,
11
);
...
...
@@ -363,7 +363,7 @@ public class LiveMaterial implements AdminAuthorization {
@Test
(
description
=
"秒薪测试"
,
priority
=
15
)
public
void
秒薪测试
()
{
Map
<
String
,
Object
>
testParam
=
new
HashMap
<>();
testParam
.
put
(
"companyId"
,
90
);
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"
));
...
...
@@ -385,7 +385,7 @@ public class LiveMaterial implements AdminAuthorization {
public
void
删除秒薪测试
()
{
Map
<
String
,
Object
>
test1Param
=
new
HashMap
<>();
test1Param
.
put
(
"companyId"
,
90
);
test1Param
.
put
(
"companyId"
,
101
);
test1Param
.
put
(
"pageIndex"
,
1
);
test1Param
.
put
(
"pageSize"
,
1
);
test1Param
.
put
(
"resourceTypeList"
,
13
);
...
...
src/test/java/com/kjj/cases/live/OpenLive.java
View file @
2e0f515c
...
...
@@ -18,7 +18,7 @@ public class OpenLive implements AdminAuthorization {
public
void
开启直播
()
{
Map
<
String
,
Object
>
openParam
=
new
HashMap
<>();
openParam
.
put
(
"liveid"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
openParam
.
put
(
"cid"
,
90
);
openParam
.
put
(
"cid"
,
101
);
Response
openRes
=
network
.
postResponse
(
openParam
,
BasicConfig
.
ANCHOR_OPEN
);
Object
data
=
openRes
.
jsonPath
().
getJsonObject
(
"data"
);
System
.
out
.
println
(
data
);
...
...
src/test/java/com/kjj/config/BasicConfig.java
View file @
2e0f515c
...
...
@@ -3,7 +3,7 @@ package com.kjj.config;
public
class
BasicConfig
{
public
static
int
apiCount
;
//接口数量统计
// 是否开启钉钉机器人推送
public
static
final
boolean
isPushReport
=
fals
e
;
//true
public
static
final
boolean
isPushReport
=
tru
e
;
//true
// 代理人微信昵称
public
static
final
String
WECHAT_NAME
=
"嘿保险"
;
//true
...
...
@@ -163,11 +163,12 @@ public class BasicConfig {
public
static
final
String
MOBILE_ClueNum
=
MOBILE_HOST
+
"/kjy/live/agent/clue/clueNum"
;
public
static
final
String
MOBILE_ClueList
=
MOBILE_HOST
+
"/kjy/live/agent/clue/list"
;
public
static
final
String
MOBILE_A
GENTSPECIFYAWARDSUBMIN
=
MOBILE_HOST
+
"/kjy/live/agent/agentSpecifyAwardSubmit"
;
public
static
final
String
MOBILE_A
gentSpecifyAwardSubmit
=
MOBILE_HOST
+
"/kjy/live/agent/agentSpecifyAwardSubmit"
;
public
static
final
String
MOBILE_GETSHARESIGN
=
MOBILE_HOST
+
"/kjy/live/getShareSign"
;
public
static
final
String
MOBILE_binding
=
MOBILE_HOST
+
"/clue/invitation/binding"
;
public
static
final
String
MOBILE_AgentSpecifyAwardConf
=
MOBILE_HOST
+
"/kjy/live/agent/agentSpecifyAwardConf"
;
//***************直播素材*****************
public
static
final
String
MANAGER_SAVEORUPDATE6
=
MANAGER_HOST
+
"/kjy/manager/conf/base/welfare/saveOrUpdate"
;
...
...
src/test/liveTestNG.xml
View file @
2e0f515c
...
...
@@ -38,30 +38,28 @@
</classes>
</test>
<!-- <test preserve-order="true" name="指定中奖">-->
<!-- <classes>-->
<!-- <class name="com.kjj.cases.live.DesignatedWinner"/>-->
<!-- </classes>-->
<!-- </test>-->
<test
preserve-order=
"true"
name=
"指定中奖"
>
<classes>
<class
name=
"com.kjj.cases.live.DesignatedWinner"
/>
</classes>
</test>
<test
preserve-order=
"true"
name=
"访客领取资料"
>
<classes>
<class
name=
"com.kjj.cases.live.LiveVisitors"
/>
</classes>
</test>
<!-- <test preserve-order="true" name="获取代理人排行榜及客户信息">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.LiveAgent"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<test
preserve-order=
"true"
name=
"获取代理人排行榜及客户信息"
>
<classes
>
<class
name=
"com.kjj.cases.live.LiveAgent"
/
>
</classes
>
</test
>
<!-- <test preserve-order="true" name="助播-结束直播">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.CloseLive"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<test
preserve-order=
"true"
name=
"助播-结束直播"
>
<classes
>
<class
name=
"com.kjj.cases.live.CloseLive"
/
>
</classes
>
</test
>
...
...
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