03-03-2011, 02:58 PM
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:
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.
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.