I have 2 simple statements in my web applications with a delay of 5 seconds(wait 5) between them.
In this gap time, i open a window form acting like disturbance to web application and do some tasks.But after 5 sec is over, it continues to perform next statement even when my window is open.So there is no need of recovery scenario operation here.
I think it behaves same even when a printer error comes.So no need to worry about "pop up" trigger events?
<font color="blue">[i]If there is no struggle, there is no progress!
Actully if the opened disturbance window is modal, then QTP will expect Recovery Scenario. Here its also another browser window. So QTP already have the original window in mind, so automatically it will continue the operation.
Correct me if I am wrong !!!
Thank/Like to help others if my input helped you !!!
I am speaking for myself, not for my employer nor any one. Automation Ecstasy
If you want to test your recovery scenario, you could try creating a web page with a button that opens an alert message. During your 5 second wait, click the button to open the alert. That should trigger the recovery.
If the popup or messagebox or dialog is application modal then the popup or messagebox will expect input to return the focus to the parent or main application.
In case of system modal, the user is not allowed to access any application in the system till he provides some input to the message or dialog box.
In your case, as per my understanding if the dialog or the window that you invoke is not either application or system modal, then it will not have any impact on the script exection. Otherwise recovery scenario is required.