Configuration for "SeleniumHQ htmlSuite Run" in Jenkins to run Selenium HTML TestSuite

5.2k Views Asked by At

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.

2

There are 2 best solutions below

0
On

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.

1
On

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