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
8072345b
Commit
8072345b
authored
May 09, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加OTO销售工作台移动端1.1的测试用例
parent
fd7c802d
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
309 additions
and
141 deletions
+309
-141
Phone.java
src/test/java/com/kjj/cases/otoseller/Phone.java
+287
-135
Work.java
src/test/java/com/kjj/cases/otoseller/Work.java
+13
-2
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+9
-4
No files found.
src/test/java/com/kjj/cases/otoseller/Phone.java
View file @
8072345b
This diff is collapsed.
Click to expand it.
src/test/java/com/kjj/cases/otoseller/Work.java
View file @
8072345b
...
...
@@ -246,7 +246,7 @@ public class Work implements Authorization {
int
custFlow
=
response
.
jsonPath
().
getInt
(
"data.custInfo.custFlow"
);
int
commitInsure
=
response
.
jsonPath
().
getInt
(
"data.custInfo.commitInsure"
);
int
commitPlanFlag
=
response
.
jsonPath
().
getInt
(
"data.custInfo.commitPlanFlag"
);
Assert
.
assertEquals
(
custFlow
,
1
,
network
.
message
(
params
,
BasicConfig
.
WORK_detail
,
"新客户流程组状态错误非
0
"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
custFlow
,
1
,
network
.
message
(
params
,
BasicConfig
.
WORK_detail
,
"新客户流程组状态错误非
1
"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
commitInsure
,
0
,
network
.
message
(
params
,
BasicConfig
.
WORK_detail
,
"新客户提交计划书状态错误非0"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
commitPlanFlag
,
0
,
network
.
message
(
params
,
BasicConfig
.
WORK_detail
,
"新客户投保要素确认状态错误非0"
,
response
.
body
().
asString
()));
}
...
...
@@ -416,7 +416,7 @@ public class Work implements Authorization {
params
.
put
(
"custName"
,
"自动化"
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_fuzzyCustName
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.size()"
);
Assert
.
assert
Equals
(
size
,
2
,
network
.
message
(
params
,
BasicConfig
.
WORK_fuzzyCustName
,
"客户动态条数错误"
,
response
.
body
().
asString
()));
Assert
.
assert
True
(
size
>
0
,
network
.
message
(
params
,
BasicConfig
.
WORK_fuzzyCustName
,
"客户动态条数错误"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"公域引流_删除标签"
,
priority
=
41
)
...
...
@@ -712,4 +712,15 @@ public class Work implements Authorization {
Assert
.
assertTrue
(
data
,
network
.
message
(
BasicConfig
.
WORK_cancelSchedule
,
"取消日程失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"普通销售不可查看审批管理"
,
priority
=
65
)
public
void
普通销售不可查看审批管理
(){
otosellerAuth
();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"pageIndex"
,
1
);
params
.
put
(
"pageSize"
,
20
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_interviewAuditList
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.list.size()"
);
Assert
.
assertEquals
(
size
,
0
,
network
.
message
(
BasicConfig
.
WORK_interviewAuditList
,
"查看审批列表不为空"
,
response
.
body
().
asString
()));
}
}
src/test/java/com/kjj/config/BasicConfig.java
View file @
8072345b
...
...
@@ -114,7 +114,7 @@ public class BasicConfig {
/*******OTO销售工作台*********/
public
static
final
String
OTO_TKU
=
"2RA3RVc1LEF7SnuZg
7qu8kr9mx4BEQcUy3ZmGw6EcESNTGXj1XP9rtChjMmfcnvfeQzPijhA2sbAWvYHchwK9o9b1GtjMLwvmUpJ1PdC57Y1yGJLynbr3FZ3YLURN35f9CE7sFhm3CrqT5FTo4tjpxD
"
;
public
static
final
String
OTO_TKU
=
"2RA3RVc1LEF7SnuZg
b5JDNWuiTCgii9S3tU1tUS83jyZyWSgFwREmcRF3wB1txYth5GgnEskgLHUcvfYLLa6Uqn14w6EZ2srZaJXCWVGaYbxhbv1EMnMS5QqjK54GaeEUo4d9vPQz1o9P5DmruUsgNa
"
;
// *************** 客集集域名 ***************
public
static
final
String
HOST
=
"https://kjj.m.duibatest.com.cn"
;
...
...
@@ -1372,6 +1372,9 @@ public class BasicConfig {
public
static
final
String
WORK_saveOrModifySchedule
=
WORK_HOST
+
"/kjy/oto/manager/sellerNotify/saveOrModifySchedule"
;
public
static
final
String
WORK_cancelSchedule
=
WORK_HOST
+
"/kjy/oto/manager/sellerNotify/cancelSchedule"
;
public
static
final
String
WORK_abandonCust
=
WORK_HOST
+
"/kjy/oto/manager/customer/abandonCust"
;
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_interviewAuditPass
=
WORK_HOST
+
"/kjy/oto/manager/audit/interviewAuditPass"
;
public
static
final
String
PHONE_customerList
=
PHONE_HOST
+
"/kjy/oto/manager/customer/list"
;
public
static
final
String
PHONE_customerSave
=
PHONE_HOST
+
"/kjy/oto/manager/customer/introduce/save"
;
...
...
@@ -1382,7 +1385,7 @@ public class BasicConfig {
public
static
final
String
PHONE_interviewList
=
PHONE_HOST
+
"/kjy/oto/interview/list"
;
public
static
final
String
PHONE_interviewCancel
=
PHONE_HOST
+
"/kjy/oto/interview/cancel"
;
public
static
final
String
PHONE_interviewCode
=
PHONE_HOST
+
"/kjy/oto/h5/interview/code"
;
public
static
final
String
PHONE_interviewStatus
=
PHONE_HOST
+
"/kjy/oto/h5/
interview/s
tatus"
;
public
static
final
String
PHONE_interviewStatus
=
PHONE_HOST
+
"/kjy/oto/h5/
v1/getInterviewS
tatus"
;
public
static
final
String
PHONE_interviewPhone
=
PHONE_HOST
+
"/kjy/oto/h5/interview/phone"
;
public
static
final
String
PHONE_interviewBind
=
PHONE_HOST
+
"/kjy/oto/h5/interview/bind"
;
public
static
final
String
PHONE_bindCancel
=
PHONE_HOST
+
"/kjy/oto/h5/interview/cancel"
;
...
...
@@ -1390,13 +1393,15 @@ public class BasicConfig {
public
static
final
String
PHONE_custExtDetail
=
PHONE_HOST
+
"/kjy/oto/interview/custExtDetail"
;
public
static
final
String
PHONE_interviewFeedback
=
PHONE_HOST
+
"/kjy/oto/interview/feedback"
;
public
static
final
String
PHONE_interviewDetail
=
PHONE_HOST
+
"/kjy/oto/interview/edit/detail"
;
public
static
final
String
PHONE_authPhone
=
PHONE_HOST
+
"/auth/oto/authPhone"
;
public
static
final
String
PHONE_getAuthPhone
=
PHONE_HOST
+
"/auth/oto/getAuthPhone"
;
public
static
final
String
PHONE_bindWxUser
=
HOST
+
"/kjy/oto/interview/bindWxUser"
;
public
static
final
String
PHONE_submitEvaluate
=
HOST
+
"/kjy/oto/interview/submitEvaluate"
;
public
static
final
String
PHONE_listBysellComp
=
PHONE_HOST
+
"/kjy/oto/manager/customer/listBysellComp"
;
public
static
final
String
PHONE_address
=
PHONE_HOST
+
"/kjy/oto/h5/v1/save/address"
;
public
static
final
String
PHONE_getUnusualTypes
=
PHONE_HOST
+
"/kjy/oto/h5/v1/getUnusualTypes"
;
public
static
final
String
PHONE_fail
=
HOST
+
"/kjy/oto/interview/authorize/fail"
;
public
static
final
String
WORK_verifyCode
=
WORK_HOST
+
"/kjy/oto/auto/test/verifyCode"
;
public
static
final
String
WORK_delCust
=
WORK_HOST
+
"/kjy/oto/auto/test/delCust"
;
public
static
final
String
WORK_delPubFormRecord
=
WORK_HOST
+
"/kjy/oto/auto/test/delPubFormRecord"
;
}
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