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
17f5c240
Commit
17f5c240
authored
Jul 08, 2020
by
张震
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Boss看板动态id优化
parent
4d8ef740
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
5 deletions
+16
-5
Boss.java
src/test/java/com/kjj/qa/cases/Boss.java
+15
-4
BasicConfig.java
src/test/java/com/kjj/qa/config/BasicConfig.java
+1
-1
Article.class
target/test-classes/com/kjj/qa/cases/Article.class
+0
-0
Novice.class
target/test-classes/com/kjj/qa/cases/Novice.class
+0
-0
BasicConfig.class
target/test-classes/com/kjj/qa/config/BasicConfig.class
+0
-0
DingTalkUtil.class
target/test-classes/com/kjj/qa/utils/DingTalkUtil.class
+0
-0
NetworkUtil.class
target/test-classes/com/kjj/qa/utils/NetworkUtil.class
+0
-0
No files found.
src/test/java/com/kjj/qa/cases/Boss.java
View file @
17f5c240
...
...
@@ -24,7 +24,9 @@ public class Boss {
String
sellerId
=
""
;
String
usellerId
=
""
;
String
sids
=
""
;
String
visitorame
=
""
;
String
sellername
=
""
;
String
superiorname
=
""
;
@BeforeClass
public
void
setUp
()
{
...
...
@@ -45,7 +47,9 @@ public class Boss {
public
void
获取代理人
id
()
throws
IOException
{
Response
response
=
network
.
getResponse
(
BOSS_USERINFO
);
sellerId
=
response
.
jsonPath
().
getString
(
"data.sellerId"
);
sellername
=
response
.
jsonPath
().
getString
(
"data.sellerName"
);
Assert
.
assertNotNull
(
sellerId
,
network
.
message
(
BOSS_USERINFO
,
"获取sellerid失败"
));
Assert
.
assertNotNull
(
sellername
,
network
.
message
(
BOSS_USERINFO
,
"获取sellerName失败"
));
}
//代理人有无上下级判断;
...
...
@@ -90,7 +94,10 @@ public class Boss {
public
void
获取访客
id
()
throws
IOException
{
Response
response
=
network
.
getResponse
(
BOSS_USERINFO
);
usellerId
=
response
.
jsonPath
().
getString
(
"data.sellerId"
);
visitorame
=
response
.
jsonPath
().
getString
(
"data.sellerName"
);
Assert
.
assertNotNull
(
usellerId
,
network
.
message
(
BOSS_USERINFO
,
"获取usellerid失败"
));
Assert
.
assertNotNull
(
visitorame
,
network
.
message
(
BOSS_USERINFO
,
"获取sellerName失败"
));
}
...
...
@@ -109,7 +116,7 @@ public class Boss {
params
.
put
(
"sellerId"
,
usellerId
);
Response
responses
=
network
.
getResponse
(
inviteparams
,
BOSS_BOSS
);
String
name
=
responses
.
jsonPath
().
getString
(
"data"
);
Assert
.
assertEquals
(
name
,
"$张"
,
network
.
message
(
params
,
BOSS_BOSS
,
"昵称不匹配"
));
Assert
.
assertEquals
(
name
,
visitorame
,
network
.
message
(
params
,
BOSS_BOSS
,
"昵称不匹配"
));
}
...
...
@@ -128,6 +135,8 @@ public class Boss {
}
//团队长数据看板
//代理人已存在下级直接进入团队长数据看板;获取上级团队昵称
@Test
(
description
=
"获取上级团队昵称"
,
priority
=
9
)
...
...
@@ -136,7 +145,8 @@ public class Boss {
params
.
put
(
"sellerId"
,
sellerId
);
Response
response
=
network
.
getResponse
(
params
,
BOSS_BOSS
);
String
data
=
response
.
jsonPath
().
getString
(
"data"
);
Assert
.
assertEquals
(
data
,
"喜洋洋保险"
,
network
.
message
(
params
,
BOSS_BOSS
,
"昵称不匹配"
));
superiorname
=
response
.
jsonPath
().
getString
(
"data"
);
Assert
.
assertEquals
(
data
,
superiorname
,
network
.
message
(
params
,
BOSS_BOSS
,
"昵称不匹配"
));
}
//获取代理人团队人数
...
...
@@ -178,7 +188,8 @@ public class Boss {
params
.
put
(
"sellerId"
,
sellerId
);
Response
response
=
network
.
getResponse
(
params
,
BOSS_BOSS
);
String
data
=
response
.
jsonPath
().
getString
(
"data"
);
Assert
.
assertEquals
(
data
,
"喜洋洋保险"
,
network
.
message
(
params
,
BOSS_BOSS
,
"昵称不匹配"
));
superiorname
=
response
.
jsonPath
().
getString
(
"data"
);
Assert
.
assertEquals
(
data
,
superiorname
,
network
.
message
(
params
,
BOSS_BOSS
,
"昵称不匹配"
));
}
...
...
src/test/java/com/kjj/qa/config/BasicConfig.java
View file @
17f5c240
...
...
@@ -6,7 +6,7 @@ public class BasicConfig {
// *************** 配置信息,每次重新配置以下信息就ok ***************
// 是否推送
public
static
final
boolean
isPushReport
=
tru
e
;
//true
public
static
final
boolean
isPushReport
=
fals
e
;
//true
// 用户微信昵称
public
static
final
String
WECHAT_NAME
=
"小疙瘩人寿"
;
//true
// 用户tku
...
...
target/test-classes/com/kjj/qa/cases/Article.class
View file @
17f5c240
No preview for this file type
target/test-classes/com/kjj/qa/cases/Novice.class
View file @
17f5c240
No preview for this file type
target/test-classes/com/kjj/qa/config/BasicConfig.class
View file @
17f5c240
No preview for this file type
target/test-classes/com/kjj/qa/utils/DingTalkUtil.class
View file @
17f5c240
No preview for this file type
target/test-classes/com/kjj/qa/utils/NetworkUtil.class
View file @
17f5c240
No preview for this file type
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