How to force to close a tab in the screen (157 Views)
Frequent Advisor
Posts: 91
Registered: ‎09-26-2011
Message 1 of 2 (157 Views)

How to force to close a tab in the screen

I am testing a banking application, I have a screen and it has tabs.

In one of the screens, When I finish with the screen, the screen automatilcalyy opens an another tab which downloads a picture in about 10 minutes (it is something like a quarantee record)


After I see my screen finished the job succesfult, I do not want to wait for this automaticaly seen tab which brings a page.


I tried many ways but QTP does not execute next line in the code until that tab finishes.


Is there a way to force QTp to do that ? I mean after last checkpoint. forcefully close a tab, or exit the test.

Regular Advisor
Posts: 72
Registered: ‎01-14-2010
Message 2 of 2 (153 Views)

Re: How to force to close a tab in the screen

Please provide more information about the application and your QTP. What is the application technology, web, java, SAP...? QTP 10, 11?

If you need to kill a process, then one option is to go through the open applications in task manager and kill the one you want. For this approach there are many different methods which can be scripted in vbs and run by QTP.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.