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
dfb42c1f
Commit
dfb42c1f
authored
Jul 01, 2020
by
张震
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Boss看板动态id优化
parent
8be2defb
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
9 deletions
+19
-9
Boss.java
src/test/java/com/kjj/qa/cases/Boss.java
+15
-7
BasicConfig.java
src/test/java/com/kjj/qa/config/BasicConfig.java
+4
-2
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
No files found.
src/test/java/com/kjj/qa/cases/Boss.java
View file @
dfb42c1f
...
...
@@ -23,6 +23,7 @@ public class Boss {
private
static
final
NetworkUtil
network
=
NetworkUtil
.
getInstance
();
String
sellerId
=
""
;
String
usellerId
=
""
;
String
sids
=
""
;
@BeforeClass
public
void
setUp
()
{
...
...
@@ -107,8 +108,8 @@ public class Boss {
Map
<
String
,
Object
>
inviteparams
=
new
HashMap
<
String
,
Object
>();
params
.
put
(
"sellerId"
,
usellerId
);
Response
responses
=
network
.
getResponse
(
inviteparams
,
BOSS_BOSS
);
String
data
e
=
responses
.
jsonPath
().
getString
(
"data"
);
Assert
.
assertEquals
(
data
e
,
"$张"
,
network
.
message
(
params
,
BOSS_BOSS
,
"昵称不匹配"
));
String
nam
e
=
responses
.
jsonPath
().
getString
(
"data"
);
Assert
.
assertEquals
(
nam
e
,
"$张"
,
network
.
message
(
params
,
BOSS_BOSS
,
"昵称不匹配"
));
}
...
...
@@ -149,12 +150,19 @@ public class Boss {
}
//获取团队成员sids
@Test
(
description
=
"获取成员sids"
,
priority
=
11
)
public
void
获取成员
sids
()
throws
IOException
{
Response
response
=
network
.
getResponse
(
BOSS_MEMBER
);
sids
=
response
.
jsonPath
().
getString
(
"data.list[0].sellerId"
);
Assert
.
assertNotNull
(
sids
,
network
.
message
(
BOSS_MEMBER
,
"获取sids失败"
));
}
//移除团队成员
@Test
(
description
=
"移除团队成员"
,
priority
=
1
1
)
@Test
(
description
=
"移除团队成员"
,
priority
=
1
2
)
public
void
移除团队成员
()
throws
IOException
{
Map
<
String
,
Object
>
params
=
new
HashMap
<
String
,
Object
>();
List
<
String
>
ss
=
Collections
.
singletonList
(
"Kj21MTcwMTU"
);
List
<
String
>
ss
=
Collections
.
singletonList
(
sids
);
params
.
put
(
"sids"
,
ss
);
Response
response
=
network
.
postResponse
(
params
,
BOSS_REMOVE
);
System
.
out
.
println
(
response
.
getBody
().
prettyPrint
());
...
...
@@ -164,7 +172,7 @@ public class Boss {
}
//代理人无下级直接进入个人数据看板页面;获取上级昵称
@Test
(
description
=
"获取上级昵称"
,
priority
=
1
2
)
@Test
(
description
=
"获取上级昵称"
,
priority
=
1
3
)
public
void
获取上级昵称
()
throws
IOException
{
Map
<
String
,
Object
>
params
=
new
HashMap
<
String
,
Object
>();
params
.
put
(
"sellerId"
,
sellerId
);
...
...
@@ -176,7 +184,7 @@ public class Boss {
//分享链接邀请下级加入
@Test
(
description
=
"邀请下级加入"
,
priority
=
1
3
)
@Test
(
description
=
"邀请下级加入"
,
priority
=
1
4
)
public
void
邀请下级加入
()
throws
IOException
{
Map
<
String
,
Object
>
params
=
new
HashMap
<
String
,
Object
>();
params
.
put
(
"inviteType"
,
2
);
...
...
@@ -188,7 +196,7 @@ public class Boss {
@AfterClass
public
static
void
tearDown
(){
apiCount
+=
8
;
apiCount
+=
9
;
}
...
...
src/test/java/com/kjj/qa/config/BasicConfig.java
View file @
dfb42c1f
...
...
@@ -23,8 +23,8 @@ public class BasicConfig {
public
static
final
String
HOST
=
"https://kjj.m.duibatest.com.cn"
;
// "https://kjj.m.duiba.com.cn";
// *************** TKU ***************
public
static
final
String
VISITOR_TKU
=
"T3gM31f18jAW31GHJuxJmoCFoANch7fXayUgd4zHHg2hpXAyjSrevfGfzyNfVoHzSvenik8qR9nTEkCSy6"
;
//
public static final String VISITOR_TKU = "T3gM31f18jAW2hicRDxbwHFSuwA4MMVLLeHZ5G4yvb3kN3PcWwcLdzfxPp2gghfE4x3BFH8JN3f8PUzQ6W";
//
public static final String VISITOR_TKU = "T3gM31f18jAW31GHJuxJmoCFoANch7fXayUgd4zHHg2hpXAyjSrevfGfzyNfVoHzSvenik8qR9nTEkCSy6";
public
static
final
String
VISITOR_TKU
=
"T3gM31f18jAW2hicRDxbwHFSuwA4MMVLLeHZ5G4yvb3kN3PcWwcLdzfxPp2gghfE4x3BFH8JN3f8PUzQ6W"
;
// *************** 素材ID ***************
public
static
final
String
ARTICLE_CONTENTID
=
"Kj21NjM4NDc"
;
...
...
@@ -207,6 +207,8 @@ public class BasicConfig {
public
static
final
String
BOSS_USERINFO
=
"/kjy/mp/user/info"
;
public
static
final
String
BOSS_MEMBER
=
"/kjy/mp/seller/team/member"
;
...
...
target/test-classes/com/kjj/qa/cases/Article.class
View file @
dfb42c1f
No preview for this file type
target/test-classes/com/kjj/qa/cases/Novice.class
View file @
dfb42c1f
No preview for this file type
target/test-classes/com/kjj/qa/config/BasicConfig.class
View file @
dfb42c1f
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