how do close the task manager through QTP?
Answers were Sorted based on User's Feedback
Answer / deven mehta
First you should add the Task Manager dialog box in the
object repository. This is not a modal dialog box so you
can add it to repository easily.Then use following simple
code.
If Dialog("Windows Task Manager").Exist Then
Dialog("Windows Task Manager").Close
Reporter.ReportEvent micPass "Task Manager" "Successfully
closed task
manager"
Else
Reporter.ReportEvent micFail "Task Manager" "Task Manager
is not open"
End If
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / 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 |
Hi, It is HR question. What are the qualities you like and dislike in your Project Manager?
Explain the new feature of UFT regarding the export of test results?
Why do we go for Qtp? What are the advantages of qtp? Diff between winrunner and Qtp?
Write Descriptiv prg 4 login logn....txt bx password---txt bx ok---btn
How does u create new test sets in TD?
Will down time for server and content maintenance/upgrades be allowed? how much?
How to Import data from a ".xls" file to Data table during Runtime.
What are table and db checkpoints?
How to find local host name using QTP?
How to analyzing Test Results using QTP?
can u expect, major bugs in NET BANKING Project? Modules Transaction Module, Customer Relation Module.
Explain quicktest professional testing process?