当我们并行运行夜间测试并且设置有问题时,我们遇到了问题,例如硒网格不可用。测试执行得非常快,我们没有收到错误消息。
Started child process for: folder1/test1
Started child process for: folder1/test2
Started child process for: folder1/test3
Started child process for: folder1/test4
>> folder1/test1 finished.
>> folder1/test2 finished.
>> folder1/test3 finished.
>> folder1/test4 finished.
但是,当我连续运行测试时,我收到了一个很好的错误消息,如
Error retrieving a new session from the selenium server
Connection refused! Is selenium server started?
{ status: 13,
value: { message: 'Error forwarding the new session Empty pool of VM for setup Capabilities [{acceptSslCerts=true, name=Test1, browserName=chrome, javascriptEnabled=true, uuid=ab54872b-10ee-43a1-bf65-7676262fa647, platform=ANY}]',
class: 'org.openqa.grid.common.exception.GridException' } }
为什么在并行模式下运行时没有收到错误消息?有什么我可以改变,所以我在并行模式下得到了良好的错误信息吗?