Micro Focus QTP (UFT) Forums
Query on Recording - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Query on Recording (/Thread-Query-on-Recording)



Query on Recording - vadivelan - 01-24-2008

When we record web application via Record and run test on any browser method
Script:

Code:
1. Systemutil.Run "C:\Program files\Internet Explorer\iexplore.exe"
2. Browser("XXX").Page("XXX").sync
3. Browser("XXX").Navigate "http://www.google.com"


After recorded, i removed the script line 2 and run, it run successfully without show error. Please let me know what the purpose of the line 2?

V.Vadivelan


RE: Query on Recording - Ankur - 01-24-2008

Its simply a syncrhonization point. Its running successfully because your QTP does not reach the default timeout till it reach line 3 (when line 2 isn't there).
Try lowering your default timeout (from tools > settings) and you will see the reasoning more clearly.