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
c5655eaa
Commit
c5655eaa
authored
Nov 08, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Feature/20221108/inviterTask' into 'master'
增加总监盘点的接口用例 See merge request
!41
parents
46c34b9f
8c4361ea
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
131 additions
and
98 deletions
+131
-98
Manager.java
src/test/java/com/oto/cases/otoseller/Manager.java
+2
-2
Phone.java
src/test/java/com/oto/cases/otoseller/Phone.java
+3
-3
Work.java
src/test/java/com/oto/cases/otoseller/Work.java
+123
-90
BasicConfig.java
src/test/java/com/oto/config/BasicConfig.java
+2
-2
NetworkUtils.java
src/test/java/com/oto/utils/NetworkUtils.java
+1
-1
No files found.
src/test/java/com/oto/cases/otoseller/Manager.java
View file @
c5655eaa
...
@@ -145,12 +145,12 @@ public class Manager implements Authorization {
...
@@ -145,12 +145,12 @@ public class Manager implements Authorization {
PubForm
(
"1513636130"
+
i
,
"自动化测试用户"
+
i
);
PubForm
(
"1513636130"
+
i
,
"自动化测试用户"
+
i
);
}
}
// for(int i =
10;i<2
0;i++){
// for(int i =
20;i<8
0;i++){
// HashMap<String,Object> params = new HashMap<>();
// HashMap<String,Object> params = new HashMap<>();
// params.put("formId", "Kj22MTU5MQ");
// params.put("formId", "Kj22MTU5MQ");
// params.put("phoneNum", "130112100"+i);
// params.put("phoneNum", "130112100"+i);
// params.put("urlLink", "https://kjj-static.duibatest.com.cn/tk/202204111900-1?formId=Kj22MTU5MQ&channel=jrtt&agent=td");
// params.put("urlLink", "https://kjj-static.duibatest.com.cn/tk/202204111900-1?formId=Kj22MTU5MQ&channel=jrtt&agent=td");
// params.put("username", "小红用户"+i);
// params.put("username", "小红
11月
用户"+i);
// params.put("uuid", "622d83e4-ca21-4ccd-94cb-182c0f2a6b60");
// params.put("uuid", "622d83e4-ca21-4ccd-94cb-182c0f2a6b60");
// Response response = network.postResponse(params,BasicConfig.FORM_submit);
// Response response = network.postResponse(params,BasicConfig.FORM_submit);
// String recordId = response.jsonPath().getString("data.recordId");
// String recordId = response.jsonPath().getString("data.recordId");
...
...
src/test/java/com/oto/cases/otoseller/Phone.java
View file @
c5655eaa
...
@@ -627,8 +627,6 @@ public class Phone implements Authorization {
...
@@ -627,8 +627,6 @@ public class Phone implements Authorization {
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
PHONE_paper_getCustomers
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
PHONE_paper_getCustomers
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.list.size()"
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.list.size()"
);
Assert
.
assertTrue
(
size
>
0
,
network
.
message
(
BasicConfig
.
PHONE_paper_getCustomers
,
"日报列表客户为空"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
size
>
0
,
network
.
message
(
BasicConfig
.
PHONE_paper_getCustomers
,
"日报列表客户为空"
,
response
.
body
().
asString
()));
String
label
=
response
.
jsonPath
().
getString
(
"data.list[0].label"
);
Assert
.
assertEquals
(
label
,
""
,
network
.
message
(
BasicConfig
.
PHONE_paper_getCustomers
,
"客户非今日见面标签"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"提交日报"
,
priority
=
50
)
@Test
(
description
=
"提交日报"
,
priority
=
50
)
...
@@ -701,7 +699,7 @@ public class Phone implements Authorization {
...
@@ -701,7 +699,7 @@ public class Phone implements Authorization {
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_delCust
,
"删除客户失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_delCust
,
"删除客户失败"
,
response
.
body
().
asString
()));
}
}
// for(int i = 6
380;i<6385
;i++){
// for(int i = 6
549;i<6560
;i++){
// HashMap<String,Object> params = new HashMap<>();
// HashMap<String,Object> params = new HashMap<>();
// params.put("custId", i);
// params.put("custId", i);
// Response response = network.postResponse(params,BasicConfig.WORK_delCust);
// Response response = network.postResponse(params,BasicConfig.WORK_delCust);
...
@@ -738,6 +736,8 @@ public class Phone implements Authorization {
...
@@ -738,6 +736,8 @@ public class Phone implements Authorization {
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custId"
,
custId
);
params
.
put
(
"custId"
,
custId
);
params
.
put
(
"interviewType"
,
2
);
params
.
put
(
"interviewType"
,
2
);
params
.
put
(
"interviewConfId"
,
IdMakeUtil
.
encodingId
(
Work
.
sceneId
));
params
.
put
(
"custPhase"
,
custPhase
);
params
.
put
(
"custPhase"
,
custPhase
);
params
.
put
(
"custPhase"
,
custPhase
);
params
.
put
(
"appointmentTime"
,
System
.
currentTimeMillis
()+
3600000
);
params
.
put
(
"appointmentTime"
,
System
.
currentTimeMillis
()+
3600000
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
PHONE_interviewSave
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
PHONE_interviewSave
);
...
...
src/test/java/com/oto/cases/otoseller/Work.java
View file @
c5655eaa
This diff is collapsed.
Click to expand it.
src/test/java/com/oto/config/BasicConfig.java
View file @
c5655eaa
...
@@ -172,8 +172,8 @@ public class BasicConfig {
...
@@ -172,8 +172,8 @@ public class BasicConfig {
public
static
final
String
WORK_interviewAuditList
=
WORK_HOST
+
"/kjy/oto/manager/audit/getInterviewAuditList"
;
public
static
final
String
WORK_interviewAuditList
=
WORK_HOST
+
"/kjy/oto/manager/audit/getInterviewAuditList"
;
public
static
final
String
WORK_interviewAuditReject
=
WORK_HOST
+
"/kjy/oto/manager/audit/interviewAuditReject"
;
public
static
final
String
WORK_interviewAuditReject
=
WORK_HOST
+
"/kjy/oto/manager/audit/interviewAuditReject"
;
public
static
final
String
WORK_interviewAuditPass
=
WORK_HOST
+
"/kjy/oto/manager/audit/interviewAuditPass"
;
public
static
final
String
WORK_interviewAuditPass
=
WORK_HOST
+
"/kjy/oto/manager/audit/interviewAuditPass"
;
public
static
final
String
WORK_taskConfList
=
WORK_HOST
+
"/kjy/oto/manager/
sellerTask/taskConfL
ist"
;
public
static
final
String
WORK_taskConfList
=
WORK_HOST
+
"/kjy/oto/manager/
task/config/l
ist"
;
public
static
final
String
WORK_
modifyTaskConf
=
WORK_HOST
+
"/kjy/oto/manager/sellerTask/modifyTaskConf
"
;
public
static
final
String
WORK_
taskEdit
=
WORK_HOST
+
"/kjy/oto/manager/task/config/edit
"
;
public
static
final
String
WORK_statisticHeader
=
WORK_HOST
+
"/kjy/oto/manager/sellerTask/statistic/header"
;
public
static
final
String
WORK_statisticHeader
=
WORK_HOST
+
"/kjy/oto/manager/sellerTask/statistic/header"
;
public
static
final
String
WORK_taskDetailsList
=
WORK_HOST
+
"/kjy/oto/manager/sellerTask/taskDetailsList"
;
public
static
final
String
WORK_taskDetailsList
=
WORK_HOST
+
"/kjy/oto/manager/sellerTask/taskDetailsList"
;
public
static
final
String
WORK_coefficient_detail
=
WORK_HOST
+
"/kjy/oto/manager/customer/coefficient/detail"
;
public
static
final
String
WORK_coefficient_detail
=
WORK_HOST
+
"/kjy/oto/manager/customer/coefficient/detail"
;
...
...
src/test/java/com/oto/utils/NetworkUtils.java
View file @
c5655eaa
...
@@ -27,7 +27,7 @@ public class NetworkUtils {
...
@@ -27,7 +27,7 @@ public class NetworkUtils {
//cookies中的tku
//cookies中的tku
agentCookies
.
put
(
"tku"
,
AGENT_TKU
);
agentCookies
.
put
(
"tku"
,
AGENT_TKU
);
//多场景测试标志
//多场景测试标志
agentCookies
.
put
(
"_duibaServiceGroupKey"
,
"miria-3
321
"
);
agentCookies
.
put
(
"_duibaServiceGroupKey"
,
"miria-3
433
"
);
//json类型的headers
//json类型的headers
agentHeaders
.
put
(
"Content-Type"
,
"application/json"
);
agentHeaders
.
put
(
"Content-Type"
,
"application/json"
);
//二进制文件的headers
//二进制文件的headers
...
...
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