如何将selenium html-runner与docker结合使用?
我试图设置一个使用selenium-html-runner的docker镜像来运行从Selenium IDE生成的html文件来自动testing它们。 不过,我在Docker容器中运行Firefox浏览器的GUI非常困难。
我发现了下面的文章( https://medium.com/@yiquanzhou/run-selenium-ui-tests-in-docker-container-78be98e1b52d ),但是在运行命令时不工作:
Xvfb :99 -ac &
我打算设置所有必要的configuration,以便我可以运行以下命令:
java -Dwebdriver.gecko.driver="/path/to/geckodriver" -jar "path/to/selenium-html-runner.jar" -htmlSuite "*firefox" "https://www.target-website.com" "test_suites/" "results/"
有没有人有以前的经验,在容器内运行selenium-html-runner?
先谢谢你!
- 应用程序在Weblogic12泊坞窗图像工作,但在普通的服务器上抛出错误:java.lang.ClassNotFoundException:com.sun.el.ExpressionFactoryImpl at
- 在Windows 10 Home Edition上安装后无法启动Docker