Micro Focus QTP (UFT) Forums
Dp for flight reservation form - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Dp for flight reservation form (/Thread-Dp-for-flight-reservation-form)



Dp for flight reservation form - rajaselvan.d - 01-24-2008

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



RE: Dp for flight reservation form - dsharma - 01-25-2008

Can u pls elaborate the kind of error u r facing


RE: Dp for flight reservation form - rajaselvan.d - 01-25-2008

Hi
I have attach the word doc pls find it.


RE: Dp for flight reservation form - dsharma - 01-29-2008

I saw that you have used the property name for Login but that property does not exist for this.
Try using some other property.