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????

Answers were Sorted based on User's Feedback



I am running a windows based application.While running the script on QTP ,The Application pop-up a..

Answer / kkk

Hi
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

I am running a windows based application.While running the script on QTP ,The Application pop-up a..

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

More VB Script Interview Questions

Explain vbscript in detail?

0 Answers  


how to write a vb script in QTP for yahoo registration form, i want to check the performance also like performance test, stress, load test like that.

0 Answers  


How do i automate a website www.flyashx.com without having any test cases witin a week time.

0 Answers   Zensar,


How to get the background color of a weblist?

3 Answers   Accenture,


What is the use of the formatdatetime function in the vbscript language?

0 Answers  


wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......

0 Answers  


Explain about operator precedence in vb script?

0 Answers  


What is wrong with the following code: <%afname="header.asp"%><!?#include file ="<%=afname%>"?>

1 Answers  


How to remove the spaces in a string Ex: "Welcome to QTPWorld" ?

10 Answers   Cap Gemini, CTS,


Please Example programms on vbscript 1)writing functions and calling functions

2 Answers   CIL, TCS,


Hi, Anybody could tell me What is the script for Reverse of Given number. Ex:236--632. Thanks in Advance..

10 Answers   Amazon, CSC,


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.

0 Answers  


Categories