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
acb21793
Commit
acb21793
authored
Dec 03, 2018
by
马博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
eb1da9fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
抽奖异常测试_DuibaTest.java
...est/java/http/cases/NewActivityTest/抽奖异常测试_DuibaTest.java
+1
-0
Authorization.java
src/test/java/http/service/Authorization.java
+1
-0
No files found.
src/test/java/http/cases/NewActivityTest/抽奖异常测试_DuibaTest.java
View file @
acb21793
...
...
@@ -154,6 +154,7 @@ public class 抽奖异常测试_DuibaTest extends DuibaTestBase {
//进行接口测试传参
Map
<
String
,
String
>
map
=
responses
.
getCookies
();
logger
.
info
(
"cookies:"
+
map
.
toString
());
if
(
responses
.
getDetailedCookies
()==
null
)
logger
.
info
(
"cookies = = null"
);
Response
response
=
newActivityService
.
doJoinMap
(
map
,
data
.
get
(
"token"
),
data
.
get
(
"activityId"
));
// Response response = newActivityService.doJoin(responses.getDetailedCookies(),data.get("token"),data.get("activityId"));
response
.
prettyPrint
();
...
...
src/test/java/http/service/Authorization.java
View file @
acb21793
...
...
@@ -167,6 +167,7 @@ public class Authorization {
String
url
=
tool
.
buildUrlWithSign
(
"http://activity.m.duibatest.com.cn/autoLogin/autologin?"
,
params
);
logger
.
info
(
"dafuweng免登陆url为:"
+
url
);
Response
response
=
given
().
redirects
().
follow
(
false
).
get
(
url
);
logger
.
info
(
"dafuweng免登陆,响应数据:"
+
response
.
asString
());
return
response
;
}
public
Map
generateSignAutoLogin
(
String
appKey
,
int
uid
){
...
...
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