Selenium Grid2 - 是否可以运行10个Chrome实例? [英] Selenium Grid2 - Is it possible to run 10 Chrome instances?
问题描述
如何更改它以便同时运行10个chrome实例?
我用 -maxSession 10 成功更改了节点的maxsession参数。但是,当我运行10个测试时,集线器显示5个队列正在等待执行。
我不知道这个问题是否重要,但是中心本身显示了5个maxSession params。但是这个我无法改变。
关于如何做到这一点的任何想法?
我明白了:
使用参数MaxSession运行节点,并让浏览器配置具有MaxInstances参数,即:
java -jar $ JARFILE -Dwebdriver.chrome.driver = $ CHROMEDRIVER -role webdriver -hub http:// $ HUB_IP:4444 / grid / register -maxSession 10 -browser browserName = chrome,maxInstances = 10
其实很简单...
Currently Selenium Grid2 running with the default config shows that it can run 5 firefox browsers, 5 chrome browsers and 1 IE. With a max of 5 instances at the same time.
How can I change this so that it runs 10 chrome instances at the same time?
I have succesfully changed the maxsession parameter of the node with -maxSession 10. However when I run 10 tests, the hub shows that 5 are in queue waiting to be executed.
I dont know if this matters or not, but the hub itself shows a maxSession params of 5. Yet this one I couldn't change.
Any ideas on how to do this?
I figured it out:
run the node with the argument of MaxSession, and let the browser Configuration have the MaxInstances parameter, ie:
java -jar $JARFILE -Dwebdriver.chrome.driver=$CHROMEDRIVER -role webdriver -hub http://$HUB_IP:4444/grid/register -maxSession 10 -browser browserName=chrome,maxInstances=10"
pretty straightforward actually...
这篇关于Selenium Grid2 - 是否可以运行10个Chrome实例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!