我通过执行以下操作运行selenium:
java -jar /opt/selenium-server-standalone-2.53.0.jar -Dwebdriver.chrome.args="--use-gl=osmesa" -Dwebdriver.chrome.driver=/usr/bin/chromedriver -Dwebdriver.chrome.bin=/usr/bin/google-chrome -log /home/jenkins-user/log/selenium.log &然后我运行nightwatch selenium测试。由于某些原因,完整的测试套件需要20分钟才能运行。我能做些什么来加快速度吗?也许我可以将一些配置传递给java?
发布于 2016-09-12 06:56:46
如果20分钟太长,请尝试在一台机器上并行运行测试,或者使用selenium hub在多台机器上并行运行测试。请在http://nightwatchjs.org/guide#parallel-running此处查看有关workers的部分
https://stackoverflow.com/questions/39216179
复制相似问题