Call external tests or actions
Relevant for: API testing only
This task describes how to incorporate tests from other ADM tools. You can use the following types of tests:
-
GUI and API UFT tests
-
VuGen (Virtual User Generator) scripts from LoadRunner Professional
Prerequisites
Make sure you have installed the application whose test/script you want to call on the same computer with OpenText Functional Testing or have access to the directory containing the tests or scripts.
Call an API Test or Action
-
Make sure the action or test you want to call has been saved and run successfully at least once.
-
In the Standard Activities section of the Toolbox pane, expand the OpenText Automated Testing Tools node.
-
Add a Call API Action or Test activity to the canvas.
-
In the Input/Output Properties tab in the Properties pane, click the Select Action or Test button.
-
In the Select Action or Test Dialog Box, select the API test you want to call.
-
In the Input/Output Properties tab, edit the property values as needed.
Note:
-
The property list remains empty until you select a test.
-
If the test you are calling has no input or output parameters, the Input/Output Properties tab will be empty.
-
-
Add other relevant steps to your test. You can link input properties of subsequent step to the output properties of the step containing the called API test or action.
-
If the value of the input parameter for step containing the API test/action call must be a string (such when the result of a previous step was XML), add an XML to String activity before the step containing the call to the action or test.
-
Optional - To specify a custom directory for the results, in the General tab of the Properties, click the Browse button in the Results directory row in the General view tab.
Call a GUI test or action
-
Make sure the action or test you want to call has been saved and run successfully at least once.
-
In the Toolbox pane, in the Standard Activities section, expand the OpenText Automated Testing Tools node.
-
Drag the Call GUI Action or Test activity onto the canvas.
Note: This activity is not available when working with a Service Test license.
Tip: Do not insert a call to a GUI action or test that contains a call to an API Test action or test, as this can cause unexpected behavior.
-
In the Input/Output Properties tab in the Properties pane, click the Select Action or Test button. In the Select Action or Test Dialog Box, select an action or a test.
-
In the Select Action or Test Dialog Box, select a GUI action or a test.
Note: If you want to use data from a GUI test in your API test, the GUI test or action that is called must have test or action parameters saved with the test or action.
-
In the Input/Output Properties tab, edit the property values as needed. If you want to use parameters from the called GUI test, in the Input/Checkpoints tab, click the Link to data source button in subsequent test steps. In the Select Link Source dialog box, link the selected property to a GUI test or action parameter.
Note:
-
The property list remains empty until you select a test.
-
If the test you are calling has no input or output parameters, the Input/Output Properties tab will be empty.
-
Add a LoadRunner Professional script activity
-
Make sure the action or test you want to call has been saved and run successfully at least once.
-
In the Toolbox pane, in the Standard Activities section, expand the OpenText Automated Testing Tools node.
-
Add a Call Virtual User Generator Script activity to the canvas.
-
In the Properties pane, select the General tab, and click the script selection button .
-
Navigate to the directory where your VuGen script file (.usr) is saved.