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 |
i can done the project with QTP in that time i can say how many members in my team size?
plz explain QTP real time work( Means where you store scripts and how u access scripts next day? where those activities we are maintaining, If By usig VSS how the process in going on , plz explain briefly?
Tell me the situations where we will use Data Driven?
Is it possible to convert QTP scripts to Silk scripts?
How to customize qtp?
What is the difference between QTP 8.2 and QTP 9.2
what is the mail use of frame work(with detail). architecture for keyword driven frame work
what are the critical test cases in crm? tell me atleast 5 critical test cases? what are the critical bug u find out while testing crm domain?
Hi All , How can we decicde for pariticular frame(DataDriven or Keword Driven)in Project? Thanks Balaji
what are the different u notice in betweem QTP version 8.2 and 9.2 and what is new in QTP9.2
Write the code for select the 5 values from drop down list. drop down list having the 10 values.
There is web page with the webtable,this contains some data, how do you manipulate the data.