1px solid; HEIGHT: 290px">Subject: CMVC 2.3.1, FVT testing, Common, Part 1
Begin testing at: Tue Apr 18 12:50:55 EDT 2000
Database: DB2
Family: cmpc3db2
Testcase: fvt-common-1
Creating Users...
User pat was created successfully.
...
Well done! No errors were found during the
execution of this test case :)
fvt-common-1 complete.
End of testing at: Tue Apr 18 12:56:33 EDT 2000 当遇到错误时输出文件最后部分的示例如下所示:6w6Linux联盟 6w6Linux联盟
代码: ERROR found in Report -view DefectView
*** 1 ERRORS found during the execution of this test case. ***
The populate action for the CMVC family was not successful.
Recreating the family may be necessary before
running fvt-client-3 again, that is, you must use 'rmdb',
'rmfamily', 'mkfamily' and 'mkdb -d',
then issue: fvt-common-1 and optionally, fvt-server-2.
fvt-client-3 terminated, exiting now with rc=1.
End of testing at: Wed Jan 24 17:06:06 EST 2001
6w6Linux联盟 19. 如有可能,提供清除脚本及返回基准线的方法6w6Linux联盟 测试脚本可以生成临时文件;假若这样,最好能让脚本删除所有临时文件。这就会避免由于测试者也许没有删除所有临时文件而引起的错误,更糟糕的是将所需要的文件当作临时文件而删除了。6w6Linux联盟 6w6Linux联盟 运行功能测试的 Bash shell 脚本6w6Linux联盟 本节描述如何运用 Bash shell 脚本进行功能测试。假设您已经执行了在前面部分中所述步骤。6w6Linux联盟 6w6Linux联盟 6w6Linux联盟 设置必要的环境变量6w6Linux联盟 根据需要在 .profile 中或手工指定下列环境变量。该变量用于说明在脚本中如何处理,所需环境变量的验证必须在脚本执行前定义。6w6Linux联盟 6w6Linux联盟 export TEST_VAR=16w6Linux联盟 6w6Linux联盟 将 Bash shell 脚本复制到正确的目录下6w6Linux联盟 Bash shell 脚本和相关文件需要复制到要进行功能测试的用户标识的目录结构下。6w6Linux联盟 6w6Linux联盟 登录进某个帐户。您应该在主目录下。假设它是 /home/tester。6w6Linux联盟 为测试案例创建目录:mkdir fvt6w6Linux联盟 复制 Bash shell 脚本和相关文件。获取压缩文件(请参阅参考资料)并将其放在 $HOME 下。然后将其按下列方式解压:unzip trfvtbash.zip6w6Linux联盟 为了执行这个文件,更改文件的许可权:chmod u+x *6w6Linux联盟 更改名称以除去文件的后缀:mv test-bucket-1.bash test-bucket-16w6Linux联盟 6w6Linux联盟 运行脚本6w6Linux联盟 执行下列步骤以运行脚本:6w6Linux联盟 6w6Linux联盟 以测试者的用户标识登录6w6Linux联盟 更改目录至所复制脚本的位置:cd $HOME/fvt6w6Linux联盟 从 $HOME/fvt 运行脚本:./test-bucket-1 -s 2>&1 | tee test-bucket-1.out6w6Linux联盟 看一下输出文件 "test-bucket-1.out" 的尾部并查看摘要报告的结论。
|