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 |
Write a user defined function to count the no. of buttons existed in a webpage ? i dont want to use descriptive.create ()
i'm using QTP 8.2, How should i select(browse) object repository from desktop(or from local local drives like C:\,D:\)?. Note:- object repository to select(browse) is been sent by some other person who is using QTP 9.0
for example u can take ebay or plifcart online shoping web application--------- write acode in vbscript in qtp---- search box and write (iphone6)and click on go button then opened diff prise iphones in next page but u can select 30,000 to 90,000 list pls write code?
2 Answers FFASVA, Genpact, Wipro,
write the code to reverse a string without using Strrev built in function.
How can I pass values from one action to another in QTP ?
What is the extension of script and object repository files?
How will you find the current time of the remote machine using QTP script?
what is Supplemental Objects ?
What is keyword driven Testing Framework. Anybody can explain it in details... Pls anybody can give the answer.. Thanks in advance...
What is Terminal Emulators”? Why we used in QTP.? How he works on QTP.
In QTP, What is Global action and Local action?
hi in real time who will execute the qtp test scripts? my faculty said, in a companty automation testers are written the test scripts and manual testers are execute the test scripts...IS IT RIGHT OR NOT?