01-24-2008, 11:30 AM
I have write the DP(Descriptive programming) for flight reservation application. but when execute thatscript is not properly executed. I have give the script anybody know what is the problem in the script. please tell me.
Code:
SystemUtil.Run("D:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe")
Set Login_Obj = Description.Create()
Login_Obj ("name").Value = "Login"
Login_Obj ("micclass").Value = "Dialog"
Set Uname_obj = Description.Create()
Uname_obj ("name").value = "Agent Name"
Uname_obj ("micclass").Value = "WinEdit"
Set Pword_obj = Description.Create()
Pword_obj ("name").Value = "Password"
Pword_obj ("micclass").Value = "WinEdit"
Set Ok_obj = Description.Create()
Ok_obj("name").value = "OK"
Ok_obj("micclass").value = "WinButton"
Dialog(Login_Obj).Activate
Dialog(Login_Obj).WinEdit (Uname_obj).set "XXXX"
Dialog(Login_Obj).WinEdit(Pword_obj).SetSecure "47981b787a3715240619acb40bee41b2d593b6b4"
Dialog(Login_obj).WinButton(Ok_obj).Click