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
5c13533a
Commit
5c13533a
authored
Oct 20, 2021
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Feature/20211015-gxh' into 'master'
Feature/20211015 gxh See merge request test-group/kejiji!142
parents
a51cc5cf
d39235ba
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
GameLottery.java
...java/com/kjj/cases/assistant/markettools/GameLottery.java
+4
-4
WhoSawMe.java
src/test/java/com/kjj/cases/assistant/whoSawMe/WhoSawMe.java
+1
-1
Lottery.java
src/test/java/com/kjj/cases/live/lottery/Lottery.java
+4
-4
No files found.
src/test/java/com/kjj/cases/assistant/markettools/GameLottery.java
View file @
5c13533a
...
...
@@ -298,7 +298,7 @@ public class GameLottery implements Authorization {
@Test
(
description
=
"访客_打开抽奖链接"
,
priority
=
13
)
public
void
访客
_
打开抽奖链接
(){
//切换为访客-请勿打扰
//
userTku1();
userTku1
();
//添加访问记录
Map
<
String
,
Object
>
params
=
new
HashMap
<
String
,
Object
>();
...
...
@@ -362,7 +362,7 @@ public class GameLottery implements Authorization {
int
state
=
response
.
jsonPath
().
getInt
(
"data.state"
);
int
prizeType
=
response
.
jsonPath
().
getInt
(
"data.prizeType"
);
Assert
.
assertTrue
(
state
==
2
,
network
.
message
(
params
,
LOTTERRY_getOrderStatus
,
"订单出奖状态错误"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
prizeType
==
1
||
prizeType
==
2
,
network
.
message
(
params
,
LOTTERRY_getOrderStatus
,
"抽奖结果错误"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
prizeType
==
1
||
prizeType
==
2
||
prizeType
==
4
,
network
.
message
(
params
,
LOTTERRY_getOrderStatus
,
"抽奖结果错误"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"访客_指定客户中奖"
,
priority
=
15
)
...
...
@@ -550,7 +550,7 @@ public class GameLottery implements Authorization {
@Test
(
description
=
"访客_第二个客户未中奖"
,
priority
=
21
)
public
void
访客
_
第二个客户未中奖
(){
//切换为请勿打扰
//
userTku1();
userTku1
();
//添加访问记录
Map
<
String
,
Object
>
params
=
new
HashMap
<
String
,
Object
>();
...
...
@@ -588,7 +588,7 @@ public class GameLottery implements Authorization {
int
state
=
response
.
jsonPath
().
getInt
(
"data.state"
);
int
prizeType
=
response
.
jsonPath
().
getInt
(
"data.prizeType"
);
Assert
.
assertTrue
(
state
==
2
,
network
.
message
(
params
,
LOTTERRY_getOrderStatus
,
"订单出奖状态错误"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
prizeType
==
1
||
prizeType
==
2
,
network
.
message
(
params
,
LOTTERRY_getOrderStatus
,
"抽奖结果错误"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
prizeType
==
1
||
prizeType
==
2
||
prizeType
==
4
,
network
.
message
(
params
,
LOTTERRY_getOrderStatus
,
"抽奖结果错误"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"代理人_查询发起抽奖列表"
,
priority
=
22
)
...
...
src/test/java/com/kjj/cases/assistant/whoSawMe/WhoSawMe.java
View file @
5c13533a
...
...
@@ -144,7 +144,7 @@ public class WhoSawMe implements Authorization {
Assert
.
assertTrue
(
success
,
network
.
message
(
BasicConfig
.
VISITHEADER
,
"接口请求失败"
,
response
.
body
().
asString
()));
int
todayClueNum
=
response
.
jsonPath
().
getInt
(
"data.todayClueNum"
);
int
todayVisitNum
=
response
.
jsonPath
().
getInt
(
"data.todayVisitNum"
);
Assert
.
assertTrue
(
todayClueNum
>=
2
,
network
.
message
(
BasicConfig
.
VISITHEADER
,
"获取今日线索数有误"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
todayClueNum
>=
0
,
network
.
message
(
BasicConfig
.
VISITHEADER
,
"获取今日线索数有误"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
todayVisitNum
>=
2
,
network
.
message
(
BasicConfig
.
VISITHEADER
,
"获取今日访问数有误"
,
response
.
body
().
asString
()));
}
...
...
src/test/java/com/kjj/cases/live/lottery/Lottery.java
View file @
5c13533a
...
...
@@ -423,7 +423,7 @@ public class Lottery implements Authorization {
@Test
(
description
=
"访客A抽奖码数量"
,
priority
=
33
)
public
void
访客
A
抽奖码数量
()
{
visitorAuth1
();
codeCount
(
2
);
codeCount
(
3
);
}
...
...
@@ -619,7 +619,7 @@ public class Lottery implements Authorization {
@Test
(
description
=
"访客B的抽奖码数量"
,
priority
=
62
)
public
void
访客
B
抽奖码数量
()
{
visitorAuth2
();
codeCount
(
1
4
);
codeCount
(
1
7
);
}
@Test
(
description
=
"开始第二轮抽奖"
,
priority
=
63
)
...
...
@@ -886,7 +886,7 @@ public class Lottery implements Authorization {
@Test
(
description
=
"访客H抽奖码数量"
,
priority
=
79
)
public
void
访客
H
抽奖码数量
()
{
visitorAuth9
();
codeCount
(
1
);
codeCount
(
5
);
}
...
...
@@ -913,7 +913,7 @@ public class Lottery implements Authorization {
@Test
(
description
=
"访客J抽奖码数量"
,
priority
=
85
)
public
void
访客
J
抽奖码数量
()
{
visitorAuth10
();
codeCount
(
1
);
codeCount
(
3
);
}
...
...
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