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
12d5168b
Commit
12d5168b
authored
Aug 25, 2021
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改亲友券和客户承诺话术
parent
535da535
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
17 deletions
+22
-17
SaveLive.java
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
+4
-4
RelativeLottery.java
...test/java/com/kjj/cases/live/lottery/RelativeLottery.java
+10
-10
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+3
-3
liveTestNG.xml
src/test/liveTestNG.xml
+5
-0
No files found.
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
View file @
12d5168b
...
@@ -2425,13 +2425,13 @@ public class SaveLive implements Authorization {
...
@@ -2425,13 +2425,13 @@ public class SaveLive implements Authorization {
ssoLogin
();
ssoLogin
();
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Params
.
put
(
"gifted
LotteryUrl"
,
"
"
);
Params
.
put
(
"gifted
Img"
,
"https://yun.dui88.com/kjy/image/20210825/1629861430316.png
"
);
Params
.
put
(
"notGifted
LotteryUrl"
,
"
"
);
Params
.
put
(
"notGifted
Img"
,
"https://yun.dui88.com/kjy/image/20210825/1629861425857.png
"
);
Params
.
put
(
"pop
LotteryUrl"
,
"
"
);
Params
.
put
(
"pop
Img"
,
"https://yun.dui88.com/kjy/image/20210825/1629861435394.png
"
);
Params
.
put
(
"envelopeWord"
,
"这是信封话术"
);
Params
.
put
(
"envelopeWord"
,
"这是信封话术"
);
Params
.
put
(
"lotteryName"
,
"亲友抽奖券"
);
Params
.
put
(
"lotteryName"
,
"亲友抽奖券"
);
Params
.
put
(
"lotteryNum"
,
3
);
Params
.
put
(
"lotteryNum"
,
3
);
Params
.
put
(
"lottery
Instruction
"
,
"这是亲友抽奖券的说明"
);
Params
.
put
(
"lottery
Desc
"
,
"这是亲友抽奖券的说明"
);
Response
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MANAGER_relativeLottery
);
Response
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MANAGER_relativeLottery
);
System
.
out
.
println
(
response
.
body
().
asString
());
System
.
out
.
println
(
response
.
body
().
asString
());
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
...
...
src/test/java/com/kjj/cases/live/lottery/RelativeLottery.java
View file @
12d5168b
...
@@ -72,7 +72,7 @@ public class RelativeLottery implements Authorization {
...
@@ -72,7 +72,7 @@ public class RelativeLottery implements Authorization {
}
}
@Test
(
description
=
"访客H收下抽奖券"
,
priority
=
20
)
@Test
(
description
=
"访客H收下抽奖券"
,
priority
=
4
)
public
void
访客
H
收下抽奖券
()
{
public
void
访客
H
收下抽奖券
()
{
visitorAuth9
();
visitorAuth9
();
Map
<
String
,
Object
>
bindingParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
bindingParam
=
new
HashMap
<>();
...
@@ -82,7 +82,7 @@ public class RelativeLottery implements Authorization {
...
@@ -82,7 +82,7 @@ public class RelativeLottery implements Authorization {
Assert
.
assertTrue
(
success
,
network
.
message
(
bindingParam
,
MOBILE_acceptLottery
,
"绑定失败"
,
bindingRes
.
body
().
asString
()));
Assert
.
assertTrue
(
success
,
network
.
message
(
bindingParam
,
MOBILE_acceptLottery
,
"绑定失败"
,
bindingRes
.
body
().
asString
()));
}
}
@Test
(
description
=
"访客H_分享直播间"
,
priority
=
19
)
@Test
(
description
=
"访客H_分享直播间"
,
priority
=
5
)
public
void
访客
H_
分享直播间
()
{
public
void
访客
H_
分享直播间
()
{
visitorAuth9
();
visitorAuth9
();
ThreadSleepUtils
.
sleep
(
1000
);
ThreadSleepUtils
.
sleep
(
1000
);
...
@@ -97,7 +97,7 @@ public class RelativeLottery implements Authorization {
...
@@ -97,7 +97,7 @@ public class RelativeLottery implements Authorization {
}
}
@Test
(
description
=
"根据分享类型获取分享内容"
,
priority
=
4
)
@Test
(
description
=
"根据分享类型获取分享内容"
,
priority
=
6
)
public
void
根据分享类型获取分享内容
()
{
public
void
根据分享类型获取分享内容
()
{
visitorAuth9
();
visitorAuth9
();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
...
@@ -109,7 +109,7 @@ public class RelativeLottery implements Authorization {
...
@@ -109,7 +109,7 @@ public class RelativeLottery implements Authorization {
Assert
.
assertEquals
(
mpShareTitle
,
"亲友抽奖券分享文案"
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_helpInfo
,
"根据分享类型获取分享内容"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
mpShareTitle
,
"亲友抽奖券分享文案"
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_helpInfo
,
"根据分享类型获取分享内容"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"访客H_获取小程序分享码"
,
priority
=
19
)
@Test
(
description
=
"访客H_获取小程序分享码"
,
priority
=
7
)
public
void
访客
H_
获取小程序分享码
()
{
public
void
访客
H_
获取小程序分享码
()
{
visitorAuth9
();
visitorAuth9
();
ThreadSleepUtils
.
sleep
(
1000
);
ThreadSleepUtils
.
sleep
(
1000
);
...
@@ -121,7 +121,7 @@ public class RelativeLottery implements Authorization {
...
@@ -121,7 +121,7 @@ public class RelativeLottery implements Authorization {
Assert
.
assertNotNull
(
qrCodeUrl
,
network
.
message
(
signParam
,
MOBILE_codeLottery
,
"分享失败"
,
signRes
.
body
().
asString
()));
Assert
.
assertNotNull
(
qrCodeUrl
,
network
.
message
(
signParam
,
MOBILE_codeLottery
,
"分享失败"
,
signRes
.
body
().
asString
()));
}
}
@Test
(
description
=
"访客H获取直播所有的订阅消息模板"
,
priority
=
4
)
@Test
(
description
=
"访客H获取直播所有的订阅消息模板"
,
priority
=
8
)
public
void
访客
H
获取直播所有的订阅消息模板
()
{
public
void
访客
H
获取直播所有的订阅消息模板
()
{
visitorAuth9
();
visitorAuth9
();
Map
<
String
,
Object
>
sycParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
sycParam
=
new
HashMap
<>();
...
@@ -132,7 +132,7 @@ public class RelativeLottery implements Authorization {
...
@@ -132,7 +132,7 @@ public class RelativeLottery implements Authorization {
Assert
.
assertNotNull
(
data
,
network
.
message
(
sycParam
,
BasicConfig
.
USER_wxIdAllList
,
"获取订阅消息失败"
,
sycRes
.
body
().
asString
()));
Assert
.
assertNotNull
(
data
,
network
.
message
(
sycParam
,
BasicConfig
.
USER_wxIdAllList
,
"获取订阅消息失败"
,
sycRes
.
body
().
asString
()));
}
}
@Test
(
description
=
"邀请Xmz关系绑定"
,
priority
=
20
)
@Test
(
description
=
"邀请Xmz关系绑定"
,
priority
=
9
)
public
void
邀请
Xmz
关系绑定
()
{
public
void
邀请
Xmz
关系绑定
()
{
visitorAuth26
();
visitorAuth26
();
Map
<
String
,
Object
>
bindingParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
bindingParam
=
new
HashMap
<>();
...
@@ -144,7 +144,7 @@ public class RelativeLottery implements Authorization {
...
@@ -144,7 +144,7 @@ public class RelativeLottery implements Authorization {
}
}
@Test
(
description
=
"查询访客Xmz绑定结果和绑定凭证"
,
priority
=
22
)
@Test
(
description
=
"查询访客Xmz绑定结果和绑定凭证"
,
priority
=
10
)
public
void
查询访客
Xmz
绑定结果和绑定凭证
()
{
public
void
查询访客
Xmz
绑定结果和绑定凭证
()
{
visitorAuth26
();
visitorAuth26
();
ThreadSleepUtils
.
sleep
(
2000
);
ThreadSleepUtils
.
sleep
(
2000
);
...
@@ -156,7 +156,7 @@ public class RelativeLottery implements Authorization {
...
@@ -156,7 +156,7 @@ public class RelativeLottery implements Authorization {
Assert
.
assertTrue
(
type
==
3
,
network
.
message
(
tokenParam
,
BasicConfig
.
MOBILE_Token
,
"未获取到绑定结果"
,
tokenRes
.
body
().
asString
()));
Assert
.
assertTrue
(
type
==
3
,
network
.
message
(
tokenParam
,
BasicConfig
.
MOBILE_Token
,
"未获取到绑定结果"
,
tokenRes
.
body
().
asString
()));
}
}
@Test
(
description
=
"访客Xmz给访客H助力"
,
priority
=
38
)
@Test
(
description
=
"访客Xmz给访客H助力"
,
priority
=
11
)
public
void
访客
Xmz
给访客
H
助力
()
{
public
void
访客
Xmz
给访客
H
助力
()
{
visitorAuth26
();
visitorAuth26
();
ThreadSleepUtils
.
sleep
(
2000
);
ThreadSleepUtils
.
sleep
(
2000
);
...
@@ -175,12 +175,12 @@ public class RelativeLottery implements Authorization {
...
@@ -175,12 +175,12 @@ public class RelativeLottery implements Authorization {
Params
.
put
(
"shareType"
,
14
);
Params
.
put
(
"shareType"
,
14
);
Params
.
put
(
"confId"
,
this
.
List_ConfId
.
get
(
0
).
getWelfareConfId
());
Params
.
put
(
"confId"
,
this
.
List_ConfId
.
get
(
0
).
getWelfareConfId
());
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MOBILE_assist
);
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MOBILE_assist
);
System
.
out
.
println
(
response
.
body
().
asString
());
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data
);
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
MOBILE_assist
,
"访客Xmz给访客H助力失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
MOBILE_assist
,
"访客Xmz给访客H助力失败"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"查询亲友券被领取1张"
,
priority
=
3
)
@Test
(
description
=
"查询亲友券被领取1张"
,
priority
=
12
)
public
void
查询亲友券被领取
1
张
()
{
public
void
查询亲友券被领取
1
张
()
{
visitorAuth9
();
visitorAuth9
();
Map
<
String
,
Object
>
getLiveAwardListParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
getLiveAwardListParam
=
new
HashMap
<>();
...
...
src/test/java/com/kjj/config/BasicConfig.java
View file @
12d5168b
...
@@ -142,8 +142,8 @@ public class BasicConfig {
...
@@ -142,8 +142,8 @@ public class BasicConfig {
public
static
final
String
MANAGER_secondKillUpdate
=
MANAGER_HOST
+
"/kjy/manager/live/second/kill/goods/update"
;
public
static
final
String
MANAGER_secondKillUpdate
=
MANAGER_HOST
+
"/kjy/manager/live/second/kill/goods/update"
;
//客户承诺话术配置
//客户承诺话术配置
public
static
final
String
MANAGER_saveDialogue
=
MANAGER_HOST
+
"kjy/manager/live/potential/saveDialogue"
;
public
static
final
String
MANAGER_saveDialogue
=
MANAGER_HOST
+
"
/
kjy/manager/live/potential/saveDialogue"
;
public
static
final
String
MANAGER_findDialogue
=
MANAGER_HOST
+
"kjy/manager/live/potential/findDialogue"
;
public
static
final
String
MANAGER_findDialogue
=
MANAGER_HOST
+
"
/
kjy/manager/live/potential/findDialogue"
;
public
static
final
String
MOBILE_dialogue
=
MOBILE_HOST
+
"/kjy/live/agent/potential/dialogue"
;
public
static
final
String
MOBILE_dialogue
=
MOBILE_HOST
+
"/kjy/live/agent/potential/dialogue"
;
public
static
final
String
MOBILE_potentialNum
=
MOBILE_HOST
+
"/kjy/live/agent/clue/potentialNum"
;
public
static
final
String
MOBILE_potentialNum
=
MOBILE_HOST
+
"/kjy/live/agent/clue/potentialNum"
;
...
@@ -299,7 +299,7 @@ public class BasicConfig {
...
@@ -299,7 +299,7 @@ public class BasicConfig {
public
static
final
String
MANAGER_relativeLottery
=
MANAGER_HOST
+
"/kjy/manager/fission/lottery/saveOrUpdate"
;
public
static
final
String
MANAGER_relativeLottery
=
MANAGER_HOST
+
"/kjy/manager/fission/lottery/saveOrUpdate"
;
public
static
final
String
MANAGER_detailLottery
=
MANAGER_HOST
+
"/kjy/manager/fission/lottery/detail"
;
public
static
final
String
MANAGER_detailLottery
=
MANAGER_HOST
+
"/kjy/manager/fission/lottery/detail"
;
public
static
final
String
MANAGER_switchStatusLottery
=
MANAGER_HOST
+
"/kjy/manager/fission/lottery/switchStatus"
;
public
static
final
String
MANAGER_switchStatusLottery
=
MANAGER_HOST
+
"/kjy/manager/fission/lottery/switchStatus"
;
public
static
final
String
MOBILE_allLottery
=
MOBILE_HOST
+
"kjy/live/pre/conf/all"
;
public
static
final
String
MOBILE_allLottery
=
MOBILE_HOST
+
"
/
kjy/live/pre/conf/all"
;
public
static
final
String
MOBILE_confLottery
=
MOBILE_HOST
+
"/kjy/live/fission/lottery/conf/all"
;
public
static
final
String
MOBILE_confLottery
=
MOBILE_HOST
+
"/kjy/live/fission/lottery/conf/all"
;
public
static
final
String
MOBILE_codeLottery
=
MOBILE_HOST
+
"/kjy/live/fission/lottery/user/code"
;
public
static
final
String
MOBILE_codeLottery
=
MOBILE_HOST
+
"/kjy/live/fission/lottery/user/code"
;
public
static
final
String
MOBILE_acceptLottery
=
MOBILE_HOST
+
"/kjy/live/fission/lottery/user/accept"
;
public
static
final
String
MOBILE_acceptLottery
=
MOBILE_HOST
+
"/kjy/live/fission/lottery/user/accept"
;
...
...
src/test/liveTestNG.xml
View file @
12d5168b
...
@@ -80,6 +80,11 @@
...
@@ -80,6 +80,11 @@
</classes>
</classes>
</test>
</test>
<test
preserve-order=
"true"
name=
"亲友券"
>
<classes>
<class
name=
"com.kjj.cases.live.lottery.RelativeLottery"
/>
</classes>
</test>
<test
preserve-order=
"true"
name=
"直播前-我的客户页"
>
<test
preserve-order=
"true"
name=
"直播前-我的客户页"
>
<classes>
<classes>
...
...
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