@RunWith(value=Parameterized.class)
public class TestTransationClient {
DictionUtil du;
TransactionClient tc;
String url = "https://接口地址";
private String row;
private String authentType;
private String merNo;
private String IdNo;
private String name;
private String mobileNo;
private String bankCardNo;
public TestTransationClient(String row,String authentType,String merNo,String IdNo,String name,String mobileNo,String bankCardNo) {
// TODO Auto-generated constructor stub
this.row=row;
this.authentType=authentType;
this.merNo=merNo;
this.IdNo=IdNo;
this.name=name;
this.mobileNo=mobileNo;
this.bankCardNo=bankCardNo;
}
@Parameters(name="名字")
public static Iterable<Object[]> data(){
return Arrays.asList(new Object[][]{
{"11","123456","","roy","13312345678",""},
{"12","123456","123456","李白","13800138000","62213466552222222"},
{"21","123456","","roy","",""},
{"21","123456","","","",""}
});
}
@Test方法会读取
return Arrays.asList(new Object[][]{
{"11","123456","","roy","13312345678",""},
{"12","123456","","","",""},
{"21","123456","","roy","",""},
{"21","123456","","","",""}
});
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) | Powered by Discuz! X3.2 |