Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how do close the task manager through QTP?

Answers were Sorted based on User's Feedback



how do close the task manager through QTP?..

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

how do close the task manager through QTP?..

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

Post New Answer

More QTP Interview Questions

Hi, It is HR question. What are the qualities you like and dislike in your Project Manager?

2 Answers   TCS,


Explain the new feature of UFT regarding the export of test results?

0 Answers  


Why do we go for Qtp? What are the advantages of qtp? Diff between winrunner and Qtp?

3 Answers   Symphony,


Write Descriptiv prg 4 login logn....txt bx password---txt bx ok---btn

2 Answers   Hewitt,


How does u create new test sets in TD?

1 Answers   Crea,


Will down time for server and content maintenance/upgrades be allowed? how much?

0 Answers  


How to Import data from a ".xls" file to Data table during Runtime.

10 Answers   BirlaSoft,


What are table and db checkpoints?

0 Answers  


How to find local host name using QTP?

6 Answers  


How to analyzing Test Results using QTP?

1 Answers  


can u expect, major bugs in NET BANKING Project? Modules Transaction Module, Customer Relation Module.

2 Answers  


Explain quicktest professional testing process?

0 Answers  


Categories