Create test suites
A test suite is a collection of tests. Use test suites to test an area of your application. You can use test suites for planned testing events, such as regression testing.
A test suite can contain manual, automated, and Gherkin tests. For details, see Testing overview.
About test suites
A test suite is a collection of tests. Test suites do not contain any content of their own.
Use test suites in a variety of ways:
- Group tests of a particular page, module, or section of your application together. This lets you test that section of the application.
- Keep tests of a particular theme grouped together. You can reuse the same test suite across versions, and compare the suite run from the current version with those from previous versions. In addition, you can run the same suite on different environments and compare suite runs to check for any regressions.
- Enforce the order of a series of tests. You can ensure that a series of manual tests are run in a specific order, so that a test cannot be run until the previous tests in the test suite have been completed.
- Different people run the tests. The owner of the test suite receives the compiled results for the test suite's test. This method is particularly helpful for regression testing.
Tip: The best practice is to create maintainable and reusable test suites with a relatively small number of tests. You can organize your tests in suites based on one of the suggestions above, and then analyze the results across suites at a higher level, such as release, milestone, or environment.
Create a test suite
Create a test suite to contain the tests you want to group together.
To create a test suite:
-
Open the Tests page in the Quality or Backlog modules.
- If you want to add tests directly to the new test suite, select those tests in the grid.
- Right-click in the tests grid, and select Create Test Suite.
-
Set the test suite attributes. In particular, provide a value for the Backlog coverage and Application modules attributes.
-
Click Add. The test suite is created.
Tip: To add tests to the new test suite immediately, click Add & Edit. For details on adding tests, see Add tests to a test suite.
Add tests to a test suite
You can add tests to a test suite either from within the test suite, or from the Tests page.
You can add the same test to a suite multiple times, so for example you could run an automated test twice using different environments or execution parameters.
To add tests to a test suite from within the test suite:
- Open the Tests page in the Quality or Backlog module.
- Open a test suite and select its Planning tab.
-
To add existing tests to the test suite:
- Click the Add Existing Tests button.
- Select all the tests you want to include.
- Click Add.
-
To add new tests to the test suite:
- Click + Manual Test or use the down arrow to select Gherkin Test.
- Set values for the test fields. For details, see Create manual tests or Create Gherkin tests.
- Click Add. The new test is created and automatically added to the test suite.
To add tests to a test suite from the Tests page:
- Open the Tests page in the Quality or Backlog module.
- Select the tests you want to add to a test suite.
- Right-click and select Add to Test Suite.
- In the Add to Test Suite dialog box, select all the test suites to which you want to add the tests.
Note: After you add tests to a suite, any changes you make to the following fields apply only within that particular test suite. The changes do not affect the test outside of the test suite.
-
Backlog coverage (in suite)
-
Test runner (in suite)
-
Data set (in suite)
Parameterize UFT One tests
If you add executable UFT One tests to a test suite and your UFT One Git repository contains data tables, parameterize your test runs using data tables.
Tip: For ALM Octane to locate the data tables in Git, store them in an entirely separate folder from your tests.
To parameterize your test runs using data tables:
- In the test suite, open the Tests tab and select the grid view.
- Add the Data table column to the grid.
- In the UFT One test's row, select a data table to use for the test run. The list of data tables includes all of the data tables that ALM Octane discovered with your tests.
When the suite runs this test, it will run with the data table you selected.
To run a test with different data tables, add the test to different test suites. In each suite, you can specify a different data table for this test.
See also: