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
667ddd0c
Commit
667ddd0c
authored
Mar 19, 2019
by
赵然
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'zr' into develop
parents
40e2fbaf
b45e0060
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
2 deletions
+12
-2
自有活动出奖_DuibaTest.java
src/test/java/http/cases/DeveloperTest/自有活动出奖_DuibaTest.java
+2
-1
ManagerService.java
src/test/java/http/service/Activity/ManagerService.java
+5
-0
EditManagerInfoService.java
...est/java/http/service/Manager/EditManagerInfoService.java
+2
-1
CustomHdToolCtrlService.java
src/test/java/http/service/hd/CustomHdToolCtrlService.java
+3
-0
No files found.
src/test/java/http/cases/DeveloperTest/自有活动出奖_DuibaTest.java
View file @
667ddd0c
...
...
@@ -37,12 +37,13 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
Response
response
=
newActivityService
.
doJoin2
(
"21803"
,
"h5ps61"
);
String
orderId
=
response
.
jsonPath
().
getString
(
"orderId"
);
response
=
newActivityService
.
getOrderStatus2
(
orderId
);
response
.
print
();
String
result
=
response
.
jsonPath
().
getString
(
"result"
);
int
i
=
30
;
while
(
i
>
0
&&
result
.
equals
(
"0"
)){
Thread
.
sleep
(
1000
);
response
=
newActivityService
.
getOrderStatus2
(
orderId
);
response
.
pr
ettyPeek
();
response
.
pr
int
();
result
=
response
.
jsonPath
().
getString
(
"result"
);
i
--;
}
...
...
src/test/java/http/service/Activity/ManagerService.java
View file @
667ddd0c
...
...
@@ -461,6 +461,9 @@ public class ManagerService {
map
.
put
(
"gameStarting"
,
"true"
);
map
.
put
(
"channelType"
,
"0"
);
map
.
put
(
"customFalg"
,
"false"
);
map
.
put
(
"customKey"
,
""
);
logger
.
info
(
"请求保存自定义活动工具接口:"
+
saveUrl
);
Response
saveResponse
=
given
().
contentType
(
"application/x-www-form-urlencoded;charset=UTF-8"
).
cookies
(
authorization
.
ssoLogin
()).
params
(
map
).
post
(
"http://"
+
saveUrl
);
saveResponse
.
prettyPrint
();
...
...
@@ -668,6 +671,8 @@ public class ManagerService {
map
.
put
(
"directSendCoupon"
,
"FALSE"
);
map
.
put
(
"channelType"
,
"0"
);
map
.
put
(
"customFalg"
,
"false"
);
map
.
put
(
"customKey"
,
""
);
Response
saveResponse
=
given
().
contentType
(
"application/x-www-form-urlencoded;charset=UTF-8"
).
cookies
(
authorization
.
ssoLogin
()).
params
(
map
).
post
(
"http://"
+
saveUrl
);
saveResponse
.
prettyPrint
();
try
{
...
...
src/test/java/http/service/Manager/EditManagerInfoService.java
View file @
667ddd0c
...
...
@@ -176,7 +176,8 @@ public class EditManagerInfoService {
map
.
put
(
"token"
,
token
);
map
.
put
(
"customFalg"
,
"false"
);
map
.
put
(
"customKey"
,
""
);
Response
saveResponse
=
given
().
contentType
(
"application/x-www-form-urlencoded;charset=UTF-8"
).
cookies
(
authorization
.
ssoLogin
()).
params
(
map
).
post
(
"http://"
+
saveUrl
);
saveResponse
.
prettyPrint
();
try
{
...
...
src/test/java/http/service/hd/CustomHdToolCtrlService.java
View file @
667ddd0c
...
...
@@ -117,6 +117,9 @@ public class CustomHdToolCtrlService {
//活动策划 & 视觉策划
params
.
put
(
"plotterUser"
,
"张三"
);
params
.
put
(
"createUser"
,
"李四"
);
params
.
put
(
"customFalg"
,
"false"
);
params
.
put
(
"customKey"
,
""
);
//获取创建活动的token
String
token
=
editConfig
(
customHdToolVO
.
getActId
()).
jsonPath
().
getString
(
"data.token"
);
params
.
put
(
"token"
,
token
);
...
...
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