Hi,

Can any one help how to get static error messages with regular expressions
in flight application using data driven framework with local sheet.

For i=1 to Rc
Datatable.SetCurrentRow(i)
InvokeApplication "C:\Program Files\HP\QuickTest
Professional\samples\flight\app\flight4a.exe"
Dialog("Login").WinEdit("Agent Name:").Set Datatable("Agname","Action1")
Dialog("Login").WinEdit("Password:").Set Datatable("Password","Action1")
Dialog("Login").WinButton("OK").Click
If window("Flight Reservation").Exist Then
Datatable("Result","Action1")="Pass"
Window("Flight Reservation").Close
else
       err_msg=Dialog("Login").Dialog("Flight
Reservations").static("nativeclass:=.*", "window
id=65535").GetROProperty("text")
Datatable("Result","Action1")="Fail"
Datatable("Status","Action1")="Unsuccessfull login reason is "&err_msg
Dialog("Login").Dialog("Flight Reservations").Close

End If

' Window("Flight Reservation").Close
 Datatable.SetNextRow
Next






-- 
Regards
Aparna

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to MercuryQTP@googlegroups.com
To unsubscribe from this group, send email to
mercuryqtp+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mercuryqtp+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to