write a qtp script to count the number of minimized windows
using automation object model
set qtp=createobject("quicktest.appalication")
qtp.launch
qtp.visible=true
if window= Minimized then
count=count+1
msgbox count
| Is This Answer Correct ? | 1 Yes | 5 No |
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????
What is the purpose of drive object of scripting.filesystemobject class in vbscript?
Dear All, I am geting below IE error whilie executing the QTP scripts in Batch mode "Internet Explorer has encountered a problem and needs to close. We are sorry for the inconvenience." can any one suggest me how to resolve this issue . Thanks Balaji
How do you get the value of a combo box in Javascript?
Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?
What are the uses of vb script?
How will you get the smallest subscript of an array in vbscript?
How to pass argument by reference to a function in vbscript?
Inorder to avoid Message box while writing script which alternative method can be used?
Explain about tristate constants in vbscript?
In QTP how to insert a data base check point for web based application and simultaneous link to code in expert veiw. hw to retrieve a data(single coulumn from server) that matches with inserted value manually or exported from excel sheet.
Write a program to resize an array of 5 elements to 4 elements and display all the elements.