08-18-2009, 05:38 PM
Hi All,
I am new to qtp and implemented one functionality as like below
Function:
Script:
In the above script I have given a argument “filght” that is “filght is replaced by “m”
My way of thinking:
“Filght” need to be taken as “Agent Name:”
Actual one:
Here it is not taking “filght” in to “Agent Name” field but password field is taking as "mercury"
Thanks in advance
qtpctc
I am new to qtp and implemented one functionality as like below
Function:
Code:
Function loginpage(m)
Dialog("Login").WinEdit("Agent Name:").Set m
Dialog("Login").WinEdit("Password:").SetSecure "4a8a8fcc491dd5ddab8dcf1970f281492644fe42"
End Function
Script:
Code:
Call loginpage(filight)
Dialog(“Login”).WinButton(“Ok”).Click
In the above script I have given a argument “filght” that is “filght is replaced by “m”
My way of thinking:
“Filght” need to be taken as “Agent Name:”
Actual one:
Here it is not taking “filght” in to “Agent Name” field but password field is taking as "mercury"
Thanks in advance
qtpctc