方法一:
方法二:
方法三:
(1)如果测试的数据较多的情况下,很显然这种方式不适合,那么可以通过@DataProvider生成测试数据,通过@Test(dataProvider = "")使用测试数据
@DataProvider
@Test(dataProvider = "")