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
0da33e72
Commit
0da33e72
authored
Jul 21, 2021
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了贺卡首页的测试用例、网络请求工具类中对请求状态码的校验
parent
c67bc10e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
27 deletions
+25
-27
ArticalPersonCard.java
.../java/com/kjj/cases/assistant/card/ArticalPersonCard.java
+0
-2
wechatTestNG.xml
src/test/wechatTestNG.xml
+25
-25
No files found.
src/test/java/com/kjj/cases/assistant/card/ArticalPersonCard.java
View file @
0da33e72
...
@@ -208,8 +208,6 @@ public class ArticalPersonCard implements Authorization {
...
@@ -208,8 +208,6 @@ public class ArticalPersonCard implements Authorization {
params
.
put
(
"fromUserId"
,
userId
);
// 代理人的用户id
params
.
put
(
"fromUserId"
,
userId
);
// 代理人的用户id
params
.
put
(
"visitPath"
,
1
);
//访问路径来源 0未知,1个人,2朋友圈,3群
params
.
put
(
"visitPath"
,
1
);
//访问路径来源 0未知,1个人,2朋友圈,3群
Response
response
=
network
.
getResponse
(
params
,
CONTENT_READ
);
Response
response
=
network
.
getResponse
(
params
,
CONTENT_READ
);
System
.
out
.
println
(
params
);
System
.
out
.
println
(
response
.
body
().
asString
());
visitId
=
response
.
jsonPath
().
getString
(
"data.visitId"
);
visitId
=
response
.
jsonPath
().
getString
(
"data.visitId"
);
Assert
.
assertNotNull
(
visitId
,
network
.
message
(
params
,
CONTENT_READ
,
"访客视角-获取访问记录失败"
,
response
.
body
().
asString
()));
Assert
.
assertNotNull
(
visitId
,
network
.
message
(
params
,
CONTENT_READ
,
"访客视角-获取访问记录失败"
,
response
.
body
().
asString
()));
}
}
...
...
src/test/wechatTestNG.xml
View file @
0da33e72
...
@@ -2,16 +2,16 @@
...
@@ -2,16 +2,16 @@
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite
name=
"集客助手"
verbose=
"1"
thread-count=
"3"
>
<suite
name=
"集客助手"
verbose=
"1"
thread-count=
"3"
>
<!-- <test preserve-order="true" name="支付">--
>
<test
preserve-order=
"true"
name=
"支付"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.basics.Pay"/>--
>
<class
name=
"com.kjj.cases.basics.Pay"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name = "首页">--
>
<test
preserve-order=
"true"
name =
"首页"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.assistant.homePage"/>--
>
<class
name=
"com.kjj.cases.assistant.homePage"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<test
preserve-order=
"true"
name=
"我的名片"
>
<test
preserve-order=
"true"
name=
"我的名片"
>
<classes>
<classes>
<class
name=
"com.kjj.cases.assistant.card.PersonCard"
/>
<class
name=
"com.kjj.cases.assistant.card.PersonCard"
/>
...
@@ -22,21 +22,21 @@
...
@@ -22,21 +22,21 @@
<class
name=
"com.kjj.cases.assistant.card.ArticalPersonCard"
/>
<class
name=
"com.kjj.cases.assistant.card.ArticalPersonCard"
/>
</classes>
</classes>
</test>
</test>
<!-- <test preserve-order="true" name = "种草素材">--
>
<test
preserve-order=
"true"
name =
"种草素材"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.assistant.RecommendMaterial"/>--
>
<class
name=
"com.kjj.cases.assistant.RecommendMaterial"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name = "今日早报">--
>
<test
preserve-order=
"true"
name =
"今日早报"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.assistant.DailyPaper"/>--
>
<class
name=
"com.kjj.cases.assistant.DailyPaper"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name = "谁看过我_团队看板">--
>
<test
preserve-order=
"true"
name =
"谁看过我_团队看板"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.assistant.whoSawMe.WhoSawMe"/>--
>
<class
name=
"com.kjj.cases.assistant.whoSawMe.WhoSawMe"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<test
preserve-order=
"true"
name =
"贺卡"
>
<test
preserve-order=
"true"
name =
"贺卡"
>
<classes>
<classes>
<class
name=
"com.kjj.cases.assistant.markettools.greetingCrad"
/>
<class
name=
"com.kjj.cases.assistant.markettools.greetingCrad"
/>
...
...
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