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
What are the uses of vb script?
Explain about .wsf files?
Explain about operator precedence in vb script?
What are events in the vbscript language?
What are the data types supported by vbscript?
What is difference between vbscript and vba?
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
Which operator is used to concatenate the 2 values in the vbscript language?
What is the purpose of folders object of scripting.filesystemobject class in vbscript?
Mention what is the use of option explicit in vbscript?
How will you convert a given number to long in vbscript?
Explain the asc function?
What are class variables?
Explain about adodb.stream class?
In what way program "hello world" you can write in vbscript?