我有两个 zalenium 容器,每个容器都有一个 firefox 浏览器会话。当我只运行一项测试时,它看起来很好并且一直工作到测试。但是,如果我在免费容器上开始并行测试,第一个退出执行并抛出错误。我不知道如何处理这个并行执行——在两个 zalenium 容器上运行两个并行测试。
错误:
第一个容器:
[36msanity-test-www.ac66com |[0m 7-02 20:11:05 RemoteWebDriverPool:412 - Setting GeckoDriver webDriver property.
[36msanity-test-www.ac66com |[0m INFO] 07-02 20:11:05 RemoteWebDriverPool:436 - WebDriverPool set property worked!
[36msanity-test-www.ac66com |[0m 7-02 20:11:05 RemoteWebDriverPool:226 - addResultsToPool() taskList.length: 1 drivers.add...
[36msanity-test-www.ac66com |[0m 2021 8:11:05 PM org.openqa.selenium.remote.DesiredCapabilities firefox
[36msanity-test-www.ac66com |[0m INFO: Using `new FirefoxOptions()` is preferred to `DesiredCapabilities.firefox()`
[36msanity-test-www.ac66com exited with code 137
[0mGoing to remove 2b41457570a7_sanity-test-www.ac66com
[Pipeline] }
[Pipeline] // dir
第二个容器:
container zalenium_1 already updated
container zalenium_2 already updated
Recreating sanity-test-www.ac66com
Attaching to sanity-test-www.ac67com
[36msanity-test-www.ac67com |[0m 7-02 20:11:10 Main:291 - Setting WEBDRIVERMANAGER system property to: false
[36msanity-test-www.ac67com |[0m 7-02 20:11:10 HelperFile:35 - Attemping to write file src/main/resources/automation/config/nam_conf.xml...
[36msanity-test-www.ac67com |[0m 7-02 20:11:10 HelperFile:40 - Sucessfully wrote file src/main/resources/automation/config/nam_conf.xml!
早些时候我认为容器名称应该是唯一的,然后更改它(第一个:sanity-test-www.ac66com,第二个: sanity -test-www.ac67com),但是我无法解决这个问题。这可能是 zalenium docker 创建的问题。