Tuesday, January 29, 2019




Select Trigger Event Page


Relevant for: GUI tests and components
This page enables you to define the event type that triggers the recovery scenario, and the way in which UFTrecognizes the event.
Wizard map
The Recovery Scenario Wizard contains:
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
  • The set of recovery operations is performed for each occurrence of the trigger event criteria.
    Example: If you define a specific object state, and two objects match this state, the set of recovery operations is performed two times, once for each object that matches the specified state.
  • The recovery mechanism does not handle triggers that occur in the last step of a test or component. If you need to recover from an unexpected event or error that may occur in the last step, you can do this by adding an extra step to the end of your test or component.
User interface elements are described below:
UI Elements
Description
Pop-up window
Detects a pop-up window and identifies it according to the window title and textual content.
Example: A message box may open during a run session, indicating that the printer is out of paper. UFT can detect this window and activate a defined recovery scenario to continue the run session.
Object state
Detects a specific test object state and identifies it according to its property values and the property values of all its ancestors. Note that an object is identified only by its property values, and not by its class.
Example: A specific button in a dialog box may be disabled when a specific process is open. UFT can detect the object property state of the button that occurs when this problematic process is open and activate a defined recovery scenario to close the process and continue the run session.
Test run error
Detects a run error and identifies it by a failed return value from a method.
Example: UFT may not be able to identify a menu item specified in the method argument, due to the fact that the menu item is not available at a specific point during the run session. UFT can detect this run error and activate a defined recovery scenario to continue the run session.
Application crash
Detects an application crash and identifies it according to a predefined list of applications.
Example: A secondary application may crash when a certain step is performed in the run session. You want to be sure that the run session does not fail because of this crash, which may indicate a different problem with your application. UFT can detect this application crash and activate a defined recovery scenario to continue the run session.

Sources: microfocus.com

0 comments:

Post a Comment

Blog Archive

Translate

Popular Posts

Total Pageviews

Blog Archive