“SeleniumHQ htmlSuite Run”的配置在 Jenkins 中运行 Selenium HTML TestSuite

发布于 2024-12-28 21:17:48 字数 530 浏览 2 评论 0原文

我想通过 Jenkins(持续集成)运行我的 Selenium HTML 测试套件。下面显示了如何为当前项目配置构建:

这是我当前针对相关项目的 Jenkins 配置

这里是例如,提交新测试后的控制台输出

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:

This is my current Jenkins configuration for the concerned 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

对你而言 2025-01-04 21:17:48

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.

惟欲睡 2025-01-04 21:17:48

您的 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文