This build step is intended to support execution of automated tests from Micro Focus ALM Octane.
The builder searches for the "testsToRun" parameter which is sent from ALM Octane as part of the execution framework.
Once it is found, its value is converted to the format of the selected testing framework, and injected to the "testsToRunConverted" environment parameter.
Later, the new parameter can be used in the appropriate execution builder.
- To use in other parameter textboxes, use the following syntax: ${testsToRunConverted}
- To use in the scripts (shell, batch command), use the following syntax: (Windows) %testsToRunConverted%, and (Linux) $testsToRunConverted. For example
- (Gradle, Windows) gradle test %testsToRunConverted%
- (Protractor, Windows) protractor conf.js --grep="%testsToRunConverted%"
- (Surefire, Windows) mvn clean -Dtest=%testsToRunConverted% test
- (Failsafe, Linux) mvn clean -Dit.test=$testsToRunConverted verify
- To use in the pipeline script (workflow job), use the following syntax : "${params.testsToRunConverted}". For example
- (Protractor) bat(/protractor conf.js --grep="${params.testsToRunConverted}"/)
- (Surefire) bat 'mvn clean -Dtest=${params.testsToRunConverted} test'
* For UFT: In order to build a UFT MTBX file, this builder needs to know the test check-out directory. By default this is the job workspace directory.
If tests are checked out in another directory, define in the job a String parameter "testsToRunCheckoutDirectory" with the correct directory.
** For JUnit/TestNG: supported for JUnit 4.7+, Surefire Plugin 2.19+, Failsafe Plugin 2.12.1+