Welcome To Automation Testing

Before starting with tips of automation of SAP using QTP Let me give a small introduction of SAP and QTP.

SAP stands for System Applications and Products. It is the name of both the online financial and

Administrative software and the company that developed it. SAP is made up of individual modules that perform various organizational system tasks.



Quick Test Professional (QTP) is an automated functional Graphical User Interface (GUI) testing tool that allows the automation of user actions on a web or client based computer application.

It is primarily used for functional regression test automation. QTP uses a scripting language built on top of VBScript to specify the test procedure, and to manipulate the objects and controls of the application under test. It supports many applications through the support of add-ins.



We will be using SAP add-in with QTP to work on the SAP automation.

Monday, 6 August 2012

Close running Process from task manager


Below function will close running process from task manager.


Function CloseProcess(strProgramName)
Dim objShell
Set objShell = CreateObject("WScript.Shell")
objShell.Run "TASKKILL /F /IM " & strProgramName
Set objShell = Nothing
End Function


Taskkill is a commancd which ends one or more tasks or processes. Processes can be killed by process ID or image name.

"TASKKILL /F /IM " & strProgramName

/F :: Forcefully closing the application
/IM :: Image Name. Nothing but the visible exe file in task manager. Since we dont know the process id, i hv used Image name to kill the process. strProgramName contains the .exe file name which has to be killed.



To close browser say IE, just call the function as

Call CloseProcess("iexplorer.exe")'Closes IE
Call CloseProcess("Excel.exe") ''Closes excel.


1 comment:


  1. Nice information about the load testing!!! I prefer Loadrunner automation testing tool to validate the performance of software application/system under actual load.
    Regards:
    Loadrunner classes in Chennai |
    Best qtp training institute in Chennai

    ReplyDelete