Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
closing browser at end
#1
Solved: 12 Years, 10 Months, 2 Weeks ago
Hi

I currently have as my last step in qtp
Browser("aALIWeb").close


this will close the browser in qtp ... IF the test ends normally.

But, I have the setting that upon error, QTP should stop the run.
The run gets stopped in the middle of the test so the close is never
executed.

How can I have the browser be closed whether the test ends normally or by error? I need it closed so for the next test I can open a fresh copy and not have the state of the web page be wherever it left off before.
Reply


Messages In This Thread
closing browser at end - by bistritapcv - 04-11-2013, 04:23 AM
RE: closing browser at end - by basanth27 - 04-11-2013, 06:54 AM
RE: closing browser at end - by bistritapcv - 04-11-2013, 08:03 PM
RE: closing browser at end - by basanth27 - 04-12-2013, 07:21 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SAP GUI gets hanged while closing the Windows Pop Up kathirvelnagaraj 0 5,955 10-23-2015, 06:47 PM
Last Post: kathirvelnagaraj
  Expected End statement error Lavanya N 2 5,719 07-27-2015, 01:52 PM
Last Post: Lavanya N
  recovery scenario for closing a message box itself ashima 0 2,485 12-26-2013, 11:10 AM
Last Post: ashima
  error object disabled on line 9 where it says " Browser("Browser").CloseAllTabs" kp_usa 1 3,702 12-20-2012, 12:20 AM
Last Post: adityapant27
  closing the browser diya 3 4,112 11-27-2012, 10:14 PM
Last Post: diya

Forum Jump:


Users browsing this thread: 1 Guest(s)