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
19464595
Commit
19464595
authored
Aug 25, 2021
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自己修改
parent
d7c4b106
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
114 additions
and
45 deletions
+114
-45
Customer.java
src/test/java/com/kjj/cases/live/agent/Customer.java
+1
-1
LiveLater.java
src/test/java/com/kjj/cases/live/agent/LiveLater.java
+10
-0
Potential.java
src/test/java/com/kjj/cases/live/agent/Potential.java
+17
-7
SaveLive.java
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
+80
-32
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+6
-5
No files found.
src/test/java/com/kjj/cases/live/agent/Customer.java
View file @
19464595
...
...
@@ -254,7 +254,7 @@ public class Customer implements Authorization {
int
chanceType
=
response
.
jsonPath
().
getInt
(
"data.chanceType"
);
Assert
.
assertTrue
(
chanceType
==
1
,
network
.
message
(
BasicConfig
.
MOBILE_followChanceDetail
,
"跟进类型非咨询"
,
response
.
body
().
asString
()));
String
question
=
response
.
jsonPath
().
getString
(
"data.question"
);
Assert
.
assertEquals
(
question
,
"
咨询问题一
"
,
network
.
message
(
BasicConfig
.
MOBILE_followChanceDetail
,
"咨询问题为null"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
question
,
"
一度问题1
"
,
network
.
message
(
BasicConfig
.
MOBILE_followChanceDetail
,
"咨询问题为null"
,
response
.
body
().
asString
()));
}
...
...
src/test/java/com/kjj/cases/live/agent/LiveLater.java
View file @
19464595
...
...
@@ -353,4 +353,14 @@ public class LiveLater implements Authorization {
e
.
printStackTrace
();
}
}
@Test
(
description
=
"直播后准客户数量统计"
,
priority
=
20
)
public
void
直播后准客户数量统计
(){
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_clueChanceList
);
System
.
out
.
println
(
response
.
body
().
asString
());
int
potentialNum
=
response
.
jsonPath
().
getInt
(
"data.potentialNum"
);
Assert
.
assertEquals
(
potentialNum
,
1
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_clueChanceList
,
"准客户数量错误"
,
response
.
body
().
asString
()));
}
}
src/test/java/com/kjj/cases/live/agent/Potential.java
View file @
19464595
...
...
@@ -28,14 +28,16 @@ public class Potential implements Authorization {
}
@Test
(
description
=
"
获取推送问题咨询
"
,
priority
=
2
)
public
void
获取推送问题
()
{
@Test
(
description
=
"
一度用户获取话术模板
"
,
priority
=
2
)
public
void
一度用户获取话术模板
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
Response
response
=
network
.
getResponse
(
Params
,
BasicConfig
.
ANCHOR_questions
);
Response
response
=
network
.
getResponse
(
Params
,
BasicConfig
.
MOBILE_dialogue
);
System
.
out
.
println
(
response
.
body
().
asString
());
bizConfId
=
response
.
jsonPath
().
getString
(
"data[0].id"
);
Assert
.
assertNotNull
(
bizConfId
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_questions
,
"为获取到问题ID"
,
response
.
body
().
asString
()));
String
promiseTitle
=
response
.
jsonPath
().
getString
(
"data.promiseTitle"
);
Assert
.
assertEquals
(
promiseTitle
,
"一度承诺标题"
,
network
.
message
(
Params
,
BasicConfig
.
MOBILE_dialogue
,
"一度用户标题"
,
response
.
body
().
asString
()));
bizConfId
=
response
.
jsonPath
().
getString
(
"data.quesList[0].id"
);
Assert
.
assertNotNull
(
bizConfId
,
network
.
message
(
Params
,
BasicConfig
.
MOBILE_dialogue
,
"未获取到问题ID"
,
response
.
body
().
asString
()));
}
...
...
@@ -104,7 +106,15 @@ public class Potential implements Authorization {
}
@Test
(
description
=
"二度用户获取话术模板"
,
priority
=
8
)
public
void
二度用户获取话术模板
()
{
visitorAuth5
();
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
Response
response
=
network
.
getResponse
(
Params
,
BasicConfig
.
MOBILE_dialogue
);
System
.
out
.
println
(
response
.
body
().
asString
());
String
promiseTitle
=
response
.
jsonPath
().
getString
(
"data.promiseTitle"
);
Assert
.
assertEquals
(
promiseTitle
,
"二度承诺标题"
,
network
.
message
(
Params
,
BasicConfig
.
MOBILE_dialogue
,
"一度用户标题"
,
response
.
body
().
asString
()));
}
}
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
View file @
19464595
This diff is collapsed.
Click to expand it.
src/test/java/com/kjj/config/BasicConfig.java
View file @
19464595
...
...
@@ -141,6 +141,12 @@ public class BasicConfig {
public
static
final
String
MANAGER_secondKillDel
=
MANAGER_HOST
+
"/kjy/manager/live/second/kill/goods/delete"
;
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_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_potentialNum
=
MOBILE_HOST
+
"/kjy/live/agent/clue/potentialNum"
;
// *************** 闯关答题 ***************
public
static
final
String
MANAGER_addOrUpdateQues
=
MANAGER_HOST
+
"/kjy/manager/pass/ques/addOrUpdateQues"
;
public
static
final
String
MANAGER_deleteQues
=
MANAGER_HOST
+
"/kjy/manager/pass/ques/deleteQues"
;
...
...
@@ -413,11 +419,6 @@ public class BasicConfig {
public
static
final
String
MANAGER_popupDetail
=
MANAGER_HOST
+
"/kjy/manager/live/auth/popup/detail"
;
public
static
final
String
MANAGER_popupUpdate
=
MANAGER_HOST
+
"/kjy/manager/live/auth/popup/update"
;
//准客户
public
static
final
String
MANAGER_potentialSaveQues
=
MANAGER_HOST
+
"/kjy/manager/live/potential/saveQues"
;
public
static
final
String
MANAGER_potentialQuesList
=
MANAGER_HOST
+
"/kjy/manager/live/potential/quesList"
;
//客户管理
public
static
final
String
MOBILE_potentialCount
=
MOBILE_HOST
+
"/kjy/live/agent/customer/potentialCount"
;
public
static
final
String
MOBILE_customerList
=
MOBILE_HOST
+
"/kjy/live/agent/customer/list"
;
...
...
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