Executing Desktop Automation Scripts using TestComplete
Import and execute algoQA-generated desktop automation test scripts in TestComplete using Feature Files or the Command Prompt, and review command-line arguments for test execution.
Execute algoQA-generated desktop automation test scripts using the TestComplete framework. Download scripts from the algoQA platform, import them into TestComplete, and run tests through the UI or the Command Prompt.
Execution of the scripts
When using TestComplete with algoQA, the generated test scripts will be stored in the same Test Scripts folder. You can download this script to your local machine to import this script into the TestComplete tool in the respective environment. This algoQA-generated script will work as a TestComplete project.
In the Test Scripts folder, double-click the project suite file (.mds or .pjs) to open the entire script suite in TestComplete.
After opening the scripts in TestComplete, you can review all the respective files related to the Python TestComplete framework before execution.
Execution Options
You can execute scripts in two ways:
-
Using Feature Files: Open the respective Feature File which you want to execute in TestComplete. You can either execute a single scenario or an individual step by right-clicking on the respective scenario outline or an individual step. You can also execute the whole Feature File by right-clicking on the respective file without opening it.
-
Using Command Prompt: Alternatively, you can execute scripts using the command prompt, providing command-line instructions to run your tests. This command will launch the TestComplete framework and start executing defined tags by opening the project with the help of the path mentioned as follows.
Command line syntax example:
The following command runs TestComplete, loads the MySuite.pjs project suite, commands TestComplete to execute the test items of the TestComplete project and updates the test results.
TestComplete.exe "D:\script_folder
ew script\TestComplete.pjs" \p:TestComplete \tags:"@tagname" \r
The following table represents command-line arguments:
| Key | Description |
| ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `D:\script_folder` | Specifies the path where the script is located. |
| `TestComplete.pjs` | Specifies the file name that launches the TestComplete framework and loads the specified project (`.mds` file) or project suite (`.pjs`). |
| `\p:project_name` | Specifies the project name. |
| `\tags:"@tag_name"` | Specifies the test case tag, which corresponds to the tag assigned to the test case in the Feature File. TestComplete executes all scenarios matching this tag. |
| `\r` | Commands TestComplete to execute tests provided by the project suite. |