Recover Scenario:
Unexpected events, errors, and application crashes during a run session can disrupt your run session and distort results.
This is a problem particularly when running tests or components unattended—the test or component is suspended until you perform the operation needed to recover.
A recovery scenario consists of the following:
1.Trigger Event
2. Recovery Operation(s)
3. Post Recovery Test Run option
Deciding When to use Recovery Scenarios
• If we can predict that a certain event may happen at a specific point in your test or component.
• For e.g., say overwrite file message.
Defining Recovery Scenario
• The Recovery Scenario Manager dialog box enables to create recovery scenarios and save them in recovery files.
• We can create recovery scenarios using the Recovery Scenario Wizard, which leads through the process of defining each of the stages of the recovery scenario.
• We then save the recovery scenarios in a recovery file, and associate them with specific tests or components.
Understanding the Recovery Scenario Wizard
• Defining the trigger event that interrupts the run session
• Specifying the recovery operation(s) required to continue
• Choosing a post-recovery test run operation
• Specifying a name and description for the recovery scenario
• Specifying whether to associate the recovery scenario to the current test and/or to all new tests
Understanding the recovery scenario wizard
Welcome screen
Trigger Event Screen - Object State Trigger Event
Trigger Event Screen - Object State Trigger Event
Trigger Event Screen - Test Run Error Trigger event
Any Error
Item in the list or menu is not unique
Item in the list or menu is not found
More that one object responds to the physical description
Object is disabled
Object not found
Object not visible
Trigger Event Screen - Application Crash Trigger Event
Recovery Operations Screen
Keyboard or mouse operations
Close Application process
Function Call
Restart Ms windows
Click button or press key Close processes screen
Recovery Operations Screen - Function Call Screen
Post Recovery Test Run Options Screen
Repeat current step and continue
Proceed to nest step
Proceed to next action iteration
Proceed to next test Iteration
Restart current test run
Stop the test run
Name and Description Screen Finish Screen
Managing Recovery Scenarios
Managing Recovery Scenarios
Recovery Scenario Manager enables us to manage existing scenarios by:
Viewing Recovery Scenario Properties
Modifying Recovery Scenarios
Deleting Recovery Scenarios
Copying Recovery Scenarios between
Recovery Scenario files
Setting Recovery Scenarios List for the Tests
Adding Recovery Scenarios to the tests
Viewing Recovery Scenario Properties
Setting Recovery Scenario Priorities
Enabling and Disabling Recovery Scenarios
Setting Default Recovery Scenario Settings for All New Tests
Programmatically Controlling the Recovery Mechanism
We can use the Recovery object to control the recovery mechanism programmatically during the run session. For example:
Enable or disable the entire recovery mechanism or specific recovery scenarios for certain parts of a run session.
Retrieve status information about specific recovery scenarios
Explicitly activate the recovery mechanism at a certain point in the run session
By default, QuickTest checks for recovery triggers when an error is returned during the run session.
We can use the Recovery object’s Activate method to force QuickTest to check for triggers after a specific step in the run session
Represents the Recovery tab of the Test Settings or Business Component Settings dialog box, which enables you to configure which recovery scenarios to associate with a test or business component.
Methods
Add Adds the specified recovery scenario to the specified position.
Find The position of the specified recovery scenario.
MoveToPos Changes the order of the recovery scenarios by moving a recovery scenario from its current position to a specified position.
Remove Removes the recovery scenario that is located in the specified position.
RemoveAll Removes all recovery scenarios from the Recovery collection.
SetActivationMode Sets the activation mode for all the recovery scenarios associated with the test or component.
SetAsDefault Sets the current list of recovery scenarios as the default recovery scenarios for all new tests or business components.
Add
object.Add ScenarioFile, ScenarioName, [Position]
Find
object.Find (ScenarioFile, ScenarioName)
MoveToPos
object.MoveToPos CurPosition, NewPosition
Remove
object.Remove Position
Remove All
object.RemoveAll
SetActivationMode
object.SetActivationMode Mode
SetAsDefault
object.SetAsDefault
Unexpected events, errors, and application crashes during a run session can disrupt your run session and distort results.
This is a problem particularly when running tests or components unattended—the test or component is suspended until you perform the operation needed to recover.
A recovery scenario consists of the following:
1.Trigger Event
2. Recovery Operation(s)
3. Post Recovery Test Run option
Deciding When to use Recovery Scenarios
• If we can predict that a certain event may happen at a specific point in your test or component.
• For e.g., say overwrite file message.
Defining Recovery Scenario
• The Recovery Scenario Manager dialog box enables to create recovery scenarios and save them in recovery files.
• We can create recovery scenarios using the Recovery Scenario Wizard, which leads through the process of defining each of the stages of the recovery scenario.
• We then save the recovery scenarios in a recovery file, and associate them with specific tests or components.
Understanding the Recovery Scenario Wizard
• Defining the trigger event that interrupts the run session
• Specifying the recovery operation(s) required to continue
• Choosing a post-recovery test run operation
• Specifying a name and description for the recovery scenario
• Specifying whether to associate the recovery scenario to the current test and/or to all new tests
Understanding the recovery scenario wizard
Welcome screen
Trigger Event Screen
Trigger Event Screen - Pop-Up Window Trigger Event
Trigger Event Screen - Object State Trigger Event
Trigger Event Screen - Object State Trigger Event
Trigger Event Screen - Test Run Error Trigger event
Any Error
Item in the list or menu is not unique
Item in the list or menu is not found
More that one object responds to the physical description
Object is disabled
Object not found
Object not visible
Trigger Event Screen - Application Crash Trigger Event
Recovery Operations Screen
Keyboard or mouse operations
Close Application process
Function Call
Restart Ms windows
Click button or press key Close processes screen
Recovery Operations Screen - Function Call Screen
Post Recovery Test Run Options Screen
Repeat current step and continue
Proceed to nest step
Proceed to next action iteration
Proceed to next test Iteration
Restart current test run
Stop the test run
Name and Description Screen Finish Screen
Managing Recovery Scenarios
Managing Recovery Scenarios
Recovery Scenario Manager enables us to manage existing scenarios by:
Viewing Recovery Scenario Properties
Modifying Recovery Scenarios
Deleting Recovery Scenarios
Copying Recovery Scenarios between
Recovery Scenario files
Setting Recovery Scenarios List for the Tests
Adding Recovery Scenarios to the tests
Viewing Recovery Scenario Properties
Setting Recovery Scenario Priorities
Enabling and Disabling Recovery Scenarios
Setting Default Recovery Scenario Settings for All New Tests
Programmatically Controlling the Recovery Mechanism
We can use the Recovery object to control the recovery mechanism programmatically during the run session. For example:
Enable or disable the entire recovery mechanism or specific recovery scenarios for certain parts of a run session.
Retrieve status information about specific recovery scenarios
Explicitly activate the recovery mechanism at a certain point in the run session
By default, QuickTest checks for recovery triggers when an error is returned during the run session.
We can use the Recovery object’s Activate method to force QuickTest to check for triggers after a specific step in the run session
Programmatically Controlling the Recovery Mechanism
Recovery ObjectRepresents the Recovery tab of the Test Settings or Business Component Settings dialog box, which enables you to configure which recovery scenarios to associate with a test or business component.
Methods
Add Adds the specified recovery scenario to the specified position.
Find The position of the specified recovery scenario.
MoveToPos Changes the order of the recovery scenarios by moving a recovery scenario from its current position to a specified position.
Remove Removes the recovery scenario that is located in the specified position.
RemoveAll Removes all recovery scenarios from the Recovery collection.
SetActivationMode Sets the activation mode for all the recovery scenarios associated with the test or component.
SetAsDefault Sets the current list of recovery scenarios as the default recovery scenarios for all new tests or business components.
Add
object.Add ScenarioFile, ScenarioName, [Position]
Find
object.Find (ScenarioFile, ScenarioName)
MoveToPos
object.MoveToPos CurPosition, NewPosition
Remove
object.Remove Position
Remove All
object.RemoveAll
SetActivationMode
object.SetActivationMode Mode
SetAsDefault
object.SetAsDefault
No comments:
Post a Comment