Trigger Automation Execution from within Test Modeller

Learn how to configure Quality Modeller to automatically trigger the execution of automation code generated within the platform using a Git Connector. This setup enables instant feedback on pass/fail results and error diagnostics directly within Quality Modeller.

Note:
This feature is not supported on the Community Server. To utilize this capability, please use your own server.

Step 1: Configure Your Framework for Command Line Execution

To integrate with Quality Modeller, you first need to ensure that your test framework can be executed from the command line.

Identify the Command

Determine the command required to run your framework from the command line. For example, to run a Java framework using Maven, the command might look like this:

mvn test -Dtest=TestFileName

This command initiates the test cases, which will then execute in a new Chrome browser window, running all specified test scenarios

Adapt the Command for Quality Modeller

Break down the command into components that Quality Modeller can execute whenever automation needs to be run.

Step 2: Configure Automation Execution in Quality Modeller

Now that your framework is ready for command line execution, follow these steps to configure automation in Quality Modeller:

Set Up the Java Tutorial Framework

Ensure that the language and source control are correctly configured in Quality Modeller.

Enable Execution on Publish

Enable the option to trigger execution automatically whenever code is pushed to the framework.

Specify Framework Location

Provide the root directory of your framework.

Define the Maven Command

Enter the Maven command that specifies the dependencies and initiates the test execution.

Create Dynamic Test Names

Configure a dynamic naming convention for test files, e.g., [FileName], to ensure that the correct test cases are executed.

Step 3: Test the Automation Workflow

Generate and Resolve Data Dependencies

Ensure that any required data dependencies are generated and resolved before execution.

Generate Automation Code

Automation code will be generated for the four identified paths.

Push Code to Git

The generated code is automatically pushed to your Git environment, leveraging the Git integration.

Execute Tests

Perform the test execution. You can choose to run the tests in headless mode or with the browser window open.

Step 4: Review Test Results and Artifacts

Refresh the Test Suite

After execution, refresh the test suite in Quality Modeller to synchronize the run results.

Access Test Results

View the pass/fail results directly in Quality Modeller. The results will include links to the locations in your Git repository where the code has been pushed.

Review Test Steps and Screenshots

Access detailed test steps and any screenshots captured during execution to aid in validation and troubleshooting.


By following these steps, you can seamlessly integrate Quality Modeller with your CI/CD pipeline using Git, ensuring efficient test automation and immediate feedback on your test runs.