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 let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.
What is the event handling in vbscript?
hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?
What is the difference between vb debugger and the script debugger?
How will you compare two strings in vbscript?
what is used of Property........End Property loop ? how to write the script for it?
Capture the Unique label changes on google home page for I am feeling lucky button and save those label changes to Notepad Note: Using QTP
What are the environments supported by vbscript language?
What is loose binding? Why is it not a good practice to use it?
Out of the different type of operators, which are evaluated first and last in the vbscript language?
write any ttest cases using check points and parameterization
Does VB/Win make standalone .EXE files?
i have a problem with this error(this error related edit and
delete button,when i click this button in datagrid..i will
get this error)"Invalid postback or callback argument.
Event validation is enabled using
i need to sort the data using qtp script for this how i need to write a qtp script
I need to get some data from data base and store this
(retrieved) data in a excel sheet using VB script in QTP9.0
I have created connection for data base
I have created as excels sheet by using
Set XL=CreateObject("Excel.Application")
XLworksheet.cells(1,1).value= rs.fields.item("<