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
4d8f65d4
Commit
4d8f65d4
authored
Apr 24, 2023
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加创建用户和分配团队的测试用例
parent
42643df2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
19 deletions
+19
-19
Activity.java
src/test/java/com/oto/cases/otoseller/Activity.java
+13
-13
Invite.java
src/test/java/com/oto/cases/otoseller/Invite.java
+1
-1
Work.java
src/test/java/com/oto/cases/otoseller/Work.java
+5
-5
No files found.
src/test/java/com/oto/cases/otoseller/Activity.java
View file @
4d8f65d4
...
...
@@ -153,7 +153,7 @@ public class Activity implements Authorization {
sleep
(
2000
);
assignSeller
(
cust_id
+
3
,
INVITE_ID
,
true
,
1
,
"crm"
);
sleep
(
2000
);
updateInvite
(
1
,
now
+
3600000
,
cust_id
+
2
);
updateInvite
(
1
,
now
+
3600000
,
cust_id
+
3
);
otoAssistAuth
();
getCalendarlist
(
today
,
0
,
"自动化测试用户2"
,
"勿动-自动化测试邀约"
);
...
...
@@ -270,7 +270,7 @@ public class Activity implements Authorization {
sellerSubmitRecord
(
0
,
2
);
}
@Test
(
description
=
"专家确认客户未到场"
,
priority
=
1
3
)
@Test
(
description
=
"专家确认客户未到场"
,
priority
=
1
4
)
public
void
专家确认客户未到场
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"date"
,
today
);
...
...
@@ -410,38 +410,38 @@ public class Activity implements Authorization {
@Test
(
description
=
"微信创建转介绍客户"
,
priority
=
23
)
public
void
微信创建转介绍客户
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custName"
,
"自动化微信转介绍客户"
);
//客户姓名or客户id
params
.
put
(
"custName"
,
"自动化微信转介绍客户"
);
params
.
put
(
"custPhoneNum"
,
"15136361011"
);
params
.
put
(
"introducerId"
,
IdMakeUtil
.
encodingId
((
long
)
cust_id
));
params
.
put
(
"custActionType"
,
"05"
);
params
.
put
(
"community"
,
false
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WX_saveIntroduce
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assert
True
(
data
,
network
.
message
(
params
,
BasicConfig
.
WX_saveIntroduce
,
"创建转介绍客户失败"
,
response
.
body
().
asString
()));
String
data
=
response
.
jsonPath
().
getString
(
"data"
);
Assert
.
assert
NotNull
(
data
,
network
.
message
(
params
,
BasicConfig
.
WX_saveIntroduce
,
"创建转介绍客户失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"微信创建社区客户"
,
priority
=
24
)
public
void
微信创建社区客户
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custName"
,
"自动化微信社区客户"
);
//客户姓名or客户id
params
.
put
(
"custName"
,
"自动化微信社区客户"
);
params
.
put
(
"custPhoneNum"
,
"15136361012"
);
params
.
put
(
"custActionType"
,
"05"
);
params
.
put
(
"community"
,
true
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WX_saveIntroduce
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assert
True
(
data
,
network
.
message
(
params
,
BasicConfig
.
WX_saveIntroduce
,
"创建社区客户失败"
,
response
.
body
().
asString
()));
String
data
=
response
.
jsonPath
().
getString
(
"data"
);
Assert
.
assert
NotNull
(
data
,
network
.
message
(
params
,
BasicConfig
.
WX_saveIntroduce
,
"创建社区客户失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"微信创建缘故客户"
,
priority
=
25
)
public
void
微信创建缘故客户
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custName"
,
"自动化微信缘故客户"
);
//客户姓名or客户id
params
.
put
(
"custPhoneNum"
,
"1513636101
2
"
);
params
.
put
(
"custName"
,
"自动化微信缘故客户"
);
params
.
put
(
"custPhoneNum"
,
"1513636101
3
"
);
params
.
put
(
"custActionType"
,
"04"
);
params
.
put
(
"community"
,
true
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WX_saveIntroduce
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assert
True
(
data
,
network
.
message
(
params
,
BasicConfig
.
WX_saveIntroduce
,
"创建转介绍客户失败"
,
response
.
body
().
asString
()));
String
data
=
response
.
jsonPath
().
getString
(
"data"
);
Assert
.
assert
NotNull
(
data
,
network
.
message
(
params
,
BasicConfig
.
WX_saveIntroduce
,
"创建转介绍客户失败"
,
response
.
body
().
asString
()));
}
...
...
@@ -453,6 +453,6 @@ public class Activity implements Authorization {
int
submitStatus
=
response
.
jsonPath
().
getInt
(
"data.list[0].submitStatus"
);
int
custCount
=
response
.
jsonPath
().
getInt
(
"data.list[0].configStatistics.find{it.configId == 440}.custCount"
);
Assert
.
assertEquals
(
submitStatus
,
status
,
network
.
message
(
params
,
BasicConfig
.
WX_sellerSubmitRecordList
,
"专家提报状态错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
custCount
,
count
,
network
.
message
(
params
,
BasicConfig
.
WX_sellerSubmitRecordList
,
"已签到数量非
1"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
custCount
,
count
,
network
.
message
(
params
,
BasicConfig
.
WX_sellerSubmitRecordList
,
"已签到数量非
"
+
count
,
response
.
body
().
asString
()));
}
}
src/test/java/com/oto/cases/otoseller/Invite.java
View file @
4d8f65d4
...
...
@@ -128,7 +128,7 @@ public class Invite implements Authorization {
@Test
(
description
=
"查看约面日历为已确认"
,
priority
=
9
)
public
void
查看约面日历为已确认
(){
getCalendarlist
(
today
+
86400000
,
2
,
"自动化激活用户"
,
"勿动-自动化测试邀约"
);
Assert
.
assertEquals
(
recordItem
.
deptId
,
47
,
network
.
message
(
BasicConfig
.
WORK_getAllSceneConfs
,
"
面访场景包含场景未根据产品组关联
"
,
""
));
Assert
.
assertEquals
(
recordItem
.
deptId
,
47
,
network
.
message
(
BasicConfig
.
WORK_getAllSceneConfs
,
"
未回显部门id
"
,
""
));
}
...
...
src/test/java/com/oto/cases/otoseller/Work.java
View file @
4d8f65d4
...
...
@@ -49,22 +49,22 @@ public class Work implements Authorization {
menuList
(
3
);
otoAssistAuth
();
menuList
(
1
0
);
menuList
(
1
1
);
otoLeaderAuth
();
menuList
(
1
5
);
menuList
(
1
6
);
otoPMAuth
();
menuList
(
1
2
);
menuList
(
1
3
);
otoAreaAuth
();
menuList
(
1
1
);
menuList
(
1
2
);
otoPlanAuth
();
menuList
(
3
);
otoManagerAuth
();
menuList
(
2
0
);
menuList
(
2
1
);
}
@Test
(
description
=
"工作台_标签列表"
,
priority
=
5
)
...
...
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