| || |
Testcase Enter And Testcase Exit
I am in the process of evaluating QTP6.5 and above for one of the projects.
I am looking for entry and exit points in a testcase where I write code for base state and recovery mechanism for the testcase.
(Something like what we have in SilkTest as TestcaseEnter() and TestcaseExit() )
Does QTP provide this feature?
Re: Testcase Enter And Testcase Exit
I am not familiar with SilkTest but QTP has a built-in Recovery Scenario Manager that may provide the functionality you want. It is event-driven and you can specify a recovery behavior when the event occurs.
From their help documentation:
"A recovery scenario has three main components:
Trigger Event—The event that interrupts your test run. For example, a window that may pop up on screen, or a QuickTest test run error.
Recovery Operation(s)—The operation(s) that need to be performed in order to continue running the test. For example, clicking an OK button in a pop-up window, or restarting Microsoft Windows.
Post-Recovery Test Run Option—The instructions on how QuickTest should proceed once the recovery operations have been performed, and from which point in the test QuickTest should continue, if at all. For example, you may want to restart a test from the beginning, or skip a problematic test step entirely and continue with the next step in the test."
Hope this helps.