staf 全稱software
testing
automation framework. 作為乙個軟體的自動
測試
框架,他以各種稱之為服務作為各種功能. staf是乙個開源
軟體.
下面就staf/stax的安裝配置作簡要的介紹.
一,
windows
下的安裝
和linux
平台的安裝包.
2.在windows平台上,雙擊staf的安裝包,按照提示進行安裝即可.
3.在staf的安裝路徑(d:/programming/staf)下建立乙個services資料夾,將stax的安裝包解壓到services資料夾下.
4.修改d:/programming/staf/bin中的staf.cfg檔案, 如下:
# turn on tracing of internal errors and deprecated options
trace enable tracepoints "error deprecated"
# enable tcp/ip connections
inte***ce 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\
/services/stax/stax.jar option j2=-xmx384m
service event library jstaf execute\
/services/stax/stafevent.jar
set maxqueuesize 10000
5.重新啟動stafproc,確認能正確啟動
6.在cmd下鍵入下列命令來確認staf/stax已經安裝正確:
staf local ping ping
staf local service list
staf local stax help
二,linux
下的安裝
以上文章**於領測軟體測試網
以下來自:
3.3 配置環境變數,將下列**加入到要執行staf的使用者名稱目錄下.bash_profile檔案裡:
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 修改staf安裝目錄/usr/local/staf/bin目錄下的staf.cfg檔案,配置機器間的信任關係。把windows機器的ip配置進config檔案。如下:
# 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 啟動stafproc
/usr/local/staf/bin/ stafproc &
3.6 確認staf已經安裝正確:
staf local service list
的安裝配置 Manjaro Linux安裝配置
安裝wmtools 1.解除安裝舊版本 sudo pacman r open vm tools git clone 3.執行指令碼進行安裝 cd vmware tools patches sudo patched open vm tools.sh 安裝vim sudo pacman s vim 更新...
python配置安裝 配置安裝
scrapy框架安裝 安裝請參考 scrapy安裝 windows安裝方式 1.先確定windows是否安裝了python c users administrator python python 2.7.13 v2.7.13 a06454b1afa1,dec 17 2016,20 53 40 msc...
Fedora 安裝配置
1,sudo 的配置 chmod w etc sudoers echo mirandam all all nopasswd all etc sudoers chmod w etc sudoers sudo 2,安裝源 產生新增第三方源 安裝驅動 sudo yum install kmod nvidi...