本文只针对初学者。所以安装过程就不过多废话了,免得徒增困扰。
您可以到CSDM的下载中寻找“RRAFS 全套安装包”,那里我已经打包了所有需要的安装文件。您就不必到处下载去了。
安装RRAFS12345
步骤1:安装Rational Robot:自己找去
步骤2:安装JRE:http://www.oracle.com/technetwork/java/javase/downloads/index.html 如果电脑上已经安装了,直接到下一步。
步骤3:安装 Windows Scripting Host 5.6 http://www.microsoft.com/downloads/details.aspx?FamilyID=376d98b6-67cf-4473-9b7d-f635292a286f&displaylang=zh-cn
步骤4:安装RRAFS
1) unzip最新版本的RRAFS安装文件http://sourceforge.net/projects/safsdev/files/
2) 把解压后的所有文件都拷贝到Rational的安装目录sqabas32中,一般为:"C:/Program Files/Rational/Rational Test/sqabas32",注意,是所有文件,而不是整个目录。
3) 进入上一步中的C:/Program Files/Rational/Rational Test/sqabas32目录,运行SetupRRAFS.wsf文件,进行RRAFS的安装。
4) 完成后,会提示进行STAF的安装,推荐进行STAF的安装,即便可能用不上。
步骤5:Rational Robot 配置要求
1)Rational Robot 配置要求1:On Script Command Failure: Continue Execution
2)Rational Robot 配置要求2:On Verification Point Failure: Continue Execution
3)Rational Robot 配置要求3:Output Playback Results to Log should be enabled.
4)Rational Robot 配置要求4:On Failure to remove Unexpected Active Window: Continue Running
5)Rational Robot 推荐配置要求1:Delay between Commands (milliseconds): 0
6)Rational Robot 推荐配置要求2:Delay between Keystrokes (milliseconds): 0
7)Rational Robot 推荐配置要求3:Diagnostics--Timeout Delay Multiplier: 1
8)Rational Robot 推荐配置要求4:Detect Unexpected Active Window: Disabled
9) Rational Robot 推荐配置要求5:Disable Unnecessary Extensions, Robot's Tools->Extension Manager dialog
10)在Robot项目库中创建必须的几个文件夹
[Project]/Datapool/Bench
[Project]/Datapool/Dif
[Project]/Datapool/Logs
[Project]/Datapool/Runtime (* OPTIONALLY REQUIRED)
[Project]/Datapool/Test
接下来我将介绍如何使用Sample进行一个简单的登陆功能自动化测试。