From: Sharon L. <lu...@us...> - 2006-02-15 19:41:23
|
STAF is an executable that is used to submit requests to STAF from the command line. It requires 3 parameters: STAF <Endpoint> <Service> <Request> <Endpoint> can be set to local, if you wish to make a request of the local machine, or the name of the remote machine of which you wish to make a request. <Service> is the name of the service to which you are submitting a request <Request> is the actual request string that you wish to submit to the service So, take for example the following STAF command to start a process on a remote machine: STAF machine1 PROCESS START SHELL COMMAND "C:/tests/TestA.exe" RETURNSTDOUT RETURNSTDERR WAIT This STAF command submits a request to remote machine machine1's PROCESS service to start a process so that the command willl be executed on the remote machine. By using the RETURNSTDOUT / RETURNSTDERR options (and there is a RETURNFILE option), you can specify if you want the contents of the standard output file (and standard error file) returned to the machine that submitted the request when the process completes. If you use the RETURNSTDOUT option without the STDOUT option, then stdout will be redirected to a temporary file. If you use the STDOUT option, then you can specify the file where stdout will be redirected to if you want to save the results on the remote machine. Note that detailed information about the PROCESS START request is provided in the STAF User's Guide, section 8.11 Process Service at http://staf.sourceforge.net/current/STAFUG.htm. You really need to read that section, as well as other sections like section 5.2 STAF, instead of posting these basic questions. I also recommend that you take the STAF/STAX education package which is intended to familiarize new users with the STAF and STAX tools, and to provide hands-on experience with the tools. See http://staf.sourceforge.net/education.php. Also, I recommend that you read the "Getting Started with STAF" document and "Getting Started with STAX" document provided via http://staf.sourceforge.net/docs.php. These help you get started using STAF and guides you through many common tasks that are performed when using STAF, including a detailed examination of a demo which shows how you can instrument and leverage STAF in your testing. The "Getting Started with STAX" document gets you started using STAX and guides you though many common tasks that are performed when using STAX, including getting started running a STAX job and creating a STAX XML document. -------------------------------------------------------------- Sharon Lucas IBM Austin, lu...@us... (512) 838-8347 or Tieline 678-8347 venkat <ven...@ya...> 02/15/2006 11:39 AM To sta...@li... cc Sharon Lucas/Austin/IBM@IBMUS Subject Re: [staf-users] Need help Hi, I am learning the STAF. I have the following scenario can anybody please throw some light on this one. I would like to run my Rational functional tester scripts on a remote machine. when I pass the following command does it run on the remote machine and after the execution does the results automatically saves on the remote machine or do we need to send some commands for that. Or could you please guide me where can I can this info. Thanks for your time. Thanks, Venkat Sharon Lucas <lu...@us...> wrote: See the STAF User's Guide, section 8.11 "Process Service" at http://staf.sourceforge.net/current/STAFUG.htm, for more inform! ation on the PROCESS service. Here's a STAF command line example of how to start a process on a remote machine. STAF <MachineHostName> PROCESS START SHELL COMMAND "C:/tests/TestA.exe" RETURNSTDOUT RETURNSTDERR WAIT replacing <MachineHostName> with the hostname of the remote machine where you want the process to run, and replacing the command value "C:/tests/TestA.exe" with the fully-qualified name of the executable that you want to run. -------------------------------------------------------------- Sharon Lucas IBM Austin, lu...@us... (512) 838-8347 or Tieline 678-8347 venkat <ven...@ya...> 02/13/2006 06:38 PM To Sharon Lucas/Austin/IBM@IBMUS cc Subject Re: [staf-users] Need help Thanks for your quick reply. Could you please let me know a simple example how to run my scripts on the other machines or could you please guide me where can I get that info. Thanks for your time. Thanks, Venkat Sharon Lucas <lu...@us...> wrote: Yes, you can use STAF/STAX to execute and distribute your scripts. What do you mean by "create the perfomance functional scripts"? Do you do this via an interactive GUI? If so, STAF is not an interactive GUI test tool. Note that you can also write testcases in shell scripts, Java, Perl, Tcl, or Python, or STAX jobs and STAF provides interfaces for these scripting/programming language to submit requests to STAF services. -------------------------------------------------------------- Sharon Lucas IBM Austin, lu...@us... (512) 838-8347 or Tieline 678-8347 venkat <ven...@ya...> 02/13/2006 05:26 PM To Sharon Lucas/Austin/IBM@IBMUS cc Subject Re: [staf-users] Need help Thanks for the quick reply. So we can use the STAF / STAX to execute and distribute our scripts but we are not able to create the performace functional scripts by STAF / STAX itself (like LoadRunner or Rational Functional Tester tools does scripting). Please let me know your thoughts on this one. Thanks for your time. Thanks, Venkat Sharon Lucas <lu...@us...> wrote: Yes, as said before, you can use STAF/STAX to run your Rational Functional Tester and LoadRunner executables on remote machines and return the results. In a STAX job, you can define a workload, e.g. run a sets ! of test sequentially but run these tests in parallel on machines A, B, a! nd C. You can specify what to do when a test fails, e.g. use the STAF LOG service to log the error, or terminate the job, or use the STAF Email service to send an email to people, etc. There are endless combinations of what you can do. -------------------------------------------------------------- Sharon Lucas IBM Austin, lu...@us... (512) 838-8347 or Tieline 678-8347 venkat <ven...@ya...> 02/13/2006 05:03 PM To Sharon Lucas/Austin/IBM@IBMUS cc Subject Re: [staf-users] Need help Thanks for the quick reply. We are using Rational Functional Tester and LoadRunner for our performace testing of Java / Web applications. In this scenario ! in any way can I use STAF or STAX to enhance my testing efforts(to integrate with this tools). Please let me know your thoughts on this one. Thanks for your time. Thanks, Venkat Sharon Lucas <lu...@us...> wrote: Not every automation tool h! as the same purpose, that's one of t! he reasons there are many different automation tools available. STAF does make it easier to create automated testcases and workloads. But STAF is not a GUI automation tool (though it can! invoke other GUI automation tools). Perhaps if you explained what it is you are trying to automate, we could better answer your questions. The Software Testing Automation Framework (STAF) is an open source, multi-platform, multi-language framework designed around the idea of reusable components, called services (such as process invocation, resource management, logging, and monitoring). STAF removes the tedium of building an automation infrastructure, thus enabling you to focus on building your automation solution. STAX is an execution engine which! can help you thoroughly automate the distribution, execution, and results analysis of your testcases. STAX builds on top of three existing technologies, STAF, XML, and Python, to place great automation power in the hands of testers. STAX also provides a pow! erful GUI monitoring application which allows you to interact with and monitor the progress of your jobs. Other STAF services are also provided to help you to create an end-to-end automation solution. Other STAF services include: Event, EventManager, Cron, Email, HTTP, NamedCounter, FSExt (File System EXTension), and Timer. -------------------------------------------------------------- Sharon Lucas IBM Austin, lu...@us... (512) 838-8347 or Tieline 678-8347 ! venkat <ven...@ya...> Sent by: sta...@li... 02/13/2006 04:13 PM To sta...@li... cc Subject [staf! -users] Need help Hi Friends, I am new to this STAF / STAX. I am just going through documentation. Could anybody please throw so! me light on the following: From my understanding and from the replies of the users in this forum STAF / STAX is not the tool like other automation tools(like WinRunner / Rati! onal Functional Tester / LoadRunner / QTP). From this STAF / STAX we can invoke the processes but we cannot use in place of other automation tools(Mercury or Rational tools). But I am confused at the following statement in the "Getting started with STAF" documentation "It is intended to make it easier to create automated testcases and workloads" Thanks in advance for all your help. Th! anks, Venkat Brings words and photos together (easily) with PhotoMail - it! 's f! ree and works with Yahoo! Mail. Re! lax. Yahoo! Mail virus scanning helps detect nasty viruses! Brings words and photos together (easily) with PhotoMail - it's free and works with Yahoo! Mail. Relax. Yahoo! Mail virus scanning helps detect nasty viruses! Relax. Yahoo! Mail virus scanning helps detect nasty viruses! |