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
8d36761e
Commit
8d36761e
authored
Mar 26, 2021
by
张艳玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
48df3950
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
DesignatedWinner.java
src/test/java/com/kjj/cases/live/DesignatedWinner.java
+12
-12
No files found.
src/test/java/com/kjj/cases/live/DesignatedWinner.java
View file @
8d36761e
...
...
@@ -25,18 +25,18 @@ public class DesignatedWinner implements AdminAuthorization{
}
@Test
(
description
=
"代理人指定访客中奖表单提交"
,
priority
=
2
)
public
void
代理人指定访客中奖表单提交
()
{
Map
<
String
,
Object
>
SubmitParam
=
new
HashMap
<>();
SubmitParam
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
SubmitParam
.
put
(
"visitorId"
,
"Kj21NDE0NTU"
);
Response
SubmitRes
=
network
.
getResponse
(
SubmitParam
,
BasicConfig
.
MOBILE_AgentSpecifyAwardConf
);
Object
data
=
SubmitRes
.
jsonPath
().
getJsonObject
(
"data"
);
System
.
out
.
println
(
data
);
Assert
.
assertNotNull
(
data
,
network
.
message
(
SubmitParam
,
BasicConfig
.
MOBILE_AgentSpecifyAwardConf
,
"代理人指定中奖失败"
,
SubmitRes
.
body
().
asString
()));
}
//
@Test(description = "代理人指定访客中奖表单提交", priority = 2)
//
public void 代理人指定访客中奖表单提交() {
//
Map<String, Object> SubmitParam = new HashMap<>();
//
SubmitParam.put("liveId",LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
//
SubmitParam.put("visitorId","Kj21NDE0NTU");
//
// Response SubmitRes = network.getResponse(SubmitParam, BasicConfig.MOBILE_AgentSpecifyAwardSubmit
);
//
Object data = SubmitRes.jsonPath().getJsonObject("data");
//
System.out.println(data);
// Assert.assertNotNull(data, network.message(SubmitParam, BasicConfig.MOBILE_AgentSpecifyAwardSubmit
, "代理人指定中奖失败", SubmitRes.body().asString()));
//
//
}
...
...
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