Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oto
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
龚小红
oto
Commits
7f8186c0
Commit
7f8186c0
authored
Mar 03, 2021
by
张艳玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
88e2e70f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Boss.java
src/test/java/com/kjj/cases/basics/Boss.java
+1
-1
ExtentTestNGIReporterListener.java
...st/java/com/kjj/config/ExtentTestNGIReporterListener.java
+1
-1
testNG.xml
src/test/testNG.xml
+1
-1
No files found.
src/test/java/com/kjj/cases/basics/Boss.java
View file @
7f8186c0
...
...
@@ -87,7 +87,7 @@ public class Boss {
params
.
put
(
"sellerId"
,
vistorId
);
Response
response
=
network
.
getResponse
(
params
,
BOSS_IDENTITY
);
int
identity
=
response
.
jsonPath
().
getInt
(
"data.identity"
);
//1团长、2成员、3没有团队
Assert
.
assertEquals
(
identity
,
3
,
network
.
message
(
params
,
BOSS_IDENTITY
,
"被邀请人已有团队或已绑定上级,不能再接受邀请"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
identity
,
3
,
network
.
message
(
params
,
BOSS_IDENTITY
,
String
.
format
(
"被邀请人:%s已有团队或已绑定上级,不能再接受邀请"
,
vistorId
)
,
response
.
body
().
asString
()));
}
//获取info接口的代理人id
...
...
src/test/java/com/kjj/config/ExtentTestNGIReporterListener.java
View file @
7f8186c0
...
...
@@ -103,7 +103,7 @@ public class ExtentTestNGIReporterListener implements IReporter {
}
contextString
.
append
(
suite
.
getName
()).
append
(
"\n"
)
.
append
(
String
.
format
(
"
通过的用例数: %s\n失败的用例数: %s\n"
,
suitePassSize
,
suiteFailSize
))
.
append
(
String
.
format
(
"
总用例数: %s\n通过的用例数: %s\n失败的用例数: %s\n"
,
suite
.
getAllMethods
().
size
()
,
suitePassSize
,
suiteFailSize
))
.
append
(
"\n"
);
}
try
{
...
...
src/test/testNG.xml
View file @
7f8186c0
...
...
@@ -2,7 +2,7 @@
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite
name=
"客集集"
verbose=
"1"
thread-count=
"3"
>
<suite-files>
<!-- <suite-file path="wechatTestNG.xml"></suite-file>--
>
<suite-file
path=
"wechatTestNG.xml"
></suite-file
>
<suite-file
path=
"liveTestNG.xml"
></suite-file>
</suite-files>
<!-- 监听器-->
...
...
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