Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Handling error messages within the QTP forums, part of the Software Testing category; Can you please guide me on handling errors. My actual requirement is to capture the run-time error message and exporting the same to output excel file or a flat file(notepad). ...
|
|||||||
|
|||
|
Handling error messages
Can you please guide me on handling errors. My actual requirement is to capture the run-time error message and exporting the same to output excel file or a flat file(notepad).
Thanks, Bhavana |
| The Following User Says Thank You to narebhavana For This Useful Post: | ||
| Sponsored Links |
|
|||
|
SystemUtil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe","","C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\","open"
Dialog("Login").WinEdit("Agent Name:").Set "Deepu" 'Dialog("Login").WinEdit("Password:").SetSecure "4934c6345f8ad825eba253d111244d5f58ae8c98" Dialog("Login").WinButton("OK").Click If Dialog("Login").Dialog("Flight Reservations").Static("Please enter password").Exist Then datatable.Value("no","Global")=Dialog("Login").Dialog("Flight R eservations").Static("Please enter password").getroproperty("text") Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click End If Copy and past this script, Add required objects to the object repository. In data table edit column to "no". Run it. take the comment and again run it. You will see the difference. |
|
|||
|
Re: Handling error messages
SystemUtil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe","","C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\","open"
Dialog("Login").WinEdit("Agent Name:").Set "Deepu" 'Dialog("Login").WinEdit("Password:").SetSecure "4934c6345f8ad825eba253d111244d5f58ae8c98" Dialog("Login").WinButton("OK").Click If Dialog("Login").Dialog("Flight Reservations").Static("Please enter password").Exist Then datatable.Value("no","Global")=Dialog("Login").Dialog("Flight Reservations").Static("Please enter password").getroproperty("text") Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click End If if u r having doughts contact me jaideepu.namineni@gmail.com |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error handling in Mainframes | ratnadeep2527 | MainFrame | 2 | 09-16-2008 12:52 PM |
| Error messages | soori.p | LoadRunner | 3 | 07-21-2008 04:21 AM |
| exception & error handling | amaravadi.krishna81 | C# | 4 | 03-26-2008 09:57 AM |
| Can we filter only the error messages? | prakash.kudrekar | Scripting | 0 | 11-14-2007 03:49 AM |
| help handling error with trigger | smitai | Oracle Certification | 10 | 03-08-2007 10:05 AM |