“SeleniumHQ htmlSuite Run”的配置在 Jenkins 中运行 Selenium HTML TestSuite
我想通过 Jenkins(持续集成)运行我的 Selenium HTML 测试套件。下面显示了如何为当前项目配置构建:
这里是例如,提交新测试后的控制台输出:
ERROR: The suiteFile is not a file or an url ! Check your build configuration.
Build step 'SeleniumHQ htmlSuite Run' changed build result to FAILURE
Build step 'SeleniumHQ htmlSuite Run' marked build as failure
Publishing Selenium report...
Finished: FAILURE
事实上,即使在提交无扩展名测试文件和 .html 文件后,我也会遇到这些日志问题。
I want to run my Selenium HTML Test Suite through Jenkins (a continuous integration). The following shows, how the build is configured for the current project:
And here's the console output after commiting a new test for example:
ERROR: The suiteFile is not a file or an url ! Check your build configuration.
Build step 'SeleniumHQ htmlSuite Run' changed build result to FAILURE
Build step 'SeleniumHQ htmlSuite Run' marked build as failure
Publishing Selenium report...
Finished: FAILURE
In fact, I get these log issues even after committing both extensionless test files AND .html files.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
SeleniumHQ Jenkins 插件每个构建步骤仅支持一个套件文件。尝试 Selunit 批量运行 Selenese 套件并跨多个浏览器。此教程展示了如何设置测试在 Jenkins/Hudson 中执行。
SeleniumHQ Jenkins plugin supports only ONE suite file per build step. Try out Selunit to run Selenese suites in batch and across multiple browsers. This tutorial shows hot to setup the test execution in Jenkins/Hudson.
您的 suiteFile 使用通配符编写为:tests/selenium/*.html。我认为这是错误的。
您需要提供套件的确切/绝对路径,不带通配符,如下所示:
tests/selenium/suite.html
Your suiteFile is written with wildcard as: tests/selenium/*.html. I think it is wrong.
You need to provide the exact/absolute path to your suite without the wildcard as below:
tests/selenium/suite.html