Friday, July 18, 2008

Exception Handling

Exceptions are unexpected event that occur during the normal execution flow.
Start of Scenario run Test scenarios may be executed in sequences in test sets. There are multiple options to guarantee that each scenario can run in a test set, independent of whether the previous scenario was successful or encountered a Test Run Error.
One option is that in each Scenario before the first reusable action of the scenario an extra Function is inserted. The function navigates the application to the required base state.This will facilitate that in the situation where a previous test in the set has failed, the next test of the set can start anyway by setting the oracle applications to the Navigator form (which is the start screen for each reusable action).
Another option is to create a specific Logon reusable action to be placed at the start of each scenario. This reusable action will first close all Oracle sessions that are open and will then open a new sessions according to a predefined environment and user.
Popup Error screens Handle all expected pop up error messages. Two approaches may be followed
? Close the popup and continue navigating through the scripts. Here the settings should be done to proceed to the next step on error.
? Terminate the test script and print the error log.
Application Errors Due to application errors test scenario execution breaks. When an application error is identified, prepare the error log and terminated the test. Prepare backend validation scripts and use them to validate event status frequently. When an error is noticed execute the exception handlers.

No comments: