STAF 自动化测试框架学习积累

1. 拷贝文件夹

staf 192.168.8.101 fs copy DIRECTORY \\192.168.8.8\Software\Audio\STTest02 TODIRECTORY c:\tempfiles\STTest02 tomachine 192.168.8.101 RECURSE KEEPEMPTYDIRECTORIES

 

2.执行 commandline中命令(运行程序)

staf 192.168.8.101 process start command "c:\Software\SilkTest Runner V1.0.exe"

3. STAF 设置 trust level

 

 # Set default local trust

trust machine local://local level 5

trust machine shcheersli level 5

注意:  shcheersli  必须是 你启动STAF启动时显示计算机的名称。 

4. 并行模式

http://staf.sourceforge.net/current/STAX/staxug.html#Header_Parallel

5. STAF 发邮件功能

(1) 下载STAFEmail.jar包,将其放在c:/staf/services/mail/STAFEmail.jar 目录下

(2) 配置STAF.cfg文件: 在STAF.cfg文件最后一行,添加如下脚本。

SERVICE email LIBRARY JSTAF EXECUTE c:/staf/services/mail/STAFEmail.jar PARMS "MAILSERVER Hqmail4.corp.aspentech.com"

(3) 在commandline 运行:

STAF local EMAIL SEND TO [email protected] message "Test XYZ completed successfully." SUBJECT "Test XYX: Success"

返回:

Response
--------

邮件发送成功。呵呵~~~

更多STAF发邮件操作参考: http://staf.sourceforge.net/current/email.html





你可能感兴趣的:(STAF 自动化测试框架学习积累)