You'll want to use STAF's PROCESS service, its START request, to run your 
Winrunner scripts on remote machines.  So, I recommend that you read 
section "8.12 Process Service", particularly subsection "8.12.2 Start" in 
the STAF User's Guide at 
"http://staf.sourceforge.net/current/STAFUG.htm#HDRPROCSRV.

You first need to determine the command that you would run from a command 
prompt (without STAF) to run your Winrunner script locally on your machine 
(without user interaction).  Once you know what command you need to run 
and have tested that out, you can use the STAF PROCESS START request to 
run that command locally or on a remote machine that's also running STAF 
and has given STAF trust level 5 to the machine submitting the PROCESS 
START request.  You'll probably want to first submit the PROCESS START 
request via the command line using the STAF executable.  For example:

C:\>STAF machine PROCESS START SHELL COMMAND "Your winrunner command" 
RETURNSTDOUT STDERRTOSTDOUT WAIT

There are additional options for a PROCESS START request you may want to 
use such as WORKDIR (if you the command to be run with a particular 
working directory).  Remember that the command is being run in the 
environment in which STAFProc was started on the remote machine you 
specify.  If you need any additional environment variables set, you can 
use the ENV option(s) on your PROCESS START request.

Once you have the PROCESS START request working using the STAF executable 
from a command prompt, you can submit the PROCESS START request via a 
program (e.g. Java, C++, Perl, Python, Tcl, or a STAX job) if you'd like. 

Note that if you want to copy your Winrunner script to your remote 
machine, you can use the STAF FS (File System) service's COPY request to 
do this before submitting the PROCESS START reuqest.

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




Vinay R <vinay.ravishan...@gmail.com> 
02/22/2009 07:22 AM

To
staf-users@lists.sourceforge.net
cc

Subject
[staf-users] STAF support with Winrunner






Hi Folks,

We have a set of 6 machines which need to be intergrated in a framework 
for running regression we use Winrunner as the automation tool for our 
testing. Could you experts please provide tips as to how to launch 
Winrunner scripts in remote machines using STAF. I have installed STAF in 
all machines, and this is the first time we are using it. Though the user 
guide speaks about this, but it would be greatly time saving if you people 
could pin point us to the correct procedure.

Looking forward to interacting with you folks a lot more.

Thanks,
Vinay
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, 
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the 
Enterprise
-Strategies to boost innovation and cut costs with open source 
participation
-Receive a $600 discount off the registration fee with the source code: 
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to