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
7c0122a0
Commit
7c0122a0
authored
Feb 03, 2023
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加半天计划优化的测试用例
parent
26bdf857
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
92 additions
and
49 deletions
+92
-49
Plan.java
src/test/java/com/oto/bean/Plan.java
+3
-1
Phone.java
src/test/java/com/oto/cases/otoseller/Phone.java
+2
-2
Work.java
src/test/java/com/oto/cases/otoseller/Work.java
+84
-46
BasicConfig.java
src/test/java/com/oto/config/BasicConfig.java
+3
-0
No files found.
src/test/java/com/oto/bean/Plan.java
View file @
7c0122a0
...
@@ -6,13 +6,15 @@ import lombok.Data;
...
@@ -6,13 +6,15 @@ import lombok.Data;
public
class
Plan
{
public
class
Plan
{
public
String
planActionType
;
public
String
planActionType
;
public
String
actionTime
;
public
String
actionTime
;
public
String
timeRegion
;
public
int
actionSeller
;
public
int
actionSeller
;
public
Integer
interviewSceneConfId
;
public
Integer
interviewSceneConfId
;
public
Plan
(
String
planActionType
,
String
actionTime
,
int
actionSeller
,
Integer
interviewSceneConfId
)
{
public
Plan
(
String
planActionType
,
String
actionTime
,
String
timeRegion
,
int
actionSeller
,
Integer
interviewSceneConfId
)
{
this
.
planActionType
=
planActionType
;
this
.
planActionType
=
planActionType
;
this
.
actionTime
=
actionTime
;
this
.
actionTime
=
actionTime
;
this
.
actionSeller
=
actionSeller
;
this
.
actionSeller
=
actionSeller
;
this
.
interviewSceneConfId
=
interviewSceneConfId
;
this
.
interviewSceneConfId
=
interviewSceneConfId
;
this
.
timeRegion
=
timeRegion
;
}
}
}
}
src/test/java/com/oto/cases/otoseller/Phone.java
View file @
7c0122a0
...
@@ -689,11 +689,11 @@ public class Phone implements Authorization {
...
@@ -689,11 +689,11 @@ public class Phone implements Authorization {
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"ids"
,
planIds
);
params
.
put
(
"ids"
,
planIds
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_getPlanDetail
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_getPlanDetail
);
int
phoneStatus
=
response
.
jsonPath
().
getInt
(
"data.
meets
[0].planStatus"
);
int
phoneStatus
=
response
.
jsonPath
().
getInt
(
"data.
am
[0].planStatus"
);
Assert
.
assertEquals
(
phoneStatus
,
2
,
network
.
message
(
params
,
BasicConfig
.
WORK_getPlanDetail
,
"见面计划状态非已完成"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
phoneStatus
,
2
,
network
.
message
(
params
,
BasicConfig
.
WORK_getPlanDetail
,
"见面计划状态非已完成"
,
response
.
body
().
asString
()));
params
.
clear
();
params
.
clear
();
getSellerPlan
(
1
,
1
,
1
,
1
,
2
,
0
);
getSellerPlan
(
2
,
2
,
0
,
1
,
1
,
0
);
}
}
...
...
src/test/java/com/oto/cases/otoseller/Work.java
View file @
7c0122a0
This diff is collapsed.
Click to expand it.
src/test/java/com/oto/config/BasicConfig.java
View file @
7c0122a0
...
@@ -241,6 +241,9 @@ public class BasicConfig {
...
@@ -241,6 +241,9 @@ public class BasicConfig {
public
static
final
String
WORK_planFileUpload
=
WORK_HOST
+
"/kjy/oto/manager/customer/planFile/update"
;
public
static
final
String
WORK_planFileUpload
=
WORK_HOST
+
"/kjy/oto/manager/customer/planFile/update"
;
public
static
final
String
WORK_kycUpload
=
WORK_HOST
+
"/kjy/oto/manager/customer/kyc/update"
;
public
static
final
String
WORK_kycUpload
=
WORK_HOST
+
"/kjy/oto/manager/customer/kyc/update"
;
public
static
final
String
WORK_strategyMove
=
WORK_HOST
+
"/kjy/oto/check/strategy/sort/move"
;
public
static
final
String
WORK_strategyMove
=
WORK_HOST
+
"/kjy/oto/check/strategy/sort/move"
;
public
static
final
String
WORK_obtainCustBySellerId
=
WORK_HOST
+
"/kjy/oto/manager/customer/obtainCustBySellerId"
;
public
static
final
String
WORK_saveSelfPlan
=
WORK_HOST
+
"/kjy/oto/manager/customer/planList/save"
;
public
static
final
String
WORK_apolloSeller
=
WORK_HOST
+
"/kjy/oto/manager/customer/apollo/seller"
;
//*************************客集集营销平台******************************
//*************************客集集营销平台******************************
public
static
final
String
PHONE_bindWxUser
=
HOST
+
"/kjy/oto/interview/bindWxUser"
;
public
static
final
String
PHONE_bindWxUser
=
HOST
+
"/kjy/oto/interview/bindWxUser"
;
...
...
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