【问题标题】:Can we distribute the TestNG tests in Selenium Grid when running the tests in parallel but in the same browser当并行运行测试但在同一个浏览器中时,我们可以在 Selenium Grid 中分发 TestNG 测试吗
【发布时间】:2017-08-21 05:27:35
【问题描述】:

问题陈述: 我有 100 个测试用例,我愿意使用 Selenium Grid 2 运行,但只能在 Chrome 中使用两个节点。 是否可以在 Grid 中为每个系统划分 50 个测试用例。 因为当我并行运行 100 个测试用例时,硒会运行系统中的所有测试用例,并且测试失败(有时)。虽然我使用 ThreadLocal 来创建 WebDriver Instance.Like 你可以在下面看到相同的测试在两个节点上运行,但我希望测试不会重复并在同一个浏览器上并行运行。

    10:40:25,770  INFO - Executing:- verifyFooterItemsIsDisplayed
    10:40:25,770  INFO - Executing:- verifyFooterItemsIsDisplayed

【问题讨论】:

    标签: automated-tests testng selenium-grid2


    【解决方案1】:

    能够使用 parallel="classes" 并将类添加到 testNG.xml 文件中。

    【讨论】:

      猜你喜欢
      • 2021-04-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-22
      相关资源
      最近更新 更多