Micro Focus QTP (UFT) Forums
QTP carshes while running the script. - 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: QTP carshes while running the script. (/Thread-QTP-carshes-while-running-the-script)



QTP carshes while running the script. - vibhakhushi - 03-03-2011

I have a AIR project which has automated. I recorded a test using QTP. But while running the test it gets hanged once 75% of script has run.
Here is the code:
Code:
Window("VLE").Click 386,178
Window("VLE").AirApplication("iLM").AirForm("LoginForm").AirTextArea("User ID::username").SelectText 0,0
Window("VLE").Type "user"
Window("VLE").Click 375,201
Window("VLE").AirApplication("iLM").AirForm("LoginForm").AirTextArea("User ID::username").Input "user"
Window("VLE").AirApplication("iLM").AirForm("LoginForm").AirTextArea("Password::password").SelectText 0,0
Window("VLE").Type "user"
Window("VLE").Click 376,286
[color=#1E90FF]Window("VLE").AirApplication("iLM").AirForm("LoginForm").AirTextArea("Password::password").Input "user"[/color]
Window("VLE").AirApplication("iLM").AirButton("Login").Click
Window("VLE").Click 967,35
Window("VLE").AirApplication("iLM").AirLabel("Sign Out").Click

I use QTP 9.2. Also, while recording I used the following plug-ins. ActiveX, AIR1.0.0 and Flex 4.0.0.

By the time it has reached the highlighted text, Login button has also pressed in the application. After that it gets hanged. Why it is so? I am very new to QTP. Please somebody explain me.