Introduction
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. The STAF framework provides the foundation upon which to build higher level solutions, and provides a pluggable approach supported across a large variety of platforms and languages.Download latest version of STAF.
About STAF
STAF can be leveraged to help solve common industry problems, such as more frequent product cycles, less preparation time, reduced testing time, more platform choices, more programming language choices, and increased National Language requirements. STAF can help in these areas since it is a proven and mature technology, promotes automation and reuse, has broad platform and language support, and provides a common infrastructure across teams. STAF services are also provided to help you to create an end-to-end automation solution. By using these services in your test cases and automated solutions, you can develop more robust, dynamic test cases and test environments.STAF Commands samples
Description | Command | Details |
---|---|---|
Display STAF version | staf local misc version | Self explanatory |
Display detailed local system information | staf local var list | Outputs details about the system: RAM, OS version, architecture, variables, et cetera. |
Display STAF trust levels | staf local trust list | Outputs a list of other hosts, networks and/or protocols that the local STAF server trusts to execute STAF commands. |
Grant STAF trust level | staf local trust set machine tcp://10.31.*.* level 5 | Local machine grants the highest permission level 5 to all machines with STAF installed on the subnet 10.31.x.x |
Revoke STAF trust level | staf local trust delete machine tcp://10.31.*.* | Local machine revokes all permissions from hosts with STAF installed located on the subnet 10.31.x.x |
Copy remote files/directories | staf neptune fs copy file "C:\file.txt" todirectory /opt staf netra10ga fs copy directory /opt/scripts todirectory /opt/scripts | Copy the file located in "C:\file.txt" from the host “neptune” to local directory “/opt” Copy the directory “/opt/scripts” with its content to local machine’s “/opt/scripts”. Creates the directory if it does not exist. |
Execute commands remotely | staf mercury process start command "\\\share\inc\Scripts\AutoIT\doit.exe" | Launches program “doit.exe” on the host “mercury” from a UNC share located on host “share” |
STAF startup | nohup /usr/local/staf/bin/STAFProc& | Universal command across all OS, to start STAF server daemon. Or use the following OS-specific commands: • HP /etc/rc.config.d/rc.staf start • ESX, RH service staf start • AIX /etc/rc.staf start • SUSE /etc/init.d/staf start • MAC /Library/StartupItems/STAF/STAF start • Solaris /etc/rc2.d/S99staf start |
STAF stop | staf local shutdown shutdown | Universal command across all OS, to stop the STAF server daemon. |