Commit 4f54084d authored by 赵然's avatar 赵然

zr

parent f21d02b6
...@@ -438,6 +438,7 @@ public class ObjectExchange_ExchangeTest extends DuibaTestBase{ ...@@ -438,6 +438,7 @@ public class ObjectExchange_ExchangeTest extends DuibaTestBase{
//直充类流量兑换 //直充类流量兑换
@Test(description = "直充类流量兑换") @Test(description = "直充类流量兑换")
public void 流量兑换() throws Exception { public void 流量兑换() throws Exception {
int uid = 4376;
Thread.sleep(2000); Thread.sleep(2000);
Map<String, Object> mapuser = jdbc.findSimpleResult("select * from dafuweng.user where id="+uid); Map<String, Object> mapuser = jdbc.findSimpleResult("select * from dafuweng.user where id="+uid);
String credits = String.valueOf(mapuser.get("credits")); String credits = String.valueOf(mapuser.get("credits"));
...@@ -446,7 +447,7 @@ public class ObjectExchange_ExchangeTest extends DuibaTestBase{ ...@@ -446,7 +447,7 @@ public class ObjectExchange_ExchangeTest extends DuibaTestBase{
credits = String.valueOf(Integer.valueOf(credits) - 600); credits = String.valueOf(Integer.valueOf(credits) - 600);
//兑换详情页 //兑换详情页
Response response = mobileService.detail(authorization.dafuwengLogin(uid), "3"); Response response = mobileService.detail(authorization.dafuwengLogin(uid), "3");
Map<String, String> map = authorization.dafuwengLogin(uid); //Map<String, String> map = authorization.dafuwengLogin(uid);
Assert.assertEquals(String.valueOf(response.getStatusCode()), "200", "活动详情页请求异常"); Assert.assertEquals(String.valueOf(response.getStatusCode()), "200", "活动详情页请求异常");
//流量兑换 //流量兑换
response = couponExchangeService.phoneflowExchange(authorization.dafuwengLogin(uid), "51200", "3","13193354550","中国联通","陕西"); response = couponExchangeService.phoneflowExchange(authorization.dafuwengLogin(uid), "51200", "3","13193354550","中国联通","陕西");
......
...@@ -209,7 +209,7 @@ public class Qb_兑换流程测试_ExchangeTest extends DuibaTestBase { ...@@ -209,7 +209,7 @@ public class Qb_兑换流程测试_ExchangeTest extends DuibaTestBase {
Assert.assertTrue(message.contains("\"success\":false")); Assert.assertTrue(message.contains("\"success\":false"));
} }
@Test //@Test
public void 审核通过测试() throws Exception { public void 审核通过测试() throws Exception {
//查询兑换前的开发者账户余额 //查询兑换前的开发者账户余额
...@@ -273,7 +273,7 @@ public class Qb_兑换流程测试_ExchangeTest extends DuibaTestBase { ...@@ -273,7 +273,7 @@ public class Qb_兑换流程测试_ExchangeTest extends DuibaTestBase {
logger.info("校验支付宝扣费订单成功"); logger.info("校验支付宝扣费订单成功");
} }
@Test //@Test
public void 审核不通过测试() throws Exception{ public void 审核不通过测试() throws Exception{
//查询兑换前的开发者账户余额 //查询兑换前的开发者账户余额
......
...@@ -279,7 +279,7 @@ public class 商品订单失败测试_ExchangeTest extends DuibaTestBase { ...@@ -279,7 +279,7 @@ public class 商品订单失败测试_ExchangeTest extends DuibaTestBase {
} }
@Test //@Test
public void 支付宝审核不通过测试() throws Exception{ 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