我想配置哪些selenium测试运行,哪些不是通过XML或通过属性文件运行。Selenium XML/Propeerties文件测试套件?
例
testCase1=false
testCase2=true
testCase3=true
现在,如果我开始Selenium测试,它必须只运行2和3
任何可能性?
另外,我是否需要多个端口同时运行测试?
我想配置哪些selenium测试运行,哪些不是通过XML或通过属性文件运行。Selenium XML/Propeerties文件测试套件?
例
testCase1=false
testCase2=true
testCase3=true
现在,如果我开始Selenium测试,它必须只运行2和3
任何可能性?
另外,我是否需要多个端口同时运行测试?
如果您使用TestNG
,则可以使用@Test(enabled = false)
即@Test注释的enabled
参数。在这里看到:http://www.tutorialspoint.com/testng/testng_ignore_test.htm
I wanted to configure which selenium tests to run and which not to by either XML or through properties file.
这取决于你用它来运行测试其框架。
对于JUnit,您可以使用@Ignore
跳过测试方法。
对于TestNG的,你可以让测试方法enabled=false
作为German Petrov回答
有大量的可用信息通过互联网。去谷歌上查询。
Also do i need multiple ports to run tests simultaneously?
不,您不需要多个端口,您可以设置并行测试执行,并且TestNG提供更好的支持。
“@Test(enabled = false)”在我们构建项目后会进入类文件。但我想配置属性文件或xml。 – user3168792 2014-09-11 09:30:11
你想在类中执行多个类或测试方法吗? – 2014-09-11 09:38:58