The online community for software testing & quality assurance professionals
   
Active Topics Today's Topics
Sponsors:
Lost Password?

Home
BetaSoft
Jobs
Training
News
Links
Downloads

News Group:
software.testing


Testing
Automation
Performance
Engineering
Miscellaneous
Statistics
Poll
  QA Forums
  WinRunner
  Handling Execption/errors

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   Handling Execption/errors
WinRunner
Moderator

Posts: 9845
Registered: Mar 2001

posted 07-22-2002 10:28 AM     Click Here to See the Profile for WinRunner   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by WinRunner Visit WinRunner's Homepage!
User Alice A (helpalice911@yahoo.com.nospam) posted:

--0-960064821-1027358975=:9386
Content-Type: text/plain; charset=us-ascii


Hai All,
I have set of execptions/Error messages in Excel. How do I call that when iam running/testing my application.?
Thanks in advance!,
Allice

---------------------------------

IP Logged

WinRunner
Moderator

Posts: 9845
Registered: Mar 2001

posted 07-22-2002 09:26 PM     Click Here to See the Profile for WinRunner   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by WinRunner Visit WinRunner's Homepage!
User Sunilkumar_Srinivasan (sunilkumar_srinivasan@satyam.com.nospam) posted:

--------------InterScan_NT_MIME_Boundary
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C23201.15FAF6C0"

------_=_NextPart_001_01C23201.15FAF6C0
Content-Type: text/plain;
charset="iso-8859-1"

You can use Exception handling feature of WinRunner.
First Learn the Error Window that pops up.
Then you can enter the command you wish to give.
By default you have "Yes", "OK", "Cancel"..etc...
This should handle your error.

Regards,
Sunil.


IP Logged

cranem451
Guru

Posts: 395
Registered: Mar 2002

posted 07-23-2002 12:31 AM     Click Here to See the Profile for cranem451   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by cranem451
It sounds like you want to use the .xls file to retrieve the "error text" of an error "return code". If that's what you want a Function has been written and is available.

If you check the "downloads" TAB at QAFORUMS.COM in the Mercury section, you will find a Function that returns the text of a TSL return code.


Or you can get the version I have modified at: 1731439.zip

------------------
cranem451 - cranem@addendum.com

IP Logged

WinRunner
Moderator

Posts: 9845
Registered: Mar 2001

posted 07-23-2002 12:58 AM     Click Here to See the Profile for WinRunner   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by WinRunner Visit WinRunner's Homepage!
User Lior Dekel (ldekel@pillardata.com.nospam) posted:

------_=_NextPart_001_01C2321E.D0B40B90
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Alice,
Do you mean how do you handle the windows that opo up in Excel application =
during run time...?
If so, then you can use pop up exeptions for this...
=20
LIOR


IP Logged

WinRunner
Moderator

Posts: 9845
Registered: Mar 2001

posted 07-23-2002 09:42 AM     Click Here to See the Profile for WinRunner   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by WinRunner Visit WinRunner's Homepage!
User John boon (verticle_limits@yahoo.com.nospam) posted:

hi,
just try this catch a general error and get the code
of the error then open the file and getlines untill
the specific err code occurs and display the message.

Will that work ???

thanks,
verticle


__________________________________________________

IP Logged

d4697588
Member

Posts: 23
Registered: Jun 2002

posted 07-23-2002 09:45 AM     Click Here to See the Profile for d4697588   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by d4697588
User (gregory_epps@dell.com.nospam) posted:

------_=_NextPart_001_01C23268.7E9C5F40
Content-Type: text/plain;
charset=iso-8859-1
Content-Transfer-Encoding: 7bit

How do you catch a general error? I've been looking for some way to do a
"try/catch" or a "do/except", but can't find anything like that. And I need
it really bad!
Greg




------_=_NextPart_001_01C23268.7E9C5F40
Content-Type: text/html; charset=US-ASCII
Content-Transfer-Encoding: 7bit

< !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">






you catch a general error?  I've been looking for some way  to do a
"try/catch" or a "do/except", but can't find anything like that. And I need it
really bad!


< !-- |**|begin egp html banner|**| -->


IP Logged

WinRunner
Moderator

Posts: 9845
Registered: Mar 2001

posted 07-23-2002 08:51 PM     Click Here to See the Profile for WinRunner   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by WinRunner Visit WinRunner's Homepage!
User Sunilkumar_Srinivasan (sunilkumar_srinivasan@satyam.com.nospam) posted:

--------------InterScan_NT_MIME_Boundary
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C232C5.68186310"

------_=_NextPart_001_01C232C5.68186310
Content-Type: text/plain;
charset="iso-8859-1"

Hi Greg,

You can use the exception handling concept of winrunner.
Just learn the window you want to exception handle and enter the command you
wish to give.
That should be good enough.

Regards,
Sunil.


IP Logged

d4697588
Member

Posts: 23
Registered: Jun 2002

posted 07-24-2002 09:06 AM     Click Here to See the Profile for d4697588   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by d4697588
User (gregory_epps@dell.com.nospam) posted:

------_=_NextPart_001_01C2332C.45DC0560
Content-Type: text/plain;
charset=iso-8859-1
Content-Transfer-Encoding: 7bit

Actually, you got me looking again and I figured it out. Thanks.
Greg


IP Logged

All times are PT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic | Top
Post New Topic  Post A Reply
Hop to:

Contact Us | BetaSoft Inc. | Privacy Statement

Copyright © 1997-2003 BetaSoft Inc.


Ultimate Bulletin Board 5.45c