What are the exceptions in winrunner? Explain the exceptions with an example

Showing Answers 1 - 8 of 8 Answers

Parvathi.Putcha

  • Mar 19th, 2006
 

For Desktop Applications WinRunner Supports 3 Types of Exceptions i.e.,

1.TSL--> Record Time Errors

2.Object-->Expected And Actual object is same

3.Pop Up-->Unwanted Windows Errors

  Was this answer useful?  Yes

parvathi.putcha

  • Mar 21st, 2006
 

Win Runner Support 3 Types of Exceptions i.e.,

1.TSL 2.Object 3.Pop-Up

TSL--->These exceptions are raised When a specified TSL statements  Return

a Specified Error Code.

Object---> These Exception are raised when a specified  object is equal to Our Expected object.

Pop-up--->These Exception are raised when a unwanted windows to skip out .

Parvathi,

Test Engineer,

SLG Technologies Pvt.Ltd.,Hyderabad.

  Was this answer useful?  Yes

Jahaara

  • Mar 22nd, 2006
 

There are 4 kinds of Exceptions that can be handled, in WinRunner:

1) PopupException - (Handles unexpected popups during the execution)

2) TSL Exception - (Responds to specific error codes returned by WinRunner)

3) Object Exception - (Handles unexpected changes occuring to the objects in AUT)

4) UAE(UnRecoverable Application Errors) - Handling situations as division by zero or null pointers using the function : UAE_set_trap(directive);

  Was this answer useful?  Yes

Surajeet Anand

  • Mar 24th, 2006
 

Hi,

      In which version of WinR has "UAE(UnRecoverable Application Errors)" ?

  Was this answer useful?  Yes

Exception Handling:- To prevent unexpected events.

this is 3 types

 PopupException - Handles unexpected popups during the execution

 TSL Exception - Responds to specific error codes returned by WinRunner

Object Exception - Handles unexpected changes occuring to the objects in AUT

 

Thanks

Srinivasulu.chittoor

  Was this answer useful?  Yes

sathish.sys

  • May 29th, 2006
 

Hi Rekha,

     Exception is nothing but unwanted events.

     Ex: Printer iis out of paper.

1)TSL EXception.

    Consider  for the set_window function.

    Every set_win function  contains time parameter.

    You remove that time parameter & run the script. Ecxeption will raise.

    Add the TSL exception it will generate function skeleton.

    Cut it & paste it into compiled module, within function put one wait(10) function.

    In main script, below the set_window function you have to use one more  set_window,bcoz once the exception is raised control will be passed to compiled module & when it returns from the Compiled module if you did not use one more set_window function it will unable to recognize the objects.

    It is bit lenthy process. If you do it carefully you will understand.

    I hope this is help you.

    If you still have problem, you can mail me at sathish.sys@gmail.com .

Regards

Sathish  

  Was this answer useful?  Yes

senthil Kumar P

  • Sep 13th, 2006
 

In win runner, three types of exceptions are available.

 

1)      simple exceptions

2)      compound exceptions

3)      web exception

 

 Sub division available in these categories

 

Simple exceptions

 

1)      Pop up exceptions (whenever the pop up window disturbs test execution, it will handle it)

2)      TSL exceptions(whenever the error in TSL statements, it will handle it)

3)      Object exceptions (whenever the object properties changes from expected ,it will handle it)

 

Compound exceptions (only one available in this category)

           

     Crash exceptions

 

Web exceptions

 

 Here I thing three types of exceptions available. I am not sure only three types are                    

 available)

 

1)      web popup exception

2)      web object exceptions

3)      web TSL  exception ( I am not abt it)

 

 

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions