Geeks Talk

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.

Handling error messages

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). ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 10-31-2008
Junior Member
 
Join Date: Dec 2007
Location: India
Posts: 6
Thanks: 1
Thanked 1 Time in 1 Post
narebhavana is on a distinguished road
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
Reply With Quote
The Following User Says Thank You to narebhavana For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 12-02-2008
Junior Member
 
Join Date: Dec 2008
Location: Hyderabad
Posts: 23
Thanks: 0
Thanked 3 Times in 3 Posts
Jai Deepu is on a distinguished road
Smile 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 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.
Reply With Quote
  #3 (permalink)  
Old 12-02-2008
Junior Member
 
Join Date: Dec 2008
Location: Hyderabad
Posts: 23
Thanks: 0
Thanked 3 Times in 3 Posts
Jai Deepu is on a distinguished road
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
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


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


All times are GMT -4. The time now is 11:24 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved