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
d2261ecf
Commit
d2261ecf
authored
Jun 10, 2021
by
张艳玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增猜数字红包
parent
a3de41a9
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
440 additions
and
54 deletions
+440
-54
TeamList.java
src/test/java/com/kjj/bean/manager/TeamList.java
+1
-0
TreasureList.java
src/test/java/com/kjj/bean/manager/TreasureList.java
+2
-0
AdminAuthorization.java
...est/java/com/kjj/cases/live/admin/AdminAuthorization.java
+7
-0
Answer.java
src/test/java/com/kjj/cases/live/answer/Answer.java
+2
-2
FlipCard.java
src/test/java/com/kjj/cases/live/flipCard/FlipCard.java
+237
-0
SaveLive.java
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
+169
-51
Share.java
src/test/java/com/kjj/cases/live/liveConfig/Share.java
+15
-0
WinningRules.java
...test/java/com/kjj/cases/live/liveConfig/WinningRules.java
+1
-1
liveTestNG.xml
src/test/liveTestNG.xml
+6
-0
No files found.
src/test/java/com/kjj/bean/manager/TeamList.java
View file @
d2261ecf
...
...
@@ -5,4 +5,5 @@ import lombok.Data;
@Data
public
class
TeamList
{
private
Integer
id
;
}
src/test/java/com/kjj/bean/manager/TreasureList.java
View file @
d2261ecf
...
...
@@ -6,4 +6,6 @@ import lombok.Data;
public
class
TreasureList
{
private
long
treasureConfId
;
private
Integer
treasureSort
;
private
Integer
receiveNum
;
private
Integer
totalNum
;
}
src/test/java/com/kjj/cases/live/admin/AdminAuthorization.java
View file @
d2261ecf
...
...
@@ -200,6 +200,13 @@ public interface AdminAuthorization {
System
.
out
.
println
(
"用户AUTH_KEY:"
+
visitorAuth21
);
}
/**
* 访客V(谢翊美)ID:791
*/
default
void
visitorAuth22
()
{
network
.
agentCookies
.
put
(
"authKey"
,
visitorAuth22
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
visitorAuth22
);
}
}
src/test/java/com/kjj/cases/live/answer/Answer.java
View file @
d2261ecf
...
...
@@ -535,11 +535,11 @@ public class Answer implements AdminAuthorization {
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_QuesParticipateInfo
);
boolean
result
=
response
.
jsonPath
().
getBoolean
(
"data.result"
);
System
.
out
.
println
(
result
);
Assert
.
assertTrue
(
result
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_QuesParticipateInfo
,
"
查询答题红包结果
失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
result
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_QuesParticipateInfo
,
"
答题
失败"
,
response
.
body
().
asString
()));
Integer
welfareStatus
=
response
.
jsonPath
().
getJsonObject
(
"data.welfareStatus"
);
System
.
out
.
println
(
welfareStatus
);
Assert
.
assertTrue
(
welfareStatus
==
2
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_QuesParticipateInfo
,
"
查询答题红包结果失败
"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
welfareStatus
==
2
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_QuesParticipateInfo
,
"
领取异常
"
,
response
.
body
().
asString
()));
}
...
...
src/test/java/com/kjj/cases/live/flipCard/FlipCard.java
0 → 100644
View file @
d2261ecf
This diff is collapsed.
Click to expand it.
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
View file @
d2261ecf
This diff is collapsed.
Click to expand it.
src/test/java/com/kjj/cases/live/liveConfig/Share.java
View file @
d2261ecf
...
...
@@ -80,5 +80,20 @@ public class Share implements AdminAuthorization {
}
@Test
(
description
=
"翻牌红包小程序分享"
,
priority
=
5
)
public
void
翻牌红包小程序分享
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Params
.
put
(
"mpShareUrl"
,
"//yun.dui88.com/kjy/image/20210526/1622022856685.jpeg"
);
Params
.
put
(
"mpShareTitle"
,
"「{{welfareName}}」翻牌红包分享文案{{name}}"
);
Params
.
put
(
"shareType"
,
6
);
Response
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MANAGER_saveOrUpdateMpShare
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data
);
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
MOBILE_info
,
"翻牌红包小程序分享失败"
,
response
.
body
().
asString
()));
}
}
src/test/java/com/kjj/cases/live/liveConfig/WinningRules.java
View file @
d2261ecf
...
...
@@ -277,7 +277,7 @@ public class WinningRules implements AdminAuthorization {
Params
.
put
(
"pageSize"
,
20
);
Params
.
put
(
"pageIndex"
,
1
);
Response
response
=
network
.
getResponse
(
Params
,
BasicConfig
.
MANAGER_search
);
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
Assert
.
assertNotNull
(
data
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_search
,
"查询新增时团队列表失败"
,
response
.
body
().
asString
()));
}
...
...
src/test/liveTestNG.xml
View file @
d2261ecf
...
...
@@ -31,6 +31,12 @@
</classes>
</test>
<test
preserve-order=
"true"
name=
"翻牌红包"
>
<classes>
<class
name=
"com.kjj.cases.live.flipCard.FlipCard"
/>
</classes>
</test>
<test
preserve-order=
"true"
name=
"宝箱裂变"
>
<classes>
<class
name=
"com.kjj.cases.live.treasure.Treasure"
/>
...
...
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