how to write code: to check whether the window of an
Application Under Test exist or not . plz give with example
Answers were Sorted based on User's Feedback
Answer / saleh
I can show you with an example:
Dialog("Login").Exist
if it returns true then you can say that the above object
exists else not. For QTP you can write as below:
msgbox Dialog("Login").Exist
if it is true then ...........
| Is This Answer Correct ? | 2 Yes | 1 No |
How to insert snapshot during manual scripting in QTP?
How to capture a runtime error in vbscript?
Explain the .wsf files?
How to get 120 using 5 zeroes, you can use any operator(+, *, /...) in qtp.
Find Out Length of an array without using Ubound?
best training centre in bangalore
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????
give me any information abou vb script books learn quckly
Mention what is the use of option explicit in vbscript?
What is the difference between for loop and while loop?
What is the scope of a constant declared using public?
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)