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

Mention what is byref and byval parameters in vbscript?

579


Explain about the extension .hta?

625


What is difference between vbscript and vba?

612


how to comvert 120 into one hunderd twenty rupees only and vice varsa

1805


If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?

535






How will you get the exponent of the given number in vbscript?

561


Mention how to access array data?

513


Hi Friends my Question is very simple,in Manual testing when we click on a hyper link it directs us to the relavent page or it re-directs us to the current page,so there we can easily write testcase but same thing if we do in automation script using QTP & need to generate report using Reporter.report event how we will do it?thanks in advance...

1656


Hai this is sheik, i want to learn VB scripts for web application pls guide me what are all basic things need to know to learn VB scripts in web application.

1433


How to pass argument by reference to a function in vbscript?

538


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

653


what is the differance between BYVAL,BYREF?

1770


what is diff between static and dynaic arrys?

1588


How regexp.execute method works?

591


Which operator can be used to change the value of the operand or change the state of the condition?

580