Commit 8bfb0f55 authored by 吕雯燕's avatar 吕雯燕

lv

parent 4892d48f
......@@ -475,4 +475,5 @@ public class 兑吧新实物_兑换流程测试_ExchangeTest extends CheckTemple
}
......@@ -42,6 +42,22 @@ public class 自有新实物_兑换流程测试_ExchangeTest extends CheckTemple
return result;
}
@DataProvider(name = "testdp", parallel = true)
public static Object[][]testdp(){
return new Object[][]{
{1},
{2},
{3},
{4},
{162},
{6},
{8},
{10},
{157},
{158}
};
}
@BeforeMethod
public void beforeMethod(){
......@@ -378,4 +394,34 @@ public class 自有新实物_兑换流程测试_ExchangeTest extends CheckTemple
logger.info("校验自有新实物---会员兑换制成功");
}
//测试使用
//@Test(enabled=true, dataProvider="testdp", threadPoolSize=1, invocationCount=100)
public void test(int uid) throws Exception {
// System.out.println("Current Thread Id: " + Thread.currentThread().getId() + ". Dataprovider number: "+ dpNumber);
// Thread.sleep(5000);
String appItemId = "159040";
String itemId = "null";
String message = "";
String skuId="144";
String actualCredits="8";
String credits="100";
Thread.sleep(4000);
Response response = gawService.objectExchange(uid,appItemId,itemId,skuId,credits,actualCredits);
response.prettyPrint();
//(enabled=true, dataProvider="testdp", threadPoolSize=1, invocationCount=2)
String orderId = response.jsonPath().getString("data.orderId");
response = tawService.orderStatus(orderId,uid);
response.prettyPrint();
}
}
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