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 / sanjaymadhav

Hi

Use Recovery Scenario to overcome this problem...

There are four Types of triggers are there
1. Pop-Up Window
2. Object State
3. Test Run Error
4. Application Crash

You can acces Recovery scenario Thru Tools --> Recovery
Scenario...........

Regards
Sanjay

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the uses of vb script?

574


Explain about .wsf files?

607


Explain about operator precedence in vb script?

559


What are events in the vbscript language?

539


What are the data types supported by vbscript?

567






What is difference between vbscript and vba?

594


Hi, Can anyone please send me vb script examples to practice vb and also material to learn vb scripting in QTP? my email id : hareen_11@yahoo.com

1805


Which operator is used to concatenate the 2 values in the vbscript language?

543


What is the purpose of folders object of scripting.filesystemobject class in vbscript?

849


Mention what is the use of option explicit in vbscript?

533


How will you convert a given number to long in vbscript?

479


Explain the asc function?

496


What are class variables?

604


Explain about adodb.stream class?

572


In what way program "hello world" you can write in vbscript?

622