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
Scenario 2-->When Network connectivity is disabled the
Application screen gets greyed out in colour with no
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????
Answers were Sorted based on User's Feedback
Answer / kkk
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|
Answer / sanjaymadhav
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
|Is This Answer Correct ?||0 Yes||1 No|
When does ‘on click of button’ event gets triggered in the vbscript language?
Which object is used to work with the database in the vbscript language and what statement is used to create this object?
Explain the tristate constants in vbscript?
how to get date format from system locale..format means neither long nor shor... format from system locale. i need like your date is mm/dd/yyyy formate or mm-dd-yy or with time like that. how to get.
Mention what if you do not specify anything when you call a procedure?
How to Import data from a file (file is on the desktop) to the data table
How can you destroy an object in vbscript?
Hi I am having one folder with set of text files now i want to read and write that text files data into QTP. Any help plsss.
How will you get the last occurrence of one string within another string using vbscript?
I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..
How to open excel in vb script?
Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)