Answer Posted / rajni singh
Ucan use below function to kill excel object from task
manager:
'===========================================================
====================
Sub KillExcel ()
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer
& "\root\cimv2")
Set colProcesses = objWMIService.ExecQuery ("Select * from
Win32_Process Where Name ='Excel.exe'")
For Each objProcess in colProcesses
objProcess.Terminate()
Next
End Sub
'===========================================================
=====================
call KillExcel()
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
how to create flat file datasubmission in qtp
How can I change object description or check point values in qtp?
write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object..
Explain different recording modes?
How many types of parameters are available in quicktest professional?
How do know the number of browsers opened?
How is UFT 11.5 version different from UFT 12.0?
How many add-ins comes by default with qtp?
Explain in brief about the qtp automation object model (aom).
How to break the object spy ?
I am a new tester that needs to create an automatic script involving security questions. On a webpage I need to select a security question(which are random) from a drop down menu, and then input the answer as the last word from the security question. I have the script set-up to automatically select the first security question from the drop down. The problem I am having is trying to insert the security answer. How do I insert the security answer based on the selection from the security question?
How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?
Explain different types of action in qtp?
What are the technologies supported by qtp?
What is Port testing. Whhen will you perform?