Run automated tests
This topic describes how to set up automated tests in ALM Octane.
There are several ways of discovering and running automated tests:
- Via pipelines: Run automated tests as part of a pipeline if you run a regular set of tests and do not need to select specific tests.
- Via UFT One integration: Include UFT One tests in a test suite.
- On-demand: Use the on-demand testing framework if you want to choose specific tests to run, and you are planning your tests in advance.
The tests are run by automation tools, and the results are sent to ALM Octane.
When you integrate ALM Octane with your testing framework, you can select automated tests from your testing framework in ALM Octane, and run them in the context of a test suite.
If you set up a CI server integration, ALM Octane receives the results of automated tests that run in a pipeline on your CI server. ALM Octane then creates or updates the relevant automated tests and test runs based on those results. For details, see Set up CI/CD integration and Create automated tests.
You can trigger pipeline runs from ALM Octane, but not individual test runs.
Note: If you do not run your automated tests on a supported CI server, you can still send automated test run results to ALM Octane. For details, see Send automated test run results to ALM Octane.
To run automated tests as part of a pipeline:
Prerequisite: Set up a pipeline and run it, so ALM Octane discovers your automated tests.
This includes setting up integration with your CI server, creating a pipeline in ALM Octane, and running it. For details, see Add automated tests from runs in a pipeline .
Running automated tests again: To run your automated tests again, and have the updated results sent to ALM Octane, you must run the whole pipeline. For details, see Run pipelines.
This runs all automated tests included in steps of the pipeline.
View run results. Open individual automated tests in the Backlog or Quality module to view their results, or open the Pipelines module to view details about all the tests in the pipeline.
Run UFT One tests as part of a test suite
If you set up an integration with UFT One, ALM Octane continuously reflects any UFT One tests and data tables that it discovers in your repository. This lets you plan and trigger UFT One test runs from ALM Octane by including the tests in test suites.
You can integrate ALM Octane with your testing framework, and enable ALM Octane to run tests on demand, via your CI server. After setting up the integration, you can select automated tests from your testing framework in ALM Octane, and run them in the context of a test suite.
Note: To run automated tests on-demand, you have to create a pipeline and run it once for the tests to be discovered.
This is useful in a number of scenarios. For example, suppose your CI server ran automated nightly tests and the ALM Octane pipeline shows that a specific test failed. After pushing a fix you can run the specific test directly from ALM Octane, rather than running the full pipeline which can be time consuming.
For details, see Trigger on-demand automated test runs.