Micro Focus QTP (UFT) Forums
parameters issues - 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: parameters issues (/Thread-parameters-issues)



parameters issues - Bubbly - 01-28-2011

I am trying to use Action parameters in the Flight app
i have created "Agname" and "pswd" parameters to the Action for which i m going to make a login application check



Code:
invokeApplication Parameter("AppPath")
dialog("Login").WinEdit("Agent Name:").setParameter("Agname")

[when i was writing the script i coudnt see the "setParameter()" in the dropdown of "winEdit" object]

when i run the test its throwing an error as

" The test run cannot continue due to an unrecoverable error.
Code:
Object doesn't support this property or method: 'dialog(...).WinEdit(...).setParameter'  "



RE: parameters issues - sreekanth chilam - 01-28-2011

Try as below.

Code:
dialog("Login").WinEdit("Agent Name:").set Parameter("Agname")
dialog("Login").WinEdit("Password:").set Parameter("pswd")
dialog("Login").WinButton("OK").click




RE: parameters issues - Bubbly - 01-28-2011

Thank U Srikanth.
It worked .