Feed4TestNG 使得可以编写参数化的 TestNG 测试用例。
示例代码:
public class LoginTest extends FeedTest {
@Test(dataProvider = "feeder")
@Source("userlogin.csv")
public void testLogin(String name, String password) {
System.out.println("name:" + name + " password:" + password);
}
}
该版本改进内容:
This version makes it possible to feed parameterized unit tests with database query results. Test data generation has been greatly improved by automatically choosing values according to border value testing concepts and combining them for partition testing. You can even select and combine different characteristics of test data generation: gentle/mean border and default values, and stocastic/equivalence/coverage combinations
下载地址请点这里
