|
Author
|
Topic: Handling Execption/errors
|
WinRunner Moderator
   
Posts: 9845 Registered: Mar 2001
|
posted 07-22-2002 10:28 AM
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 ---------------------------------

|
WinRunner Moderator
   
Posts: 9845 Registered: Mar 2001
|
posted 07-22-2002 09:26 PM
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.

|
cranem451 Guru
   
Posts: 395 Registered: Mar 2002
|
posted 07-23-2002 12:31 AM
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

|
WinRunner Moderator
   
Posts: 9845 Registered: Mar 2001
|
posted 07-23-2002 12:58 AM
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

|
WinRunner Moderator
   
Posts: 9845 Registered: Mar 2001
|
posted 07-23-2002 09:42 AM
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
__________________________________________________

|
d4697588 Member
Posts: 23 Registered: Jun 2002
|
posted 07-23-2002 09:45 AM
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|**| -->

|
WinRunner Moderator
   
Posts: 9845 Registered: Mar 2001
|
posted 07-23-2002 08:51 PM
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.

|
d4697588 Member
Posts: 23 Registered: Jun 2002
|
posted 07-24-2002 09:06 AM
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

|