TestComplete Test Step

Applies to ReadyAPI 3.51, last modified on March 21, 2024

About TestComplete step

Use the TestComplete test step to run TestComplete tests as part of your ReadyAPI test cases.

Requirements

  • To use this test step, you need a ReadyAPI Test license. If you do not have it, you can request it on our web site or start a trial.

  • This test step can run only on computers working under a Windows operating system.

  • To run the test step, you need to have either TestComplete or TestExecute on your computer.

    Tip: You do not need TestComplete or TestExecute to create and configure the test step. That is, you can do this on Linux or Mac computers.
  • On Windows 8 and later, you must run ReadyAPI and TestComplete with elevated permissions if you want to use the TestComplete test step.

  • To run the test step on Windows 10, you need to disable the Enable support for testing Windows Store applications option in your TestComplete.

  • You need to copy your TestComplete project to the computer, where you are going to run your ReadyAPI test.

The test step fails to start if TestComplete or TestExecute is already running in the system. You need to close running instances of these products before the run.

Editing TestComplete test step

You can modify settings of the test step in its editor:

TestComplete test step editor

Click the image to enlarge it.

ReadyAPI runs TestComplete (or TestExecute) through the command line. The test step’s properties help you specify command-line arguments for the run. For more information on the TestComplete command line, see the TestComplete documentation.

Test runner

Specifies the product – TestComplete or TestExecute – and its version to be used for the test run. ReadyAPI fills in this drop-down list automatically according to the information found on your computer.

Tip: If you configure the test step on a Linux or macOS computer, you can specify the appropriate test runner by using the Test runner property in the property panel (see below).

Project suite path

Required. The fully-qualified path to the TestComplete project suite’s file.

Load Project Suite

Click to analyze the specified project suite and fill in the Project, Unit, Routine and other drop-down lists with the corresponding values.

Run mode

Specifies the type of the test to run. You can choose one of the following values:

Run mode Description
Entire suite Runs the entire project suite (all projects in the project suite).
Project test Runs test items of the specified TestComplete project. Similar to the /project command-line argument.
  • Project – The name of your TestComplete project.

If you have TestComplete or TestExecute installed, click Load Project Suite to update the list of the suite’s projects, and then select the desired test project from the drop-down list. Otherwise, you have to enter the project name manually as it is displayed in the Project Explorer panel of TestComplete.
Keyword test Runs a keyword test. Similar to the combination of the /project and /test command-line arguments.
  • Project – The name of your TestComplete project.

  • Keyword test – The name of the keyword test to be run.

If you have TestComplete or TestExecute installed, click Load Project Suite to update the lists of available projects and keyword tests. In this case, you can select the needed items from the drop-down lists. Otherwise, you have to enter the project and keyword test names manually as they are displayed in the TestComplete Project Explorer panel.
Note: The specified test should not use parameters.
Script test Runs a script routine. Similar to the combination of the /project/unit and /routine command-line arguments.
  • Project – The name of your TestComplete project.

  • Unit – The name of the script unit that contains the script routine to be run.

  • Routine – The script routine to be run.

If you have TestComplete or TestExecute installed, click Load Project Suite to update the lists of the available projects, units and routines. In this case, you can select the desired items from the drop-down lists. Otherwise, you have to enter their names manually as they are displayed in the Project Explorer panel of TestComplete.
Note: The script routine that you specify should not use parameters.
Other test Runs an arbitrary test in the specified TestComplete project. Similar to the combination of the /project and /test command-line arguments.
  • Project – The name of your TestComplete project.

  • Test – The name of the test to be run.

If you have TestComplete or TestExecute installed, click Load Project Suite to update the list of suite projects, and then select the desired test project from the drop-down list. Otherwise, you have to enter this name manually as it is displayed in the Project Explorer panel of TestComplete.
Note: In this mode, the test name should include the name of the collection, to which that test belongs. For example, KeywordTests|MyTest1, Script|Unit1|MyRoutine1, LLCollection1|LLP1, and so on.
The specified test should not use parameters.

Export test log

Optional. Similar to the /ExportLog command-line argument. Specifies the fully-qualified name of an .mht or .tcLogX file, to which TestComplete (or TestExecute) will export test results after the test run is over.

The specified file should not exist. Otherwise, TestComplete (or TestExecute) will fail to run the test.

Silent mode

Similar to the /SilentMode command-line argument. Specifies whether TestComplete (or TestExecute) will run in Silent mode. In Silent mode, TestComplete (TestExecute) does not display any dialogs and user messages on the screen. TestComplete (TestExecute) handles these dialogs and messages as if you clicked a default button in them. It saves information about these dialogs and messages to the log file specified by the Error Log property.

Silent mode log

Optional. Used with the Silent Log property only.

Specifies the fully-qualified path to the file, to which TestComplete or TestExecute will save information about dialogs and messages that should be (but are not) displayed when TestComplete (TestExecute) is working in Silent mode.

By default, TestComplete (TestExecute) saves the Silent.log file to the following folder:

  • <Users folder><UserName><TestComplete-version> (on Windows Vista and later)

– or –

  • <Documents and Settings><UserName>Data<TestComplete_version> (on Windows XP and Windows Server 2003).

Timeout for the run (sec)

Specifies the maximum test execution time in seconds. Similar to the /timeout command-line argument. If the test runs longer, the test run is aborted and an error is logged.

Show test results

Optional. Used for TestExecute only. Specifies whether ReadyAPI will display the test log after the test run is over. Similar to the TestExecute /DoNotShowLog command-line argument.

Other command-line arguments

Optional. Use this property to specify arbitrary arguments you would like to add to the TestComplete (or TestExecute) command line.

Warning as error

Specifies whether ReadyAPI should treat warnings in the TestComplete test log as test step errors.

Property list

Besides the test step editor, you can adjust test step behavior by using its properties in the Run TestComplete Test Properties and Custom TestComplete Test Step Properties panels in the Navigator.

Name Description
Name

The test step’s name.

Description

Text describing the test step.

Execution result

The TestComplete exit code indicating the test run result:

  • 0 – Success (no errors or warnings in the log).

  • 1 – Warnings in the test log.

  • 2 – Errors in the test log.

  • 3 – The test failed to start because of an error. See the TestComplete documentation for possible causes.

There are also other exit codes. For more information, see the TestComplete documentation.

Result description

The text describing the test result. It corresponds to the Execution result value.

Test runner

Specifies the product – TestComplete or TestExecute – and its version. Usually this property is set automatically, when you specify a test runner by using the Test runner drop-down list. If you do not have TestComplete or TestExecute installed on your current computer (for example, when you use Linux or Mac) you have to specify a test runner manually. To do this, enter the name of the runner and its version (for example, TestComplete 11) in the Test runner property. During the test run, ReadyAPI finds the specified test runner and uses it to run the test step.

You can modify custom properties, load their values from a file, or save them to a file. To do this, use the toolbar items.

Values on the Custom TestComplete Test Step Properties tab are available to other test steps in your project. For instance, you can verify these property values with the Assertion test step, or check them and change the execution flow with the Conditional GoTo test step. To learn more, see About Properties.

Test step results

Test Step Result Condition
PASS TestComplete tests were executed successfully, and the Execution result property is 0 or 1.
The latter works only if the Warning as error property is disabled.
FAIL TestComplete tests failed, and the Execution result property differs from 0 and 1.
If the Warning as error property is enabled, the Execution result of 1 is also considered to be a failure.

For the result value’s description, see the Result description property.

More information

Find more information on the TestComplete and TestExecute command line and exit codes in the TestComplete and TestExecute documentation.

See Also

Test Steps

Highlight search results