I am running a windows based application.While running the
script on QTP ,The Application pop-up an Error Message
as "object Disabled" in two different scenarios
Scenario 1-->The Application pop-up up a Message for Max
Session Reached(as the application is set to hold 2 session
and if if crosses the pre-defined limit then the error
message pop-up)
Scenario 2-->When Network connectivity is disabled the
Application screen gets greyed out in colour with no
operation possible.
Now through Exception handling features in QTP ,we need to
do the following
For Scenarion 1-->Through Exception handling we need to
just accept the Message pop-up in the Application and and
resume with the call function as is

for Scenario 2--> Through Exception Handling featutes on
QTP we need to shut down the client , restart the client
and resume the call functions as it is

Note: The Application returns an Error Message as "object
disabled" in both the cases i.e for pop-up message and when
the Apllication getting greyed out due to Network failure

how can we enhance the script in such a way that for the
same error message retured by the application in two
different and how to handle them????

Answer Posted / kkk

Hi
Handily recovery scenarios in QTP so many ways is there
Recovery scenario Manger (exte:qrs)
a) Popup recovery
b) Application cash recovery
c) Object status exceptions
d) Test runner error exceptions
2.) Run time setting is a one error handling
3) On error resume next step is a one error handling
a) on error resume step no 0
4) Using the descript is final recovery scenario

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?

555


Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?

582


What are the different types of loops available in the vbscript language?

536


How will you format a number in percetage format in vbscript?

595


Hi anyone Can Send Solution to the Question wt m posting now Prepare Script for the Bellow Scenario? Login to Gmail Page Open Inbox check Mails save them in a Folder

1578






What are keywords in the vbscript language?

529


Mention what are the rules to name variable in vbscript?

540


Explain about the asc function?

609


Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?

3040


Out of the different type of operators, which are evaluated first and last in the vbscript language?

569


Mention what is vbscript procedures?

545


If else for do while select in vb script?

647


What are the uses of vb script?

589


Explain sga memory structures?

583


In html file what is an ideal position to include vbscript?

818