if there r 10 windows open in QTP write a command to close
all 10 windows at a time ?
Answer Posted / venkat
3 menthods are these to close browsers
1) SystemUtil.CloseProcessByName "iexplorer.exe"
2) Do While Browser("creationtime:=0").Exist
Browser("creationtime:=0").Close
Loop
3)Set objWMIService =GetObject"winmgmts:\\.\root\cimv2")
Set colProcess = objWMIService.ExecQuery("SELECT * FROM
Win32_Process")
For Each objProcess In colProcess
If UCase(objProcess.Name) = "IEXPLORE.EXE"
objProcess.Terminate()
End If
Next
Regards,
Venkat
9986635974
bangalore
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Hi Friends, Im planning to do certifcation in mercury Automation Tool QTP.But I Didnt get any clear details regarding course syllabus, fees, where to approach, and which certification would be useful for the experienced testers? can any one send me the details?
How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?
I want to know can we integrate visual source safe tool with QTP and QC for our version controlling process? WE know QTP and QC 10.0 version is having the version control inbuilt in it but I want to know the merits and demerits of the inbuilt version control tool and the visual source safe tool using QTP and QC.
How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?
How to find the length of the string in qtp?
1 Folders in VSS 2 In navigation script there are 100 script i want to run first 50 and 37th script also not needed to run how to do this 3 What is navigation script,Driver script, business script what we are loaded in this script 4 use of resource tab 5 Difference between verification and validation give real scenario example 6 file scripting object when to use it 7 what are the problems you are faced while testing web application 8 difference between expert view and keyword view 9 difference between QTP 8.2 and QTP 9.2 navigation frame work please answer these questions from real time working people as early as possible
what is run action?
What is the Difference between copy to action and call to action?
Thanks....But can u tell me how i use the QTP for GIS with one Example...
What are main panes available in qtp test browser?
Differences between text and test area checkpoints?
How we can import data from database?
How to get the particular property value?
Call to copy of an action and call to existing action… i know the diff but in real project how to use..? i want live scenario.pls help me..
What is the file extension of the code file in qtp?