write a qtp script to count the number of minimized windows

Answer Posted / sadashiv byagi

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention how to assign a date value to a variable?

581


write a program to display configuration of a local system with the help of vb script.

1681


What is sql loader? Explain the files used by sql loader to load file?

614


How to Import data from a file (file is on the desktop) to the data table

1550


Why is error handling required?

563






Which operator can be used to change the value of the operand or change the state of the condition?

568


What is the difference between javascript and vbscript?

532


How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...

2897


I have attended Anovatek Software QTP interview. They will give us computer and one web based application with QTP. We have to automate some records (already updated records or new records) using QTP Data driven testing. But we should use for loop? Can any one know how to do data driven testing using For loop?

1541


Mention when to use function procedures and what are its characteristics?

621


1) How can we use VB script in testing the application? 2) What all are the things(Software application to be installed in PC) we need to learn VBscript?

3551


Mention the rules for using option explicit statement?

476


How will you release the memory acquired by an array variable in vbscript?

738


How will you get a combined string from array of string in vbscript?

544


What are the advantages of vbscript?

636