Commit c07c1684 authored by 吕雯燕's avatar 吕雯燕

lv

parent 1bca6bdb
......@@ -28,6 +28,7 @@ import java.util.Map;
import utils.RedisUtil;
import static io.restassured.RestAssured.given;
import static io.restassured.RestAssured.urlEncodingEnabled;
/**
* Created by lvwenyan on 2019/3/26.
......@@ -464,9 +465,9 @@ public class 兑吧卡密_兑换流程测试_ExchangeTest extends CheckTemplet {
@Test(description = "兑吧卡密跳转按钮")
public void 马上使用跳转() throws Exception{
String appItemId = "194957";
String itemId = "32603";
String skuId = "94";
String appItemId = "195065";
String itemId = "32609";
String skuId = "106";
Map cookies = authorization.dafuwengLogin(uid);
//优惠券兑换
......@@ -493,10 +494,12 @@ public class 兑吧卡密_兑换流程测试_ExchangeTest extends CheckTemplet {
String useButtonText = detailResponse.jsonPath().getString("data[0].useButtonText");
String iosDownloadUrl = detailResponse.jsonPath().getString("data[0].iosDownloadUrl");
String credits = detailResponse.jsonPath().getString("data[0].credits");
String cardAmount = detailResponse.jsonPath().getString("data[0].cardAmount");
Assert.assertEquals(useButtonText,"去使用","校验去使用按钮失败");
Assert.assertEquals(iosDownloadUrl,"http://www.iqiyi.com","校验按钮链接失败");
Assert.assertEquals(credits,"100","校验积分失败");
Assert.assertEquals(cardAmount,"20000","校验面值失败");
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