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
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 |
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 |
How to map test cases with Automation script? Please explain in details.With example Thanks for your co-operation(In Advance)
How can you create a file object to work with the files in the vbscript language?
in qtp we ve datatable look like excel ,if we want to extract data from excel which saved in my documet how can i get that in datatable using vb script
what types of bugs will we find out in banking projects for automation testing?
0 Answers Napier Healthcare, TCS,
My Salary is 65000. How Much TDS I have to pay
HI how can handle dynamic image through vb script example we have to create email id fill the edit box(these latters change wrong password) i am wating your answer
Difference between dim,public and private variables in vb script?
Which keyword is used to declare a variable in the vbscript language?
What are the disadvantages of vbscript?
Could Anybody Please tell me What is the script for Find 3rd Largest element in the Array without using a SORT function int Find(int arr[], int size); Thanks in Advance..
How to write VB Script for selecting a particular row in a WebTable?
Hi everybady, i have faced few Qns in one of i attended interview, please help me out with these below Qns. 1. how to join values without using join function? 2. how to compare values without using String compare function? 3. input is Bangalore, but i need output like this below format, what is function to use and get this outcome B A N G A L o R E 4. Input is "CapGemini" but uotput should be like this "inimeGpaC" 5. Input is 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 Can someone let me know results of this Qns, please. Thanks.