Reg invoking winrrunner

Larry Bates lbates at swamisoft.com
Tue Mar 9 12:48:53 EST 2004


Take a look at os.system() and win32process.CreateProcess.

Something like (not tested):

import os
pathtowinrunner=r"C:\Program Files\winrunner\winrunner.exe"
os.system(pathtowinrunner)

or if you want more control and/or a Window:

import win32process
STARTUPINFO=win32process.STARTUPINFO()
STARTUPINFO.dwX=0
STARTUPINFO.dwY=0
STARTUPINFO.dwXSize=800
STARTUPINFO.dwYSize=600
commandLine=r"C:\Program Files\winrunner\winrunner.exe"
processAttributes=None
threadAttributes=None
bInheritHandles=0
dwCreationFlags=0
newEnvironment=None   # Or new environment info if needed
currentDirectory=r"C:\Program Files\winrunner"

#
# Start the program
#
win32process.CreateProcess(execute_target,
                           commandLine,
                           processAttributes,
                           threadAttributes,
                           bInheritHandles,
                           dwCreationFlags,
                           newEnvironment,
                           currentDirectory,
                           STARTUPINFO)


-Larry


"Meenakshi Sundaram" <tms at srasys.co.in> wrote in message
news:mailman.176.1078843686.19534.python-list at python.org...
hi,
i want to call winrunner from python can any one help me

regards,
TMS





More information about the Python-list mailing list