Recovery Operation - Function Call Screen

Relevant for: GUI tests and components

This page enables you to select a function to call in the recovery operation.

Option Description
Wizard map

The Recovery Scenario Wizard contains:

Welcome > Select Trigger Event Page > (Specify Pop-up Window Conditions Page) > (Select Object Page) > (Set Object Properties and Values Page) > (Select Test Run Error Page) > (Select Processes Page) > Recovery Operations Page > Recovery Operation Page > (Recovery Operation - Click Button or Press Key Page) > (Recovery Operation - Close Processes Page) > (Recovery Operation - Function Call Page) > Post-Recovery Test Run Options Page > Name and Description Page > Completing the Recovery Scenario Wizard Page

Note: Pages that are in parentheses open according to the option selected in the previous page. Therefore, not all pages are displayed for every option.

Important information
  • If more than one scenario uses a function with the same name from different function libraries, the recovery process may fail. In this case, information regarding the recovery failure is displayed during the run session.
  • For tests: OpenText Functional Testing automatically associates the function library you select with your test. Therefore, you do not need to associate the function library with your test in the Resources pane of the Test Settings dialog box.
  • For components: The function library must be stored in the ALM project.
  • For tests: When you select a function containing one of the following methods in recovery operations, the recovery steps after the method and the Post-Recovery operation you set are skipped:

    • ExitAction
    • ExitTestIteration
    • ExitTest

User Interface Elements

UI Element

Description

Function Library

Displays the selected function library, and enables you to select a recently specified function library in the box. Alternatively, click the Browse button to navigate to an existing function library.

Select function

Choose an existing function from the function library you selected. Only functions that match the prototype syntax for the trigger type selected in the Select Trigger Event Page are displayed.

Define new function

Create a new function by specifying a unique name for it, and defining the function in the Function Name box according to the displayed function prototype. The new function is added to the function library you selected.

Function Prototypes by Trigger Type

Following is the prototype for each trigger type:

Test run error trigger
OnRunStep
(
[in] Object as Object: The object of the current step.
[in] Method as String: The method of the current step.
[in] Arguments as Array: The actual method's arguments.
[in] Result as Integer: The actual method's result.
) Pop-up window and Object state triggers
OnObject
(
[in] Object as Object: The detected object.
)Application crash trigger
OnProcess
(
[in] ProcessName as String: The detected process's Name.
[in] ProcessId as Integer: The detected process' ID.
)