我正在尝试使用相同的浏览器/平台组合,准确地说是Chrome/WIN7来并行运行测试。到目前为止,我们已经设法通过jenkins在单独的执行器(节点)上运行不同的功能,从而减少了测试执行时间。我试图实现的是能够并行运行不同的场景,以进一步减少测试执行时间。在所有节点都有相同的浏览器/平台组合的情况下,使用selenium网格可以吗?
发布于 2016-04-19 17:46:51
是的,可以使用TestNG
如下所示使用parallel="methods":
<suite name="Test-method Suite" parallel="methods" thread-count="2" >请参阅:-
http://howtodoinjava.com/testng/testng-executing-parallel-tests/
您可以根据需要使用更多的执行类型:-
<suite name="My suite" parallel="methods" thread-count="5">
<suite name="My suite" parallel="tests" thread-count="5">
<suite name="My suite" parallel="classes" thread-count="5">
<suite name="My suite" parallel="instances" thread-count="5">请参阅:-
http://testng.org/doc/documentation-main.html#parallel-tests
希望它能帮助您:)
https://stackoverflow.com/questions/36714530
复制相似问题