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
abc99215
Commit
abc99215
authored
Nov 07, 2018
by
钱雯君
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
1426ee1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
游戏_获取游戏信息测试_AccessTest.java
...test/java/http/cases/GameTest/游戏_获取游戏信息测试_AccessTest.java
+4
-2
No files found.
src/test/java/http/cases/GameTest/游戏_获取游戏信息测试_AccessTest.java
View file @
abc99215
...
...
@@ -92,9 +92,11 @@ public class 游戏_获取游戏信息测试_AccessTest extends DuibaTestBase {
response
.
prettyPrint
();
Assert
.
assertEquals
(
MatcherString
.
getString
(
response
.
asString
(),
"\"success\": (.*?),"
,
1
),
"true"
,
"校验预览结果失败"
);
String
url
=
MatcherString
.
getString
(
response
.
asString
(),
"\"url\": \"(.*?)\""
,
1
);
Assert
.
assertTrue
(
url
.
contains
(
"http://activity.m.duibatest.com.cn/autoLogin/autologin?appKey=jlg88lyxz7siqtmr&uid=duiba-preview-user"
),
"校验获取的链接失败"
);
logger
.
info
(
"url的信息为"
+
url
);
Assert
.
assertTrue
(
url
.
contains
(
"https://activity.m.duibatest.com.cn/autoLogin/autologin?appKey=jlg88lyxz7siqtmr&uid=duiba-preview-user"
),
"校验获取的链接失败"
);
String
[]
redirect
=
url
.
split
(
"redirect="
);
//
logger.info("redirect的信息为" +redirect[1]);
logger
.
info
(
"redirect的信息为"
+
redirect
[
1
]);
Assert
.
assertTrue
(
String
.
valueOf
(
redirect
[
1
]).
contains
(
"id%3D1338"
),
"校验重定向的活动id失败"
);
}
...
...
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