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 |
How do you find out whether the string is Numeric or Alpha numenric.Suppose..'QTP is an automation testing tool 12345' How should I know it is alphanumeric.Can any one please write the code for this
How to test login module with different username and password by using data driven testing in QTP?
what is the code in QTP to take screen shot?
how you test broken link using the automated tool QTP ?
What is the use of low level recording? How does it useful?
what is the frame work your using in automation ?
I am using environment variable xml to give credenatials for login into unix. Is there any way we cam mask the password in the xml?
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..
Do you support automated testing? Why?
Waht is Test Report , What it consists?
What is Associate Repository in QTP 9.2 ?
Regular expressions..... Actually how to use this and what is the exact syntax and can anybody can help me out this with example.is there any docs pls send to my mailid rvreddy82@gmail.com