Implement the following steps to invoke a reusable test in a test (regular or reusable test) or a test in a test suite.
Before you begin
You are expected to create the following before proceeding:
- Create either a regular ATF test, or a parent reusable test that rolls up to a regular ATF test.
- Create a reusable test that can be invoked either from a regular ATF test or a parent reusable test. For information about creating a reusable test, see Create a reusable test.
Role required: admin, atf_test_admin, atf_test_designer or atf_ws_designer
Procedure
-
Navigate to .
Note: You can also navigate to Reusable Tests, if you need to invoke the reusable test in the parent reusable test.
The list of ATF tests shows up.
-
Select the test in which you want to invoke the reusable test.
-
Scroll down the selected test form to see the Test Steps related list.
-
Select Add Test Step to invoke the reusable test.
The Add Test Step modal opens up.
-
Select Reusable Test test category or another category, depending on how the reusable test was categorized while creating it.
Note: The reusable tests show up under the Reusable Tests test category, by default. You can also define the category of the reusable tests while creating them.
The list of all reusable tests on the instance shows up.
-
Select the required reusable test from the list to invoke in the parent test.
-
Select Next.
The reusable test form shows up.
-
Make the required selections on the reusable test form and select Submit.
The reusable test is now invoked in the parent test.
The reusable test shows up as a test step under the Test Steps related list.
-
Execute the parent test by selecting Run Test.
The Run Test modal shows up.
-
Expand the reusable test steps in the modal for more information.
You can also select See Results in the modal to view details of the test steps under the Step Results related list.
- Optional:
Follow the gif for a quick overview of invoking a reusable test.