Ranorex Test Execution0.1.0Minimum Jenkins requirement: 1.625.3ID: ranorex-integration
This plugin provides an easy way to run a Ranorex test suite as a build step in your Jenkins job. You can run a test suite as is without any need for configuration, or you can make several different advanced settings.
- Open Jenkins and click "Manage Jenkins".
- Click "Manage Plugins".
- Switch to the "Available" tab and search for “Ranorex” in the filter box.
- Check the box next to the plugin and click “Install without restart”.
Using the plugin
- Add a new build step in your Jenkins job configuration (please refer to the Jenkins documentation for details on how to do so).
- Select “Run a Ranorex test suite” from the drop-down menu
- In the field next to “Ranorex test suite file”, enter the path to the test suite file (*.rxtst) located in the output folder of your solution.
- Finally, save your changes to the Jenkins job configuration.
The test suite is now ready and can be run as a build step in your Jenkins job. You can also make additional advanced settings.
Once you have provided the path to your Ranorex test suite file, click on “Advanced…” below the path field. The following settings will appear. Configure them according to your requirements and save your Jenkins job configuration to activate them.
Ranorex run configuration
Runs the test suite using one of the run configurations available in the test suite. Enter the exact name of the run configuration you want to use. By default, the run configuration currently selected in the test suite is used.
If you want to create or edit run configurations, please use Ranorex Studio or the Ranorex Test Suite Runner.
Ranorex report directory
Allows you to specify the directory that your report will be saved to. If you don’t specify a path, the directory where your test executable is located will be used.
Ranorex report file name
Allows you to specify the file name of the report with the standard placeholders available in the test suite settings. By default, the file name specified in the test suite settings is used (for example: %S_%Y%M%D_%T.rxlog).
Ranorex report file extension
Allows you to specify the Ranorex report file extension. Available values ("rxlog", "html").
If enabled, Ranorex will create both a JUnit-compatible report and a Ranorex report.
Compressed copy of Ranorex report
Compresses the report and the associated files into a single archive with the .rxzlog extension. The following additional input fields will appear when this option is enabled:
Compressed report directory
Allows you to specify the directory that your compressed report will be saved to. If you don’t specify a path, the directory where your test executable is located will be used.
Compressed report file
Allows you to specify the file name of the compressed report with the standard placeholders available in the test suite Settings. By default, the file name specified in the test suite settings is used (for example: %S_%Y%M%D_%T.rxlog).
Allows you to create or override values for global parameters set in the test suite.
Enter parameters according to the following pattern: "ParameterName=Value"
Separate parameters with semicolons or newlines.
Command line arguments
Allows you to add Ranorex command line arguments. Some of the most important ones include:
config | cfg:<config parameter name>=<value>
Set values for configuration parameters.
reportlevel | rl: Debug|Info|Warn|Error|Success|Failure|<any integer>
Sets the minimum report level that log messages need to have in order to be included in the log file. Specify 'None' to completely disable reporting. These levels correspond to the following integer values: Debug=10,Info=20,Warn=30,Error=40,Success=110,Failure=120
testcase | tc:<name or guid of test case>
Runs this test case only.
testsuite | ts:<path to test suite file>
Runs the test cases defined by the test suite (rxtst) file. By default the rxtst file with the same name as the <TestSuiteExe> is used or the first rxtst file in the same folder as <TestSuiteExe>.
module | mo:<module name or guid>
Runs the module with the specified name or guid. Assemblies loaded by <TestSuiteExe> and assemblies referenced in the rxtst file are searched.
testcaseparam | tcpa:<name or guid of test case>:<parameter name>=<value>
Creates or overrides values for test case parameters specified in the test suite.
runlabel | rul:<custom value>
Sets a custom run label for the test run.
testcasedatarange | tcdr:<name or guid of test case>=<data range>
Sets the data range for a test case.
Please find additional information in the following blog Integrate Ranorex test automation into Jenkins continuous integration process