Commit 0da33e72 authored by 龚小红's avatar 龚小红

修改了贺卡首页的测试用例、网络请求工具类中对请求状态码的校验

parent c67bc10e
...@@ -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()));
} }
......
...@@ -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"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment