在Selenium中执行多个测试用例作为测试套件(初始化一次+批量运行)

时间:2016-01-04 10:06:10

标签: selenium-webdriver testng appium

如何在(selenium webdriver)中将多个测试用例作为测试套件执行,只需初始化一次&然后将其导出为jar文件以进行批处理运行?

1 个答案:

答案 0 :(得分:0)

您需要创建一个testng.xml

参考: - http://seleniumeasy.com/testng-tutorials/testngxml-example-to-execute-with-class-names

然后将testng.xml文件,所有jar文件和类文件位置传递给批处理文件

参考: - How to execute Testng project without main method from command line

Bash file is running fine in windows for testng but it is not working in linux/mac

希望它会对你有所帮助:)。