|
@@ -137,29 +137,29 @@ public class PolicyPageTest {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- @Test
|
|
|
- @Description("正常测试用例:【申报通知】筛选区域=国家级的政策")
|
|
|
- @Story("政策文库")
|
|
|
- public void policyLocationContrySearchSuccess(){
|
|
|
- try{
|
|
|
- List<String> list=policyPage.getCountryDepartment();
|
|
|
- HashMap<String,Object> map=new HashMap<>();
|
|
|
- map.put("_file", "/apijson/page/policyPage/apiQueryPolicyByPC.json");
|
|
|
- map.put("areas",new String[]{"000000","",""});
|
|
|
- Response response=policyPage.policySearch(map);
|
|
|
- assertEquals((int)response.path("code"),200);
|
|
|
- assertEquals(response.path("message"),"操作成功");
|
|
|
- JsonPath jsonPath=new JsonPath(response.asString());
|
|
|
- List<String> title=jsonPath.get("data.hits.department");
|
|
|
- title.forEach(string -> {
|
|
|
- assertTrue(list.contains(string));
|
|
|
- });
|
|
|
- assertTrue((int)response.path("data.total")>0);
|
|
|
- }catch (AssertionError e){
|
|
|
- Reporter.log("PolicyPageTest.policyLocationContrySearchSuccess:【申报通知】筛选区域=国家级的政策,断言失败!");
|
|
|
- throw e;
|
|
|
- }
|
|
|
- }
|
|
|
+// @Test
|
|
|
+// @Description("正常测试用例:【申报通知】筛选区域=国家级的政策")
|
|
|
+// @Story("政策文库")
|
|
|
+// public void policyLocationContrySearchSuccess(){
|
|
|
+// try{
|
|
|
+// List<String> list=policyPage.getCountryDepartment();
|
|
|
+// HashMap<String,Object> map=new HashMap<>();
|
|
|
+// map.put("_file", "/apijson/page/policyPage/apiQueryPolicyByPC.json");
|
|
|
+// map.put("areas",new String[]{"000000","",""});
|
|
|
+// Response response=policyPage.policySearch(map);
|
|
|
+// assertEquals((int)response.path("code"),200);
|
|
|
+// assertEquals(response.path("message"),"操作成功");
|
|
|
+// JsonPath jsonPath=new JsonPath(response.asString());
|
|
|
+// List<String> title=jsonPath.get("data.hits.department");
|
|
|
+// title.forEach(string -> {
|
|
|
+// assertTrue(list.contains(string));
|
|
|
+// });
|
|
|
+// assertTrue((int)response.path("data.total")>0);
|
|
|
+// }catch (AssertionError e){
|
|
|
+// Reporter.log("PolicyPageTest.policyLocationContrySearchSuccess:【申报通知】筛选区域=国家级的政策,断言失败!");
|
|
|
+// throw e;
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
@Test
|
|
|
@Description("正常测试用例:【申报通知】筛选区域=广东省的政策")
|