Micro Focus QTP (UFT) Forums
Run time error for window based application - 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: Run time error for window based application (/Thread-Run-time-error-for-window-based-application)



Run time error for window based application - muppalaneni - 09-07-2009

i am running window based application while running script on QTP some run time error occuring pls see the attachment and help me out


RE: Run time error for window based application - Saket - 09-07-2009

I doubt the applicationis not open at the time you are running your script, thats why the error is
Can you check the following,
1. you have open flight reservation application after launching QTP
2. you have object there in the repository

also can you try this in your script and let me know
Code:
msgbox Window(Flight Reservation).Exists



RE: Run time error for window based application - muppalaneni - 09-07-2009

yes without closing flight reservation window during running it's working. thank u
can u tell the order how to learn qtp basics as i am learning from home
and do i have to learn vb scripting also


RE: Run time error for window based application - Saket - 09-07-2009

we have a very nice article by ankur here to start learning qtp
refer this
Yes one should have knowledge of VB Scripting in order to work efficiently with QTP.
there are lots of materials on vbScript and QTP as well there refer https://www.learnqtp.com/

let us know if you any issue