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

lv

parent 9ccb2dc0
...@@ -17,6 +17,8 @@ public class Database { ...@@ -17,6 +17,8 @@ public class Database {
public static String orders10 = "orders_0411"; public static String orders10 = "orders_0411";
public static String orders11 = "orders_0182"; public static String orders11 = "orders_0182";
public static String orders12 = "orders_0715"; public static String orders12 = "orders_0715";
public static String orders13 = "orders_0717";
......
...@@ -302,6 +302,39 @@ public class 新支付宝_兑换流程测试_ExchangeTest extends CheckTemplet { ...@@ -302,6 +302,39 @@ public class 新支付宝_兑换流程测试_ExchangeTest extends CheckTemplet {
} }
@Test(description = "支付宝用户id修改测试")
public void 支付宝用户id修改测试() throws Exception{
//uid: 大富翁app
//商品: lv测试应用77
int uid = 7204;
String actualCredits = "10";
String degreeId = "10";
String appItemId = "196921";
String credits = "10";
String message = "";
//支付宝兑换, 走大富翁app的支付宝
Response response = gawService.alipayExchange(uid,actualCredits,degreeId,appItemId,credits);
response.prettyPrint();
String orderId = response.jsonPath().getString("data.orderId");
//查询数据库
Thread.sleep(3000);
Map<String,Object> mapOrderId = jdbc.findSimpleResult("SELECT * FROM "+ Database.orders_consumer+"."+ Database.orders13 + " where id = " + orderId);
String orderStatus = String.valueOf(mapOrderId.get("status"));
String orderappId = String.valueOf(mapOrderId.get("app_id"));
String orderCredits = String.valueOf(mapOrderId.get("credits"));
logger.info("订单积分:" + orderCredits);
Assert.assertEquals(orderStatus,"consume_success","校验status失败");
Assert.assertEquals(orderappId,"1","校验appId失败");
Assert.assertEquals(orderCredits,"1000","校验credits失败");
logger.info("校验支付宝用户id修改兑换成功");
}
......
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