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.

Back to top

Call an API Test or Action

  1. Make sure the action or test you want to call has been saved and run successfully at least once.

  2. In the Standard Activities section of the Toolbox pane, expand the OpenText Automated Testing Tools node.

  3. Add a Call API Action or Test activity to the canvas.

  4. In the Input/Output Properties tab in the Properties pane, click the Select Action or Test button.

  5. In the Select Action or Test Dialog Box, select the API test you want to call.

  6. 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.

  7. 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.

  8. 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.

  9. 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.

Back to top

Call a GUI test or action

  1. Make sure the action or test you want to call has been saved and run successfully at least once.

  2. In the Toolbox pane, in the Standard Activities section, expand the OpenText Automated Testing Tools node.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

Back to top

Add a LoadRunner Professional script activity

  1. Make sure the action or test you want to call has been saved and run successfully at least once.

  2. In the Toolbox pane, in the Standard Activities section, expand the OpenText Automated Testing Tools node.

  3. Add a Call Virtual User Generator Script activity to the canvas.

  4. In the Properties pane, select the General tab, and click the script selection button .

  5. Navigate to the directory where your VuGen script file (.usr) is saved.

Back to top