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
2e62f6b8
Commit
2e62f6b8
authored
Sep 03, 2021
by
xiamengchen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into feature/20210903-xmc
parents
b36e4c69
6419470a
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
117 additions
and
119 deletions
+117
-119
SignRed.java
src/test/java/com/kjj/cases/assistant/homePage/SignRed.java
+105
-101
Potential.java
src/test/java/com/kjj/cases/live/agent/Potential.java
+1
-11
SaveLive.java
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
+6
-6
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+0
-1
wechatTestNG.xml
src/test/wechatTestNG.xml
+5
-0
No files found.
src/test/java/com/kjj/cases/assistant/homePage/SignRed.java
View file @
2e62f6b8
This diff is collapsed.
Click to expand it.
src/test/java/com/kjj/cases/live/agent/Potential.java
View file @
2e62f6b8
...
@@ -94,19 +94,9 @@ public class Potential implements Authorization {
...
@@ -94,19 +94,9 @@ public class Potential implements Authorization {
System
.
out
.
println
(
response
.
body
().
asString
());
System
.
out
.
println
(
response
.
body
().
asString
());
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_agreeStatus
,
"客跟进机会同意状态为false"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_agreeStatus
,
"客跟进机会同意状态为false"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"获取对话模版oss地址"
,
priority
=
7
)
public
void
获取对话模版
oss
地址
()
{
Response
response
=
network
.
getResponse
(
BasicConfig
.
ANCHOR_ossDialogue
);
System
.
out
.
println
(
response
.
body
().
asString
());
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertNotNull
(
data
,
network
.
message
(
BasicConfig
.
ANCHOR_ossDialogue
,
"未获取到对话模版oss地址"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"二度用户获取话术模板"
,
priority
=
8
)
@Test
(
description
=
"二度用户获取话术模板"
,
priority
=
7
)
public
void
二度用户获取话术模板
()
{
public
void
二度用户获取话术模板
()
{
visitorAuth5
();
visitorAuth5
();
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
...
...
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
View file @
2e62f6b8
...
@@ -2327,7 +2327,7 @@ public class SaveLive implements Authorization {
...
@@ -2327,7 +2327,7 @@ public class SaveLive implements Authorization {
/**
/**
* 亲友抽奖券配置
* 亲友抽奖券配置
*/
*/
@Test
(
description
=
"保存亲友抽奖券配置"
,
priority
=
12
8
)
@Test
(
description
=
"保存亲友抽奖券配置"
,
priority
=
12
4
)
public
void
保存亲友抽奖券配置
(){
public
void
保存亲友抽奖券配置
(){
ssoLogin
();
ssoLogin
();
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
...
@@ -2345,7 +2345,7 @@ public class SaveLive implements Authorization {
...
@@ -2345,7 +2345,7 @@ public class SaveLive implements Authorization {
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_relativeLottery
,
"保存亲友券配置失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_relativeLottery
,
"保存亲友券配置失败"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"查看亲友抽奖券配置详情"
,
priority
=
12
9
)
@Test
(
description
=
"查看亲友抽奖券配置详情"
,
priority
=
12
5
)
public
void
查看亲友抽奖券配置详情
()
{
public
void
查看亲友抽奖券配置详情
()
{
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
()));
...
@@ -2360,7 +2360,7 @@ public class SaveLive implements Authorization {
...
@@ -2360,7 +2360,7 @@ public class SaveLive implements Authorization {
Assert
.
assertEquals
(
lotteryNum
,
3
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_detailLottery
,
"亲友抽奖券数量错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
lotteryNum
,
3
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_detailLottery
,
"亲友抽奖券数量错误"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"开启亲友抽奖券配置"
,
priority
=
1
30
)
@Test
(
description
=
"开启亲友抽奖券配置"
,
priority
=
1
26
)
public
void
开启亲友抽奖券配置
()
{
public
void
开启亲友抽奖券配置
()
{
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
()));
...
@@ -2371,7 +2371,7 @@ public class SaveLive implements Authorization {
...
@@ -2371,7 +2371,7 @@ public class SaveLive implements Authorization {
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_switchStatusLottery
,
"开启亲友券配置失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_switchStatusLottery
,
"开启亲友券配置失败"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"查询亲友抽奖券配置状态"
,
priority
=
1
31
)
@Test
(
description
=
"查询亲友抽奖券配置状态"
,
priority
=
1
27
)
public
void
查询亲友抽奖券配置状态
()
{
public
void
查询亲友抽奖券配置状态
()
{
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
()));
...
@@ -2388,7 +2388,7 @@ public class SaveLive implements Authorization {
...
@@ -2388,7 +2388,7 @@ public class SaveLive implements Authorization {
/**
/**
* 准客户承诺话术配置
* 准客户承诺话术配置
*/
*/
@Test
(
description
=
"保存客户承诺话术配置"
,
priority
=
1
32
)
@Test
(
description
=
"保存客户承诺话术配置"
,
priority
=
1
28
)
public
void
保存客户承诺话术配置
(){
public
void
保存客户承诺话术配置
(){
ssoLogin
();
ssoLogin
();
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
...
@@ -2404,7 +2404,7 @@ public class SaveLive implements Authorization {
...
@@ -2404,7 +2404,7 @@ public class SaveLive implements Authorization {
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_saveDialogue
,
"保存客户承诺话术配置失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_saveDialogue
,
"保存客户承诺话术配置失败"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"查看客户承诺话术配置"
,
priority
=
1
33
)
@Test
(
description
=
"查看客户承诺话术配置"
,
priority
=
1
29
)
public
void
查看客户承诺话术配置
()
{
public
void
查看客户承诺话术配置
()
{
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
()));
...
...
src/test/java/com/kjj/config/BasicConfig.java
View file @
2e62f6b8
...
@@ -108,7 +108,6 @@ public class BasicConfig {
...
@@ -108,7 +108,6 @@ public class BasicConfig {
public
static
final
String
ANCHOR_agree
=
MOBILE_HOST
+
"/kjy/live/agent/potential/agree"
;
public
static
final
String
ANCHOR_agree
=
MOBILE_HOST
+
"/kjy/live/agent/potential/agree"
;
public
static
final
String
ANCHOR_questionSubmitted
=
MOBILE_HOST
+
"/kjy/live/agent/potential/questionSubmitted"
;
public
static
final
String
ANCHOR_questionSubmitted
=
MOBILE_HOST
+
"/kjy/live/agent/potential/questionSubmitted"
;
public
static
final
String
ANCHOR_agreeStatus
=
MOBILE_HOST
+
"/kjy/live/agent/potential/agreeStatus"
;
public
static
final
String
ANCHOR_agreeStatus
=
MOBILE_HOST
+
"/kjy/live/agent/potential/agreeStatus"
;
public
static
final
String
ANCHOR_ossDialogue
=
MOBILE_HOST
+
"/kjy/live/agent/potential/ossDialogue"
;
// *************** 预告页配置 ***************
// *************** 预告页配置 ***************
public
static
final
String
MANAGER_preViewWelfareList
=
MANAGER_HOST
+
"/kjy/manager/preView/conf/welfareList"
;
public
static
final
String
MANAGER_preViewWelfareList
=
MANAGER_HOST
+
"/kjy/manager/preView/conf/welfareList"
;
...
...
src/test/wechatTestNG.xml
View file @
2e62f6b8
...
@@ -11,6 +11,11 @@
...
@@ -11,6 +11,11 @@
<class
name=
"com.kjj.cases.assistant.pay.Pay"
/>
<class
name=
"com.kjj.cases.assistant.pay.Pay"
/>
</classes>
</classes>
</test>
</test>
<test
preserve-order=
"true"
name=
"签到领红包"
>
<classes>
<class
name=
"com.kjj.cases.assistant.homePage.SignRed"
/>
</classes>
</test>
<test
preserve-order=
"true"
name=
"邀请返现"
>
<test
preserve-order=
"true"
name=
"邀请返现"
>
<classes>
<classes>
<class
name=
"com.kjj.cases.assistant.pay.Cashback"
/>
<class
name=
"com.kjj.cases.assistant.pay.Cashback"
/>
...
...
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