Staf full name SoftwareTestingAutomation framework.TestFramework, which is called a service as a variety of functions. staf isOpen SourceSoftware.
The following describes the installation and configuration of staf/Stax.
I,WindowsInstall
1. Download The staf and Stax installation packages from the staf official website.WindowsAndLinuxThe installation package of the platform.
2. On Windows, double-click the staf installation package and follow the prompts to install it.
3. Create a services folder under the staf installation path (D:/programming/staf) and decompress the Stax installation package to the services folder.
4. Modify the staf. cfg file in D:/programming/staf/bin as follows:
# Turn on tracing of internal errors and deprecated options
Trace enable tracepoints "error deprecated"
# Enable TCP/IP connections
Interface TCP library staftcp
# Set Default Local Trust
Trust machine local: // Local Level 5
Trust machine 172.16.16.9 Level 5
# Default service Loader service
Serviceloader library stafdsls
Service Stax library jstaf execute/
{Staf/config/stafroot}/services/Stax. Jar option J2 =-xmx384m
Service event library jstaf execute/
{Staf/config/stafroot}/services/Stax/stafevent. Jar
Set maxqueuesize 10000
5. Restart stafproc and make sure it can be started correctly.
6. Run the following command in cmd to confirm that staf/Stax has been installed correctly:
Staf local Ping
Staf local service list
Staf local Stax help
II,LinuxInstall
The above article comes from the test software testing network http://www.ltesting.net/
Http://blog.csdn.net/iamqa/archive/2009/07/30/4391772.aspx from:
Note: In some Linux versions, you must first install the C library, otherwise staf will not start. Refer:
Http://rpm.pbone.net/index.php3/stat/4/idpl/2790009/com/libstdc++-3.4.5-2.i386.rpm.html
In Linux, staf has two installation modes: Download the bin package directly and download the tar package for installation. Take the installation of the TAR package as an example:
3.1. Unzip the installation package:
Tar xzvf STAF331-linux.tar.gz
3.2 decompress the package and a staf folder appears.
./Stafinst
By default, it is installed under/usr/local/staf. (Root permission may be required)
3.3 configure the environment variables and add the following code to the. bash_profile file under the username directory for running staf:
Path =/usr/local/staf/bin: $ path
Export path
LD_LIBRARY_PATH =/usr/local/staf/lib
Export LD_LIBRARY_PATH
Classpath =/usr/local/staf/lib/jstaf. jar:/usr/local/staf/samples/demo/stafdemo. Jar
Export classpath
Stafconvdir =/usr/local/staf/codePage
Export stafconvdir
Stafcodepage = latin_1
Export stafcodepage
Nohup/usr/local/staf/bin/stafproc>/usr/local/staf/stafproc. Out
3.4 modify the staf. cfg file under the/usr/local/staf/bin directory of staf to configure the trust relationship between machines. Add the IP address of the Windows Server to the config file. As follows:
# Set Default Local Trust
Trust machine local: // Local Level 5
Trust machine 10.2.5.100 Level 5
# Set Default Local Trust
Trust machine local: // Local Level 5
Trust machine 10.2.5.100 Level 5
3.5 start stafproc
/Usr/local/staf/bin/stafproc &
3.6 confirm that staf has been correctly installed:
Staf local service list