Commit def973fc by xyy

更新case

parent eb65a647
......@@ -78,7 +78,7 @@ public class TestDiscardManualDeduct extends XMBaseTest {
//check卡的消耗记录再次新增1条记录,并且校验消耗记录的类型及扣除次数的准确性
Assert.assertTrue(Integer.parseInt(XMJSONPath.readPath(cardTools.fetchPageOfConsumeRecord(benefitId,memberCardId),"$.result.total"))==num+2);
Assert.assertTrue(XMJSONPath.readPath(cardTools.fetchPageOfConsumeRecord(benefitId,memberCardId),"$.result.records[0].consumeType").equals("MANUAL_DEDUCT"),"操作手动扣次,消耗记录第一条操作类型");
Assert.assertTrue(XMJSONPath.readPath(cardTools.fetchPageOfConsumeRecord(benefitId,memberCardId),"$.result.records[0].consumeType").equals("DISCARD_MANUAL_DEDUCT"),"操作手动扣次,消耗记录第一条操作类型");
Assert.assertTrue(XMJSONPath.readPath(cardTools.fetchPageOfConsumeRecord(benefitId,memberCardId),"$.result.records[0].changeOfPurchaseBalance").equals(balance),"操作手动扣次,消耗次数");
Thread.sleep(3000);
......
......@@ -47,8 +47,7 @@ public class TestModifySharers extends XMBaseTest {
public Object[][] dataProvider(){
return new Object[][]{
{"MEMBER"},//会员卡
{"DEPOSIT"},//储值卡
{"EXPERIENCE"}//体验卡
{"DEPOSIT"}//储值卡
};
}
@Test(description = "添加共享人-->移除共享人",dataProvider = "dataProvider")
......
......@@ -63,7 +63,7 @@ public class TestModifyXcxSaleState extends XMBaseTest {
//check 会员卡详情,查看状态是否是下架状态
cardTools.fetchDetailById(memberCardId);
Assert.assertEquals(XMJSONPath.readPath(dataApi.getApi_response(), "$.result.xcxSaleState"), "NO", "操作关闭小程序售卖后,查看卡详情,卡售卖状态没变更为NO");
Assert.assertEquals(XMJSONPath.readPath(dataApi.getApi_response(), "$.result.xcxSaleStatus"), "NO", "操作关闭小程序售卖后,查看卡详情,卡售卖状态没变更为NO");
}
}
......@@ -90,7 +90,7 @@ public class TestModifyXcxSaleState extends XMBaseTest {
//check 会员卡详情,查看状态是否是下架状态
cardTools.fetchDetailById(memberCardId);
Assert.assertEquals(XMJSONPath.readPath(dataApi.getApi_response(), "$.result.xcxSaleState"), "NO", "操作启用小程序售卖后,查看卡详情,卡售卖状态没变更为YES");
Assert.assertEquals(XMJSONPath.readPath(dataApi.getApi_response(), "$.result.xcxSaleStatus"), "NO", "操作启用小程序售卖后,查看卡详情,卡售卖状态没变更为YES");
}
......
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