Commit 67c00e6b authored by 吕雯燕's avatar 吕雯燕

lv

parent 5fccbe42
......@@ -57,44 +57,44 @@ public class 商品组件_DuibaTest extends DuibaTestBase{
//校验兑吧商品
Assert.assertEquals(response.jsonPath().getString("data.rows[0].title"),"10元话费","校验第一个商品title失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[0].customCredits"),"1000","校验第一个商品credits失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[0].facePrice"),"0.0","校验第一个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[0].facePrice"),"10.00","校验第一个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[0].smallImage"),"//yun.duiba.com.cn/developer/img/phonebilldingzhi10/telephone_charge_breviary.jpg","校验第一个商品smallImage失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[1].title"),"支付宝充值","校验第二个商品title失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[1].customCredits"),"100000","校验第二个商品credits失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[1].facePrice"),"0.0","校验第二个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[1].facePrice"),"0.00","校验第二个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[1].smallImage"),"//yun.dui88.com/images/201610/txqn3qz6o9.jpg","校验第二个商品smallImage失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[2].title"),"【自动化勿动】兑吧新优惠券普通券码跳转","校验第三个商品title失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[2].customCredits"),"100","校验第三个商品credits失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[2].facePrice"),"100.0","校验第三个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[2].facePrice"),"100.00","校验第三个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[2].smallImage"),"//yun.dui88.com/images/201903/ibdef09gw3.png","校验第三个商品smallImage失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[3].title"),"【自动化勿动】兑吧新实物","校验第四个商品title失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[3].customCredits"),"300","校验第四个商品credits失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[3].facePrice"),"300.0","校验第四个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[3].facePrice"),"300.00","校验第四个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[3].smallImage"),"//yun.dui88.com/images/201904/dkk6pttatj.jpg","校验第四个商品smallImage失败");
logger.info("校验后台商品组件兑吧商品展示成功");
//校验自有商品
Assert.assertEquals(response.jsonPath().getString("data.rows[4].title"),"【自动化勿动】自有卡密","校验第五个商品title失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[4].customCredits"),"550","校验第五个商品credits失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[4].facePrice"),"200.0","校验第五个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[4].facePrice"),"200.00","校验第五个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[4].smallImage"),"//yun.dui88.com/images/201904/ug1ovw21ys.jpg","校验第五个商品smallImage失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[5].title"),"【自动化勿动】自有充值商品","校验第六个商品title失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[5].customCredits"),"300","校验第六个商品credits失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[5].facePrice"),"50.0","校验第六个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[5].facePrice"),"50.00","校验第六个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[5].smallImage"),"//yun.dui88.com/images/201904/zhrc72q09p.jpg","校验第六个商品smallImage失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[6].title"),"【自动化勿动】自有新优惠券跳转链接","校验第七个商品title失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[6].customCredits"),"100","校验第七个商品credits失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[6].facePrice"),"100.0","校验第七个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[6].facePrice"),"100.00","校验第七个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[6].smallImage"),"//yun.dui88.com/images/201904/ic2vqnu3x0.jpg","校验第七个商品smallImage失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[7].title"),"【自动化勿动】自有实物sku","校验第八个商品title失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[7].customCredits"),"100","校验第八个商品credits失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[7].facePrice"),"100.0","校验第八个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[7].facePrice"),"100.00","校验第八个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[7].smallImage"),"//yun.dui88.com/images/201906/9p72lmu1qn.jpg","校验第八个商品smallImage失败");
logger.info("校验后台商品组件自有商品展示成功");
......@@ -120,39 +120,39 @@ public class 商品组件_DuibaTest extends DuibaTestBase{
//校验兑吧商品
Assert.assertEquals(response.jsonPath().getString("data.rows[0].title"),"5元话费","校验第一个商品title失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[0].customCredits"),"3500","校验第一个商品credits失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[0].facePrice"),"0.0","校验第一个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[0].facePrice"),"5.00","校验第一个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[0].smallImage"),"//yun.duiba.com.cn/images/5ayvpsoncj.jpg","校验第一个商品smallImage失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[1].title"),"支付宝充值","校验第二个商品title失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[1].customCredits"),"1000","校验第二个商品credits失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[1].facePrice"),"0.0","校验第二个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[1].facePrice"),"0.00","校验第二个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[1].smallImage"),"//yun.dui88.com/images/201610/txqn3qz6o9.jpg","校验第二个商品smallImage失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[2].title"),"【勿动】兑吧优惠券共享库存测试","校验第三个商品title失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[2].customCredits"),"140","校验第三个商品credits失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[2].facePrice"),"100.0","校验第三个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[2].facePrice"),"100.00","校验第三个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[2].smallImage"),"//yun.dui88.com/images/201807/79r9bwt2my.png","校验第三个商品smallImage失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[3].title"),"【自动化勿动】兑吧实物日期兑换限制进行中","校验第四个商品title失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[3].customCredits"),"700","校验第四个商品credits失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[3].facePrice"),"10.0","校验第四个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[3].facePrice"),"10.00","校验第四个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[3].smallImage"),"//yun.dui88.com/images/201806/28m2esmi0d.jpg","校验第四个商品smallImage失败");
logger.info("校验后台商品组件兑吧商品展示成功");
//校验自有商品
Assert.assertEquals(response.jsonPath().getString("data.rows[4].title"),"【自动化勿动】自有虚拟商品","校验第五个商品title失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[4].customCredits"),"1000","校验第五个商品credits失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[4].facePrice"),"222.0","校验第五个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[4].facePrice"),"222.00","校验第五个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[4].smallImage"),"//yun.dui88.com/images/201904/n71mi1ixwf.gif","校验第五个商品smallImage失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[5].title"),"【自动化勿动】自有优惠券","校验第六个商品title失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[5].customCredits"),"100","校验第六个商品credits失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[5].facePrice"),"1.0","校验第六个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[5].facePrice"),"1.00","校验第六个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[5].smallImage"),"//yun.dui88.com/images/201904/5h0skt3nqp.png","校验第六个商品smallImage失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[6].title"),"【自动化勿动】自有实物","校验第七个商品title失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[6].customCredits"),"200","校验第七个商品credits失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[6].facePrice"),"122.0","校验第七个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[6].facePrice"),"122.00","校验第七个商品facePrice失败");
Assert.assertEquals(response.jsonPath().getString("data.rows[6].smallImage"),"//yun.dui88.com/images/201904/a410736wql.gif","校验第七个商品smallImage失败");
logger.info("校验后台商品组件自有商品展示成功");
......
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