簡體   English   中英

Selenium Grid Test將在同一節點上與一個瀏覽器的5個實例一起運行

[英]Selenium Grid Test to be run with 5 instances of one browser on the same node

我正在使用硒網格2。當我運行硒測試時,我希望此測試在一個瀏覽器上運行5次。即,假設我正在運行硒測試,我希望它在5個firefox瀏覽器實例上運行。

我嘗試使用以下cmd命令

java -jar E:\selenium-server-standalone-2.42.2.jar -role node -hub http:localhost:4444/grid/register -port 5570 -browser browserName=firefox, maxInstances=5 –maxSession 5 

但是使用此命令,我只能創建一個瀏覽器實例。

請建議

嘗試:

java -jar E:\selenium-server-standalone-2.42.2.jar -role node -hub http:localhost:4444/grid/register -port 5570 -browser "browserName=firefox, maxInstances=5" –maxSessions 5

我在-browser args周圍添加了語音標記(不確定是否需要)

它是-maxSessions而不是-maxSession

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM