Commit fb3285c5 by yangjian

积分增加sleep时间

parent bab6cbd4
...@@ -39,7 +39,7 @@ public class TestFindAccountPagePermission extends XMBaseTest { ...@@ -39,7 +39,7 @@ public class TestFindAccountPagePermission extends XMBaseTest {
@Test(description = "场馆手动-积分") @Test(description = "场馆手动-积分")
public void testFindAccountPagePermission(){ public void testFindAccountPagePermission() throws InterruptedException {
String phone = "13357537209"; String phone = "13357537209";
String memberId = trainingTools.searchTargerMember(phone); String memberId = trainingTools.searchTargerMember(phone);
if (memberId.isEmpty()) { if (memberId.isEmpty()) {
...@@ -59,6 +59,7 @@ public class TestFindAccountPagePermission extends XMBaseTest { ...@@ -59,6 +59,7 @@ public class TestFindAccountPagePermission extends XMBaseTest {
pointsTools.manualAwardPoint("1",memberId);//会员详情增加1积分 pointsTools.manualAwardPoint("1",memberId);//会员详情增加1积分
Thread.sleep(1000);
//核对积分帐户的积分的变化 //核对积分帐户的积分的变化
int AftotalAwardBalance1 = Integer.parseInt(XMJSONPath.readPath(pointsTools.findAccountPagePermission(xmAppApi.getLoginInfo().getStudioId(),memberId), "$.result.records[0].totalAwardBalance"));//发放积分数 int AftotalAwardBalance1 = Integer.parseInt(XMJSONPath.readPath(pointsTools.findAccountPagePermission(xmAppApi.getLoginInfo().getStudioId(),memberId), "$.result.records[0].totalAwardBalance"));//发放积分数
int AfleftBalance1 = Integer.parseInt(XMJSONPath.readPath(pointsTools.findAccountPagePermission(xmAppApi.getLoginInfo().getStudioId(),memberId), "$.result.records[0].leftBalance"));//剩余积分数 int AfleftBalance1 = Integer.parseInt(XMJSONPath.readPath(pointsTools.findAccountPagePermission(xmAppApi.getLoginInfo().getStudioId(),memberId), "$.result.records[0].leftBalance"));//剩余积分数
...@@ -76,6 +77,7 @@ public class TestFindAccountPagePermission extends XMBaseTest { ...@@ -76,6 +77,7 @@ public class TestFindAccountPagePermission extends XMBaseTest {
pointsTools.manualDeductPoint("1",memberId);//会员详情扣减1积分 pointsTools.manualDeductPoint("1",memberId);//会员详情扣减1积分
Thread.sleep(1000);
//核对积分帐户的积分的变化 //核对积分帐户的积分的变化
int AfalreadyUsedBalance2 = Integer.parseInt(XMJSONPath.readPath(pointsTools.findAccountPagePermission(xmAppApi.getLoginInfo().getStudioId(),memberId), "$.result.records[0].alreadyUsedBalance"));//已使用积分积分数 int AfalreadyUsedBalance2 = Integer.parseInt(XMJSONPath.readPath(pointsTools.findAccountPagePermission(xmAppApi.getLoginInfo().getStudioId(),memberId), "$.result.records[0].alreadyUsedBalance"));//已使用积分积分数
int AfleftBalance2 = Integer.parseInt(XMJSONPath.readPath(pointsTools.findAccountPagePermission(xmAppApi.getLoginInfo().getStudioId(),memberId), "$.result.records[0].leftBalance"));//剩余积分数 int AfleftBalance2 = Integer.parseInt(XMJSONPath.readPath(pointsTools.findAccountPagePermission(xmAppApi.getLoginInfo().getStudioId(),memberId), "$.result.records[0].leftBalance"));//剩余积分数
......
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