Micro Focus QTP (UFT) Forums
QTP 11.5 PARAMETERIZATION ERROR QTP(UFT)11.50 - 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 11.5 PARAMETERIZATION ERROR QTP(UFT)11.50 (/Thread-QTP-11-5-PARAMETERIZATION-ERROR-QTP-UFT-11-50)



QTP 11.5 PARAMETERIZATION ERROR QTP(UFT)11.50 - mseroney88 - 01-19-2013

[attachment=1176]Hello,
I'm fairly new to QTP.
I keep getting an error during qtp parameterization in uft(QTP) 11.50
code snippet.

I runs once successfully then on the 2nd row i get an error please advice... see code snippet and settings

Code:
Dialog("Login").WinEdit("Agent Name:").Set DataTable("user", dtGlobalSheet)
Dialog("Login").WinEdit("Password:").Set DataTable("p_Text", dtGlobalSheet)
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").Close

ACtion call settings -> Run on all rows
[attachment=1176]
See image .
[Image: qtp%20error.png]


RE: QTP 11.5 PARAMETERIZATION ERROR QTP(UFT)11.50 - Ankesh - 01-22-2013

mseroney88,

How are you opening the application?

I see at the end you are closing the flight application. So when the script goes for the second iteration, there is no login window. Hence the error. Add a code to launch the application at start. You can use SystemUtil.Run "<Your application exe path>"

Regardsm,Ankesh


RE: QTP 11.5 PARAMETERIZATION ERROR QTP(UFT)11.50 - mseroney88 - 01-22-2013

Hello Ankesh,

Thanks buddy.... It worked :-). I'm glad that you were of service. I'll be glad to work with you if i have any questions.

Best Regards,

Seroney Matoke.