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
a2851191
Commit
a2851191
authored
Jul 23, 2020
by
赵然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zr
parent
27b16cab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
ManagerService.java
src/test/java/http/service/Activity/ManagerService.java
+10
-6
No files found.
src/test/java/http/service/Activity/ManagerService.java
View file @
a2851191
...
@@ -785,14 +785,18 @@ public class ManagerService {
...
@@ -785,14 +785,18 @@ public class ManagerService {
//获取开发者扣积分模板信息
//获取开发者扣积分模板信息
public
void
index
()
throws
Exception
{
public
void
index
()
throws
Exception
{
String
url
=
"http://"
+
dafuwengHost
+
":"
+
dafuwengPort
+
"/app/index"
;
String
url
=
"http://"
+
dafuwengHost
+
":"
+
dafuwengPort
+
"/app/index?name=自动化"
;
Response
response
=
given
().
contentType
(
"application/x-www-form-urlencoded;charset=UTF-8"
).
get
(
url
);
Response
response
=
given
().
contentType
(
"application/x-www-form-urlencoded;charset=UTF-8"
).
post
(
url
);
String
status
=
MatcherString
.
getString
(
response
.
asString
(),
"3erv8LvBxKBSyuGK5i8FSGyYoFD1</td>\n"
+
//logger.info(response.asString());
"\t\t\t\t<td>(.*?)</td>"
,
1
);
String
status
=
MatcherString
.
getString
(
response
.
asString
(),
"3erv8LvBxKBSyuGK5i8FSGyYoFD1\n"
+
" </td>\n"
+
" <td>\n"
+
"\t\t\t\t\t\t(.*?)\n"
+
" </td>"
,
1
);
logger
.
info
(
"自动化测试 扣积分模板为:"
+
status
);
logger
.
info
(
"自动化测试 扣积分模板为:"
+
status
);
int
i
=
30
;
int
i
=
30
;
while
(!
status
.
equals
(
"扣积分
-
成功"
)&&
i
>
0
){
while
(!
status
.
equals
(
"扣积分成功"
)&&
i
>
0
){
Thread
.
sleep
(
1000
);
Thread
.
sleep
(
1000
);
response
=
given
().
contentType
(
"application/x-www-form-urlencoded;charset=UTF-8"
).
get
(
url
);
response
=
given
().
contentType
(
"application/x-www-form-urlencoded;charset=UTF-8"
).
get
(
url
);
status
=
MatcherString
.
getString
(
response
.
asString
(),
"3erv8LvBxKBSyuGK5i8FSGyYoFD1</td>\n"
+
status
=
MatcherString
.
getString
(
response
.
asString
(),
"3erv8LvBxKBSyuGK5i8FSGyYoFD1</td>\n"
+
...
...
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