简体   繁体   English

无法通过使用Selenium grid2调用浏览器特定的节点来运行Testng测试

[英]Unable to run Testng tests by Invoking browser specific node using selenium grid2

Am facing a problem when running my test cases which are written in java (testng) using selenium grid2. 运行使用Selenium grid2用Java(testng)编写的测试用例时遇到问题。 This are the steps which i followed 这是我遵循的步骤

  1. invoked the hub using "java -jar selenium-server-standalone.2.20.0.jar -role hub" 使用“ java -jar selenium-server-standalone.2.20.0.jar -role hub”调用了集线器
  2. Invoked a node with browser specific (java -jar selenium-server-standalone.2.20.0.jar -role node -hub http://localhost:444/gird/register " -browser "browserName=firefox,version=11.0,maxInstance=5") 调用了特定于浏览器的节点(java -jar selenium-server-standalone.2.20.0.jar -role节点-hub http:// localhost:444 / gird / register “ -browser” browserName = firefox,version = 11.0,maxInstance = 5“)
  3. trying to run tests from command prompt. 尝试从命令提示符下运行测试。

am getting error when i am following this steps. 当我按照此步骤操作时出现错误。

if i am invoking the node without browser specific am not getting any error. 如果我在没有浏览器特定的情况下调用节点,则不会收到任何错误。

Can some help me in resolving the issue. 可以帮助我解决问题。

Thanks Raghuram 谢谢Raghuram

集线器端口不正确(从444代替4444,而不是444),并且-browser之前带有奇数"符号。请将以下代码复制并粘贴到cmd:

java -jar selenium-server-standalone.2.20.0.jar -role node -hub http://localhost:4444/gird/register -browser "browserName=firefox,version=11.0,maxInstance=5"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Selenium Grid2,如何关闭节点? - Selenium Grid2, how to shutdown a node? Maven + TestNG + Selenium Grid2的“没有主要清单属性”错误 - 'No main manifest attribute' error with Maven + TestNG + Selenium Grid2 Java:Selenium Grid:如何在特定节点上运行特定测试 - Java:Selenium Grid: How to Run specific tests on particular node 使用Selenium WebDriver,Selenium Grid和testNG运行并行测试 - Running Parallel Tests using Selenium WebDriver, Selenium Grid and testNG 将FireFoxProfile与RemoteWebDriver一起使用,Selenium Grid2会导致功能异常 - Using FireFoxProfile with RemoteWebDriver, Selenium Grid2, causes Capabilities Exception 通过 TestNG 使用 Selenium 执行自动化测试时,“未找到测试。没有运行任何测试” - "TestNG No tests found. Nothing was run" while executing automated tests using Selenium through TestNG “没有发现任何测试。 使用 TestNG 的 selenium 自动化中没有任何运行”错误 - “No tests found. Nothing was run” error in selenium automation using TestNG 使用webdriver-factory运行Selenium Webdriver TestNG测试 - Run Selenium Webdriver TestNG tests using webdriver-factory 如何使用TestNG框架和Jenkins运行Selenium测试 - How to run Selenium tests using TestNG framework and Jenkins Selenium TestNG:如何使用TestNG从编译的jar运行selenium测试? - Selenium TestNG: How can I run selenium tests from a compiled jar using TestNG?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM