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
filter the array values without using filter function?
Explain the adodb.stream class?
How to write a VBscript for web page performance test i need a code send if any knows the code If any knows VBScript book plz send to me the link to my mail plz
Hi Friends Rajendra this is bhavani prasad, iam working Hyderabad. i faced one problem with qtp recording mode i.e in my application there is 100 records first we click the first record that record will be jumped to next session and 99 records will there stop the recording and run the same script .Run this script qtp does not identify the records. So plz tell me what is the solution.
What are class variables?
What is the use of the instr function?
give me any information abou vb script books learn quckly
In what way program "hello world" you can write in vbscript?
Which in-built function is used to format the number in the vbscript language?
Description.Create
How to create a cookie using vbscript?
For a webbased application:- what should be code in expert veiw, for retrieving a single column name "username" from a server and checking whether exported "username" from datatable doesn't exist in server. suppose i have saved in excelsheet a username="gayatri" , which is exported, then checked for whether this username "gayatri" exist in server database or not ? if exist then allow to enter new username, which should be again checked for in loop , or else come out of loop and enter a distinct "username". plz let me have this answer in my id gayatrisahooin@hotmail.com
What are the 2 ways to pass a value to the function?
Mention what are the rules to name variable in vbscript?
How are arrays declared in the vbscript language?