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
9555f45c
Commit
9555f45c
authored
Dec 17, 2021
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Feature/20211215-gxh' into 'master'
Feature/20211215 gxh See merge request test-group/kejiji!195
parents
d146ef1b
892dc44f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
Authorization.java
src/test/java/com/kjj/cases/admin/Authorization.java
+5
-0
Cashback.java
src/test/java/com/kjj/cases/assistant/pay/Cashback.java
+2
-1
Pay.java
src/test/java/com/kjj/cases/assistant/pay/Pay.java
+7
-7
No files found.
src/test/java/com/kjj/cases/admin/Authorization.java
View file @
9555f45c
...
...
@@ -71,6 +71,11 @@ public interface Authorization {
network
.
agentCookies
.
put
(
TKU_COOKIE_NAME
,
VISITOR1_TKU
);
System
.
out
.
println
(
"访客三tku:"
+
VISITOR1_TKU
);
}
// 获取访客tku:向日葵
default
void
userTku3
()
{
network
.
agentCookies
.
put
(
TKU_COOKIE_NAME
,
VISITOR2_TKU
);
System
.
out
.
println
(
"访客四tku:"
+
VISITOR2_TKU
);
}
// 获取访客tku:小葡萄
default
void
newUser1
()
{
...
...
src/test/java/com/kjj/cases/assistant/pay/Cashback.java
View file @
9555f45c
...
...
@@ -52,6 +52,7 @@ public class Cashback implements Authorization {
throwables
.
printStackTrace
();
}
}
@Test
(
description
=
"一级用户绑定分享合伙人关系"
,
priority
=
1
)
public
void
一级用户绑定分享合伙人关系
()
{
newUser1
();
...
...
@@ -66,7 +67,7 @@ public class Cashback implements Authorization {
boolean
bindResult
=
response
.
jsonPath
().
getBoolean
(
"data.bindResult"
);
Assert
.
assertTrue
(
bindResult
,
network
.
message
(
PAY_bind
,
"用户绑定失败"
,
response
.
body
().
asString
()));
}
//
@Test
(
description
=
"默认付费_一级用户邀请付费页"
,
priority
=
2
)
//priority 方法执行优先级
public
void
默认付费
_
一级用户邀请付费页
()
{
//代理人续费状态
...
...
src/test/java/com/kjj/cases/assistant/pay/Pay.java
View file @
9555f45c
...
...
@@ -99,7 +99,7 @@ public class Pay implements Authorization {
int
data
=
response
.
jsonPath
().
getInt
(
"data"
);
Assert
.
assertEquals
(
data
,
5
,
network
.
message
(
cancelParams
,
PAY_result
,
"取消支付:取消支付失败"
,
response
.
body
().
asString
()));
//判断返回的微信调起参数中appId是否正确
}
//
@Test
(
description
=
"创建优惠码"
,
priority
=
9
)
public
void
创建优惠码
()
{
//优惠码类型列表
...
...
@@ -127,15 +127,15 @@ public class Pay implements Authorization {
@Test
(
description
=
"优惠券_优惠码绑定"
,
priority
=
10
)
public
void
优惠券
_
优惠码绑定
()
{
agentTku
();
userTku3
();
//吉吉切换非会员
updateTypeOrDate
(
2
991
,
false
);
updateTypeOrDate
(
2
07
,
false
);
//绑定优惠码
Map
<
String
,
Object
>
params
=
new
HashMap
<
String
,
Object
>();
params
.
put
(
"sellerId"
,
2
991
);
params
.
put
(
"sellerId"
,
2
07
);
params
.
put
(
"promId"
,
id
);
params
.
put
(
"openId"
,
"osi5w5
ggFiEXk0tPJH9b0KO_XU0
8"
);
params
.
put
(
"userId"
,
5495
);
params
.
put
(
"openId"
,
"osi5w5
qvNVe8sWzVitVDZVdUkoZ
8"
);
params
.
put
(
"userId"
,
359
);
params
.
put
(
"oaId"
,
1
);
params
.
put
(
"scene"
,
2
);
Response
response
=
network
.
postResponse
(
params
,
PAY_distribute
);
...
...
@@ -152,7 +152,7 @@ public class Pay implements Authorization {
codeListParam
.
put
(
"pageSize"
,
20
);
response
=
network
.
getResponse
(
codeListParam
,
MANAGER_codeList
);
String
nickName
=
response
.
jsonPath
().
getString
(
"data.list[0].nickName"
);
Assert
.
assertEquals
(
nickName
,
"
吉吉
"
,
network
.
message
(
params
,
PAY_distribute
,
"用户绑定失败"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
nickName
,
"
向日葵
"
,
network
.
message
(
params
,
PAY_distribute
,
"用户绑定失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"默认付费_优惠码付费页"
,
priority
=
11
)
//priority 方法执行优先级
...
...
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