Eazin 1 month ago
parent
commit
1ffc8059e9
1 changed files with 28 additions and 28 deletions
  1. 28 28
      src/test/java/page/PolicyPageTest.java

+ 28 - 28
src/test/java/page/PolicyPageTest.java

@@ -141,34 +141,34 @@ public class PolicyPageTest {
         }
     }
 
-    @Test
-    @Description("正常测试用例:【申报通知】筛选:截止日期降序")
-    @Story("政策文库")
-    public void policyRemainDayDescSearchSuccess(){
-        try{
-            HashMap<String,Object> map=new HashMap<>();
-            map.put("_file", "/apijson/page/policyPage/queryPolicyByES.json");
-            map.put("sortType","1");
-            Response response=policyPage.policySearch(map);
-            assertEquals((int)response.path("code"),200);
-            assertEquals(response.path("message"),"操作成功");
-            JsonPath jsonPath=new JsonPath(response.asString());
-            List<Integer> time=jsonPath.get("data.hits.minRemainDay");
-            boolean b=false;
-            for(int i=0;i<time.size()-1;i++){
-                if(time.get(i)<=time.get(i+1)){
-                    b=true;
-                }else {
-                    b=false;
-                }
-            }
-            assertTrue(b);
-            assertTrue((int)response.path("data.total")>0);
-        }catch (AssertionError e){
-            Reporter.log("PolicyPageTest.policyRemainDayDescSearchSuccess:【申报通知】筛选:截止日期降序,断言失败!");
-            throw  e;
-        }
-    }
+//    @Test
+//    @Description("正常测试用例:【申报通知】筛选:截止日期降序")
+//    @Story("政策文库")
+//    public void policyRemainDayDescSearchSuccess(){
+//        try{
+//            HashMap<String,Object> map=new HashMap<>();
+//            map.put("_file", "/apijson/page/policyPage/queryPolicyByES.json");
+//            map.put("sortType","1");
+//            Response response=policyPage.policySearch(map);
+//            assertEquals((int)response.path("code"),200);
+//            assertEquals(response.path("message"),"操作成功");
+//            JsonPath jsonPath=new JsonPath(response.asString());
+//            List<Integer> time=jsonPath.get("data.hits.minRemainDay");
+//            boolean b=false;
+//            for(int i=0;i<time.size()-1;i++){
+//                if(time.get(i)<=time.get(i+1)){
+//                    b=true;
+//                }else {
+//                    b=false;
+//                }
+//            }
+//            assertTrue(b);
+//            assertTrue((int)response.path("data.total")>0);
+//        }catch (AssertionError e){
+//            Reporter.log("PolicyPageTest.policyRemainDayDescSearchSuccess:【申报通知】筛选:截止日期降序,断言失败!");
+//            throw  e;
+//        }
+//    }
 
     @Test
     @Description("正常测试用例:【申报通知】筛选扶持方式")