09-17-2012, 07:40 PM
Thanks a lot for the quick response. Really appreciate.
I rerecorded the script with changed "Record and Run settings" ("Record and run test on any open browser"). Now I am launching IE for each run as per your suggestion and it is working.
The script is :
But now whats happening is that the scripts running fine if theres a 15 to 20 secs gap between any two successive runs but it stops if the time gap is small.
NOTE: With systemutil.run "www.google.co.in" its not running.
Is there any workaround for this.
I rerecorded the script with changed "Record and Run settings" ("Record and run test on any open browser"). Now I am launching IE for each run as per your suggestion and it is working.
The script is :
Code:
SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe","","H:\","open"
Browser("Google").Page("Google").WebEdit("q").Set "QTP"
Browser("Google").Page("Google").WebButton("Google Search").Click
Browser("QTP - Google Search").Page("QTP - Google Search").Link("HP QuickTest Professional").Click
Browser("HP QuickTest Professional").Page("HP QuickTest Professional").Sync
Browser("HP QuickTest Professional").Close
But now whats happening is that the scripts running fine if theres a 15 to 20 secs gap between any two successive runs but it stops if the time gap is small.
NOTE: With systemutil.run "www.google.co.in" its not running.
Is there any workaround for this.