Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test-platform
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
马博
test-platform
Commits
0c7c470f
Commit
0c7c470f
authored
Nov 30, 2018
by
钱雯君
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
a8cd26e8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
游戏_新建无大奖游戏_AccessTest.java
src/test/java/http/cases/GameTest/游戏_新建无大奖游戏_AccessTest.java
+2
-2
No files found.
src/test/java/http/cases/GameTest/游戏_新建无大奖游戏_AccessTest.java
View file @
0c7c470f
...
...
@@ -99,7 +99,7 @@ public class 游戏_新建无大奖游戏_AccessTest extends DuibaTestBase {
"[{\"type\":\"phonebill\",\"title\":\"小奖1\",\"img\":\"//yun.duiba.com.cn/developer/img/activityTool/shake/phone.png\",\"show\":true,\"description\":\"\",\"guarantee\":true,\"scoreArea\":\"0,100\",\"optionLimitCount\":\"\",\"limitDays\":\"\",\"limitTimeType\":\"\",\"rate\":5000,\"appItemId\":1,\"value\":\"1\",\"limit\":null,\"low\":null,\"remaind\":\"10000\",\"oldRemaind\":null,\"isMutliPrizeLimit\":false,\"autoOpen\":true},"
+
"{\"type\":\"phonebill\",\"title\":\"小奖2\",\"img\":\"//yun.duiba.com.cn/developer/img/activityTool/shake/phone.png\",\"show\":true,\"description\":\"\",\"guarantee\":true,\"scoreArea\":\"101,200\",\"optionLimitCount\":\"\",\"limitDays\":\"\",\"limitTimeType\":\"\",\"rate\":8000,\"appItemId\":1,\"value\":\"2\",\"limit\":null,\"low\":null,\"remaind\":\"1000\",\"oldRemaind\":null,\"isMutliPrizeLimit\":false,\"autoOpen\":true}]"
);
Response
response
=
given
().
contentType
(
"application/x-www-form-urlencoded; charset=UTF-8"
).
cookies
(
authorization
.
ssoLogin
()).
params
(
params
).
post
(
"http
s
://"
+
url
);
Response
response
=
given
().
contentType
(
"application/x-www-form-urlencoded; charset=UTF-8"
).
cookies
(
authorization
.
ssoLogin
()).
params
(
params
).
post
(
"http://"
+
url
);
response
.
prettyPrint
();
Thread
.
sleep
(
3000
);
...
...
@@ -133,7 +133,7 @@ public class 游戏_新建无大奖游戏_AccessTest extends DuibaTestBase {
map1
.
put
(
"id"
,
gameIds
.
get
(
z
));
map1
.
put
(
"status"
,
"1"
);
Response
response1
=
given
().
cookies
(
authorization
.
ssoLogin
()).
contentType
(
"application/x-www-form-urlencoded; charset=UTF-8"
).
params
(
map1
).
post
(
"http
s
://"
+
url
);
Response
response1
=
given
().
cookies
(
authorization
.
ssoLogin
()).
contentType
(
"application/x-www-form-urlencoded; charset=UTF-8"
).
params
(
map1
).
post
(
"http://"
+
url
);
Map
<
String
,
Object
>
result
=
jdbc
.
findSimpleResult
(
"select * from ngame.duiba_ngame where id = ?\n"
,
gameIds
.
get
(
z
));
Assert
.
assertEquals
(
result
.
get
(
"game_status"
).
toString
(),
"1"
,
"校验状态修改失败"
);
}
else
if
(
z
==
1
){
...
...
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