Commit 8f587fbc authored by 赵然's avatar 赵然

zr

parent 347695d5
......@@ -79,7 +79,7 @@ public class 插件场景测试_pluginTest extends DuibaTestBase {
}else
if(method.getName().equals("插件触发事件测试")){
result = new Object[][]{
// new Object[]{1,"0","chome","插件触发事件有效期内首次访问"},
new Object[]{1,"0","chome","插件触发事件有效期内首次访问"},
new Object[]{2,"4","chome","插件触发事件未登录用户访问"},
};
......
......@@ -70,7 +70,7 @@ public class 补给站_活动_DuibaTest extends AbstractTestNGSpringContextTests
public void b_添加签到活动() throws Exception{
//查询热门活动-活动列表,获取商品ID
Response response=developerBJZ.saasActivitys("2",appId);
String goodItemId= String.valueOf(response.jsonPath().getString("data.saasActivitys[1].id"));
String goodItemId= String.valueOf(response.jsonPath().getString("data.saasActivitys[0].id"));
//获取商品ID,进入商品订购页面,获取SKU
Response response2=developerBJZ.itemOrderDetail(goodItemId,appId);
String skuId= String.valueOf(response2.jsonPath().getString("data.goodsItemSku[0].skuId"));
......@@ -92,7 +92,7 @@ public class 补给站_活动_DuibaTest extends AbstractTestNGSpringContextTests
public void c_待处理的订单() throws Exception{
//查询热门活动-活动列表,获取商品ID
Response response=developerBJZ.saasActivitys("2",appId);
String goodItemId= String.valueOf(response.jsonPath().getString("data.saasActivitys[1].id"));
String goodItemId= String.valueOf(response.jsonPath().getString("data.saasActivitys[0].id"));
//获取商品ID,进入商品订购页面,获取SKU
Response response2=developerBJZ.itemOrderDetail(goodItemId,appId);
String skuId= String.valueOf(response2.jsonPath().getString("data.goodsItemSku[0].skuId"));
......
......@@ -30,6 +30,7 @@ public class 开发者签到编辑_signTest extends AbstractTestNGSpringContextT
Assert.assertEquals(response.jsonPath().getString("data.list[0].openToDev"),"false","来自Duiba的签到编辑权限失败");
Assert.assertEquals(response.jsonPath().getString("data.list[1].openToDev"),"true","来自开发者自有的签到编辑权限失败");
Assert.assertEquals(response.jsonPath().getString("data.list[2].openToDev"),"true","来自开发者自有的签到编辑权限失败");
logger.info("开发者签到编辑权限校验成功");
}
......
......@@ -63,7 +63,7 @@ public class 总帐户账户正常提现 extends DuibaTestBase{
Object[][] result = null;
if (method.getName().equals("b_提现失败_账户错误")) {
result = new Object[][]{
//new Object[]{1, "fail_account@sandbox.com", "沙箱环境"}, //case1
new Object[]{1, "fail_account@sandbox.com", "沙箱环境"}, //case1
new Object[]{2, "peeulk6392@sandbox.com", "错误环境"}, //case2
};
}
......@@ -124,10 +124,10 @@ public class 总帐户账户正常提现 extends DuibaTestBase{
switch (caseNum){
case 1:
Assert.assertEquals(accountlog.get("memo"),"40004:Business Failed_PAYEE_NOT_EXIST:收款账号不存在","message校验失败");
Assert.assertEquals(accountlog.get("memo"),"收款账号不存在","message校验失败");
break;
case 2:
Assert.assertEquals(accountlog.get("memo"),"40004:Business Failed_PAYEE_USER_INFO_ERROR:支付宝账号和姓名不匹配,请确认姓名是否正确","message校验失败");
Assert.assertEquals(accountlog.get("memo"),"支付宝账号和姓名不匹配,请确认姓名是否正确","message校验失败");
break;
}
......@@ -147,7 +147,7 @@ public class 总帐户账户正常提现 extends DuibaTestBase{
Map<String, Object> selectResult = jdbc.findSimpleResult("select * from consumer_accounts.tb_consumer_account_0906 where account_id = '100145034_6_0' ");
int balance = Integer.parseInt(String.valueOf(selectResult.get("balance_amount")));
logger.info("账户原有余额为"+balance);
balance = balance - 20;
balance = balance - 2000;
//账户支付宝提现
Map cookies = authorization.dafuwengLogin(uid);
......
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