|
@@ -1003,37 +1003,37 @@ public class PolicyPageTest {
|
|
|
// assertEquals(response.path("data"),"纳入成功");
|
|
|
// }
|
|
|
|
|
|
- @Test
|
|
|
- @Description("正常测试用例:取消纳入申报计划成功")
|
|
|
- @Story("政策文库")
|
|
|
- public void cancelDeclarePlanSuccess(){
|
|
|
- List<Integer> declareplanid=policyPage.getDeclarePlanId();
|
|
|
- HashMap<String,Object> body=new HashMap<>();
|
|
|
- body.put("_file","/apijson/page/policyPage/apiPcpDeclaremanagerAddDeclarePlan.json");
|
|
|
- body.put("memberId",homePage.getUserId());
|
|
|
- body.put("formalId",declareplanid.get(0));
|
|
|
- body.put("type",1);
|
|
|
- Response response=policyPage.addDeclarePlan(body);
|
|
|
- assertEquals((int)response.path("code"),200);
|
|
|
- assertEquals(response.path("message"),"操作成功");
|
|
|
- assertEquals(response.path("data"),"取消纳入成功");
|
|
|
- }
|
|
|
+// @Test
|
|
|
+// @Description("正常测试用例:取消纳入申报计划成功")
|
|
|
+// @Story("政策文库")
|
|
|
+// public void cancelDeclarePlanSuccess(){
|
|
|
+// List<Integer> declareplanid=policyPage.getDeclarePlanId();
|
|
|
+// HashMap<String,Object> body=new HashMap<>();
|
|
|
+// body.put("_file","/apijson/page/policyPage/apiPcpDeclaremanagerAddDeclarePlan.json");
|
|
|
+// body.put("memberId",homePage.getUserId());
|
|
|
+// body.put("formalId",declareplanid.get(0));
|
|
|
+// body.put("type",1);
|
|
|
+// Response response=policyPage.addDeclarePlan(body);
|
|
|
+// assertEquals((int)response.path("code"),200);
|
|
|
+// assertEquals(response.path("message"),"操作成功");
|
|
|
+// assertEquals(response.path("data"),"取消纳入成功");
|
|
|
+// }
|
|
|
|
|
|
- @Test
|
|
|
- @Description("异常测试用例:纳入已申报的计划失败")
|
|
|
- @Story("政策文库")
|
|
|
- public void repettionAddDeclarePlanSuccess(){
|
|
|
- List<Integer> declareplanid=policyPage.getDeclarePlanId();
|
|
|
- HashMap<String,Object> body=new HashMap<>();
|
|
|
- body.put("_file","/apijson/page/policyPage/apiPcpDeclaremanagerAddDeclarePlan.json");
|
|
|
- body.put("memberId",homePage.getUserId());
|
|
|
- body.put("formalId",declareplanid.get(0));
|
|
|
- body.put("type",0);
|
|
|
- Response response=policyPage.addDeclarePlan(body);
|
|
|
- assertEquals((int)response.path("code"),500);
|
|
|
- assertEquals(response.path("message"),"已存在");
|
|
|
- assertTrue(response.path("data")==null);
|
|
|
- }
|
|
|
+// @Test
|
|
|
+// @Description("异常测试用例:纳入已申报的计划失败")
|
|
|
+// @Story("政策文库")
|
|
|
+// public void repettionAddDeclarePlanSuccess(){
|
|
|
+// List<Integer> declareplanid=policyPage.getDeclarePlanId();
|
|
|
+// HashMap<String,Object> body=new HashMap<>();
|
|
|
+// body.put("_file","/apijson/page/policyPage/apiPcpDeclaremanagerAddDeclarePlan.json");
|
|
|
+// body.put("memberId",homePage.getUserId());
|
|
|
+// body.put("formalId",declareplanid.get(0));
|
|
|
+// body.put("type",0);
|
|
|
+// Response response=policyPage.addDeclarePlan(body);
|
|
|
+// assertEquals((int)response.path("code"),500);
|
|
|
+// assertEquals(response.path("message"),"已存在");
|
|
|
+// assertTrue(response.path("data")==null);
|
|
|
+// }
|
|
|
|
|
|
@Test
|
|
|
@Description("正常测试用例:获取公示公告关联的政策文件")
|