Sunday 24 March 2013

How to Handle pop ups in QTP

When programming with QTP, you may face a situation where pop ups will come on the top of application. These pop ups will make the objects invisible on the screen Thus it hampers the execution of test in QTP.

SO it is necessary to handle these pop ups and close them as soon as they appear on the application.

To handle pop ups, You must create a recovery scenario in QTP. Below are the steps to handle the pop up in QTP

  • Go to recovery scenario manager.
  • Select Trigger Event as pop up window.
  • In next step, provide the title of pop up window.
  • In next step choose, recovery operation. You may choose to call a function or press any key.
  • In next step provide the post-recovery operation like proceed to next step.
  • In last step give recovery scenario name to this scenario and save this in file .qrs.
In recovery operation, if you have selected to call a function, you must write a function to handle the pop up.
Whenever pop up window appears , function will be automatically triggered and it will close the pop up window.

This is how we can handle pop up window in QTP.

No comments:

Post a Comment

Please Leave your reply. We value your feedback and inputs

Best QTP Books

Everything About QTP

Hello Friends,
You can find QTP study material, Multiple choice questions (mcq), QTP question bank, QTP question papers, QTP notes, QTP questionnaire, scenario based QTP interview questions, QTP tutorial and QTP training on this site.

If you are a fresher or experienced QTP professional with (1/2/3/4) years of experience, this blog is just for you.