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
what is the diff between manual test plan document and automation test plan doc.can u explain indetail.
I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?
write the vb script for call to new action in qtp?
what function you write to do database testing with the help of qtp?
Explain how Does Run time data (Parameterization) is handled in QTP?
I have developed and executed a script successfully, and saved the same to QC. When I tried to execute the script from QC, the script is not executing. What are the possible reasons?”
I want to capture data(using keyword) from msdos application using QTP?... Below is little work i could do on it... /* Set app=CreateObject("Wscript.shell") SystemUtil.run ("C:\Users\Agent\Desktop\pumpsim\PUMPSIM.EXE") Window(“PUMPSIM.EXE”).Activate wait(3) app.sendkeys "N" */ Thanks in advance...!!!
In qtp, how you can get the last character from a string?
1. wat are the main diff b/w QTP 8.0 AND QTP 9.2 ( not user interface) 2. wat is the meaning of Keyword in keyword driven frame work? 3. how u will handle the unknown errors while exucution. (not recovery scenario)
wht is Manual Testing Frame work. Pls anybody can give appropriate answers
please post the interview questions for QA position in FACTSET
what are all the fileds present in object repository?
How to associate shared object repository to test in qtp?
give me an example where u used good judgement and logic in solving a problem
Why we use QTP ,We can use other tools like WR OrSilktest What r the options in Qtp that WR and Swilktest Does not have.