AboutA SmartBear plugin for running TestComplete tests from Jenkins. The plugin provides a build step that lets you include TestComplete tests in your Jenkins builds. Also, the plugin maintains a list of test runs and lets you view test results directly from within Jenkins.
View TestComplete support plug-in on the plugin site for more information.
- Prepare a test computer (node) for automated testing. Make sure the node has everything it needs to run tests successfully:
- It has TestComplete or TestExecute installed.
- It has required browsers, test data files, and other helper files and applications.
- If you have a desktop tested application, make sure the node has that application installed before the TestComplete tests start working.
To copy files to the node, you can use the CopyToSlavePlugin, or copy the files manually.
- Add the TestComplete Test step to your Jenkins build.
- Customize the step’s properties:
- Select the test runner: TestComplete or TestExecute.
- Specify the TestComplete project suite file and select tests to be run.
- Important: Select the Run interactive user session check box, if needed (see below), and specify additional parameters for the run.
- Run the build as you would normally do this.
- After the build run is completed is over, you will see the TestComplete Test Results link on the build’s page.
Click the link to view test results. In the subsequent screen, click the link in the Test column to explore detailed test results.
The node must run an interactive user session. Otherwise, TestComplete (or TestExecute) will be unable to interact with the UI of the application under test.
To create an interactive user session:
- If you use TestComplete 10.6 or later, we recommend that you select the Run interactive user session check box in the TestComplete Test’s properties.
- If you unable to use this approach for some reason, then an alternative to run an interactive user session is to launch the node and control it via Java Web Start.
If the check box is not selected and you control the node via the Windows service, TestComplete will not run in an interactive user session and your tests will most likely fail.
You can find complete information on using the plugin in TestComplete documentation.
If you have any questions or need assistance with setting up the plugin and configuring the step’s properties, please contact the SmartBear Support Team.
- New feature: Support for TestComplete/TestExecute x64. If you have the 64-bit version of TestComplete (or TestExecute) installed on the node, the plugin will use it to run tests.
- New feature: You can specify a screen resolution for interactive sessions in which the test step will run your TestComplete tests.
- New feature: Now you can use the test step to run tests in the CrossBrowserTesting cloud from your Jenkins nodes.
- Fixed: If TestComplete logs contained national characters, these characters were processed incorrectly in JUnit-style reports.
- New feature: Support for TestComplete 12 and TestExecute 12.
- New feature: Now you can specify custom command-line arguments to pass to TestComplete or TestExecute.
- Fixed: The plugin returned 0 as the exit code instead of the actual exit code that TestComplete or TestExecute returned.
- New feature: More detailed JUnit-style reports.
- A couple of minor bugs have been fixed.
- New feature: Support for TestComplete 11 and TestExecute 11.
- Fixed: It was impossible to run jobs with TestComplete Test steps on different nodes in parallel.
- Fixed: The TestComplete Jenkins plugin worked incorrectly if a slave node was controlled via a service started from a JNLP application.
- New feature: Generating test reports in the MHT format.
- New feature: Support for generating and publishing JUnit-style reports.
- New feature: Now you can use Jenkins variables to configure the TestComplete Test step.
- Fixed: An exception occurred when the TestComplete Test step was added to a Conditional Build Step.