Execution of algoQA generated scripts in TestCompleteExecution of algoQA generated Test Scripts in TestComplete and Viewing the Report

Execution of algoQA-generated Test Scripts in TestComplete and Viewing the Report

Import algoQA-generated test scripts into TestComplete, execute them, export results, and generate customized MS Word reports.

File Explorer showing AlgoAFScript_202404261347 folder with TestComplete project file highlighted

Prerequisites

Click here to install TestComplete. Click here to install Chrome browser or the appropriate browser for running web applications on a desktop (optional).

Downloading the Script

Perform the following:

  1. Navigate to the folder where the algoQA-generated scripts are uploaded. A sample script is attached.
  2. Download the script and extract the contents to your local folder.

Uploading the Script onto the TestComplete Tool

Perform the following:

Navigate to the folder where you have downloaded the algoQA-generated script.

Import this script into the TestComplete tool in the respective environment.

This algoQA-generated script will work as a TestComplete project.

Double-click the TestComplete project suite file to open the scripts in the TestComplete tool.

Double-click the project suite file with the extensions, such as .mds and .pjs to open the entire scripts in TestComplete.

After opening the scripts in TestComplete, you can review all the respective files related to TestComplete before execution.

Execution of the Scripts

Perform the following:

  1. You can execute scripts using the Feature Files option. Open the respective Feature File on the left pane that you want to execute in TestComplete. Details of the Feature File will be displayed in the right pane. Note: Images are not added automatically to the ImageRepository folder in TestComplete. If required, you can add them manually in algoQA Customize Script by navigating to Image Repo and using the Upload File option.
    TestComplete IDE with Project Explorer and Feature file script open in workspace

The YMLUtil file is also available in TestComplete > Script > Base.

TestComplete Project Explorer with YMLUtil file selected and its Python code shown in the editor

Right-click on the respective scenario outline to select the 'Run This Scenario' option.

TestComplete script editor context menu with Run This Scenario option highlighted

Upon completion of execution, you will be able to see the execution report.

The following screen appears. In this screen, click the 'Export Test results' icon to export all the information to the appropriate folder.

An optional last step has been added: “And screen is displayed with <content>.” A screenshot of the displayed screen is also attached to the report.

TestComplete test log with Export Test results icon highlighted and list of executed steps

'Choose Storage Type and Location' window appears.

In this window, select More Menu (three dots) options to choose the appropriate folder path and click OK.

Choose Storage Type and Location dialog with Folder field, Export results to HTML Files option and OK button

After exporting, navigate to the same folder where you have exported the files in the previous steps and locate the index file to view the results in the required browser.

File list showing index and summary Microsoft Edge HTML report files

Generating Customized MS Word Report using algoQA

Creating a separate folder to generate the MS Word report in the same folder

Perform the following:

Navigate to the TestComplete folder structure in the algoQA folder structure.

In this folder, create a folder named 'GenerateWordReport'.

Copy the path and paste it into a notepad for later use.

Viewing the report in the algoQA-generated folder structure and copying the report text file to the 'GenerateWordReport' folder

Perform the following:

  1. algoQA-generated scripts follow an organized folder structure as shown in the following sample screenshot. In this folder structure, select the TestComplete folder and navigate to the report text file as shown in the secondary screen.
    File explorer showing TestComplete folder structure with Log folder and pjs files

Secondary screen

File explorer row showing a text document report file, 6 KB, modified 4/25/2024
  1. Use the copied path in the notepad from Step 1 to open the 'GenerateWordReport' folder in a separate tab.
  2. Copy the report text file, as shown in the secondary screen, to the 'GenerateWordReport' folder.

Copying the supporting test execution files from the algoQA script-generated folder structure to 'GenerateWordReport' folder

Perform the following:

Navigate to the Log folder in the algoQA folder structure to access supporting files, such as screenshots and test execution files as shown in the following screenshot:

File explorer Log folder with TestComplete.mds.tcLogs file and timestamped subfolder highlighted

Use the copied path in the notepad from Step 1 to open the 'GenerateWordReport' folder in a separate tab.

Copy all the supporting files from the Log folder and paste them to the 'GenerateWordReport' folder which is opened in a separate tab.

'GenerateWordReport' folder contains the report in text file format and supporting test execution files from the Log folder.

Generating Customized MS Word Report using algoQA via Command Prompt

Perform the following:

In the algoQA script-generated folder structure, navigate to the algoReport folder.

Windows File Explorer address bar with algoReport folder selected in TestComplete script directory

Click the address bar at the top of the folder path to highlight the path.

Type 'cmd' in the address bar to launch Command Prompt.

File Explorer showing algoReport application inside AlgoAFScript TestComplete folder

Run the following command to generate the MS Word report in the 'GenerateWordReport' folder.

algoreport.exe "wordReport" "reportStoragepath"

This command instructs the algoreport.exe program to generate a report based on the provided Word document configuration and store it in the specified storage path.

Command prompt with algoReport.exe wordReport command highlighted

The MS Word report will be generated in the 'GenerateWordReport' folder as shown:

File Explorer GenerateWordReport folder with WordReport Word document highlighted

Double-click the Word report generated in the previous step to view the report details, including the Test Execution Summary (field labels and values), Test Scenario Summary (scenario name, status, execution date and time, and test duration), and Test Step Summary (step number, status, description, expected results, and actual results).

Word report Test Execution Summary, Test Scenario Summary and Test Step Summary tables

Generating HTML Report using algoQA

Perform the following:

Once the script is executed,the HTML report is automatically generated and stored in the Test Report folder.

Open the Test Report folder and navigate to the timestamp folder. The HTML report is available there.

For all default verify actions without parameters, Log Message is replaced with Log Checkpoint. This change applies to the following default verify actions:

  • Verify Disabled
  • Verify Enabled
  • Verify Text
  • Verify Image
  • Verify Not Displayed
  • Verify Checked
  • Verify Unchecked
  • Verify Displayed