Commit cda1dcfc authored by 赵然's avatar 赵然

Merge branch 'develop'

parents 1f2a25f7 b620a880
......@@ -229,8 +229,8 @@ public class 虚拟商品_兑换异常测试_ExchangeTest extends DuibaTestBase
@Test(description = "虚拟商品自定义兑换按钮文案马上使用按钮")
public void 虚拟商品自定义兑换按钮文案马上使用按钮() throws Exception {
logger.info("虚拟商品马上使用按钮验证开始");
//创建虚拟商品的时候,有自定义兑换按钮文案的文案设置,将文案设置成马上使用
logger.info("虚拟商品马上使用按钮验证开始");
//创建虚拟商品的时候,有自定义兑换按钮文案的文案设置,将文案设置成马上使用
//商品详情页面
Response response = mobileService.appItemDetail(authorization.dafuwengLogin(uid), "186447");
response.prettyPrint();
......@@ -258,9 +258,10 @@ public class 虚拟商品_兑换异常测试_ExchangeTest extends DuibaTestBase
}
Response resultResponse = crecordService.recordDetailNew(orderId,uid);
exchangeText = MatcherString.getString(resultResponse.asString(), "\"exchangeStatusText\":\"(.*?)\",", 1);
response.prettyPrint();
logger.info("exchangeText"+exchangeText);
Assert.assertEquals(resultResponse.asString().contains("兑换成功"),true,"兑换数据页面数据返回错误");
// Assert.assertEquals(resultResponse.asString().contains("兑换成功"),true,"兑换数据页面数据返回错误");
Assert.assertEquals(response.jsonPath().getString("data.message"),"兑换成功!","兑换数据页面数据返回错误");
}
@Test(description = "自动下架时间,下架后无法兑换")
public void 自动下架时间下架后无法兑换() throws Exception {
......
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