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
290f6eed
Commit
290f6eed
authored
May 26, 2023
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加经营盘点的测试用例
parent
32acaae7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
Activity.java
src/test/java/com/oto/cases/otoseller/Activity.java
+7
-2
No files found.
src/test/java/com/oto/cases/otoseller/Activity.java
View file @
290f6eed
...
...
@@ -320,7 +320,7 @@ public class Activity implements Authorization {
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
ArrayList
list
=
new
ArrayList
();
list
.
add
(
new
SignCustomer
(
IdMakeUtil
.
encodingId
((
long
)
cust_id
+
3
),
"am"
,
226
,
0
));
list
.
add
(
new
SignCustomer
(
IdMakeUtil
.
encodingId
((
long
)
cust_id
+
4
),
"pm"
,
17
,
2
));
list
.
add
(
new
SignCustomer
(
IdMakeUtil
.
encodingId
((
long
)
cust_id
-
1
),
"pm"
,
17
,
2
));
params
.
put
(
"date"
,
today
);
params
.
put
(
"params"
,
list
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WX_submitRecord
);
...
...
@@ -506,7 +506,7 @@ public class Activity implements Authorization {
int
shouldSignNum
=
response
.
jsonPath
().
getInt
(
"data.shouldSignNum"
);
int
notSignNum
=
response
.
jsonPath
().
getInt
(
"data.notSignNum"
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.vos.size()"
);
int
isSign1
=
response
.
jsonPath
().
getInt
(
"data.vos.find{it.name.equals(\"自动化测试用户
0
\")}.isSign"
);
int
isSign1
=
response
.
jsonPath
().
getInt
(
"data.vos.find{it.name.equals(\"自动化测试用户
4
\")}.isSign"
);
int
isSign2
=
response
.
jsonPath
().
getInt
(
"data.vos.find{it.name.equals(\"自动化测试用户2\")}.isSign"
);
Assert
.
assertEquals
(
shouldSignNum
,
3
,
network
.
message
(
params
,
BasicConfig
.
WX_sign_list
,
"应签到人数错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
notSignNum
,
1
,
network
.
message
(
params
,
BasicConfig
.
WX_sign_list
,
"未签到人数错误"
,
response
.
body
().
asString
()));
...
...
@@ -533,6 +533,7 @@ public class Activity implements Authorization {
@Test
(
description
=
"查询团队更新经营客户情况"
,
priority
=
40
)
public
void
查询团队更新经营客户情况
(){
sleep
(
3000
);
otoLeaderAuth
();
checChart
(
1
,
4
,
0
);
checChart
(
2
,
1
,
0
);
...
...
@@ -546,6 +547,7 @@ public class Activity implements Authorization {
public
void
上传
kyc
更新经营客户情况
(){
saveKyc
(
cust_id
+
2
,
true
);
saveKyc
(
cust_id
+
3
,
true
);
sleep
(
3000
);
checChart
(
1
,
4
,
0
);
checChart
(
2
,
0
,
0
);
checChart
(
3
,
1
,
0
);
...
...
@@ -559,6 +561,7 @@ public class Activity implements Authorization {
otoPlanAuth
();
savePlanFile
(
3
,
cust_id
+
2
);
savePlanFile
(
3
,
cust_id
+
3
);
sleep
(
3000
);
checChart
(
1
,
4
,
1
);
checChart
(
2
,
0
,
0
);
checChart
(
3
,
0
,
0
);
...
...
@@ -571,6 +574,7 @@ public class Activity implements Authorization {
public
void
上传解决方案更新经营客户情况
(){
savePlanFile
(
3
,
cust_id
+
2
);
savePlanFile
(
3
,
cust_id
+
3
);
sleep
(
3000
);
checChart
(
1
,
4
,
1
);
checChart
(
2
,
0
,
0
);
checChart
(
3
,
0
,
0
);
...
...
@@ -584,6 +588,7 @@ public class Activity implements Authorization {
otoLeaderAuth
();
promotionUpdate
(
cust_id
+
2
,
2
);
promotionUpdate
(
cust_id
+
3
,
2
);
sleep
(
3000
);
checChart
(
1
,
4
,
1
);
checChart
(
2
,
0
,
0
);
checChart
(
3
,
0
,
0
);
...
...
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