单元测试方法及分析.ppt

  1. 1、本文档共39页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
该文档均来自互联网,如果侵犯了您的个人权益,请联系我们将立即删除!

* * * * * * * * * * * * * * * SilkTest的Host and Agent分布式运行前提: 首先你需要有两台联网的机器,假设他们的名字分别是SilkHost和SilkAgent,并且拥有同一域名后缀,其中SilkAgent上装有待测应用(AUT)。 规范 精确 高效 高质 SilkTest的Host and Agent运行步骤: 1.? ?? ? 确保两台机器能互相ping通对方的机器名。 2.? ?? ? 在两台机器上安装同一版本的SilkTest。 3.? ?? ? 先启动SilkAgent机器的Agent软件,运行后右击该程序,选择Network…,在弹出的对话框中选择:Network-TCP/IP, Port number会自动被设为2965,点击确定。这时,在SilkAgent机器上打开一个dos窗口,运行netstat –a, 查看2965端口在监听状态。 4.? ?? ? 确保网络防火墙没有关闭两个机器的2965端口。 5.? ?? ? 在SilkHost机器上打开SilkTest, 进入你的Project, 选择下面的菜单:Options –RunTime.在打开的对话框中将AgentName设置为SilkAgent, Network设置为TCP/IP,然后点击确定。 6.? ?? ? 在SilkHost上运行任意testcase,监视SilkAgent机器上测试的运行。 规范 精确 高效 高质 SilkTest两大测试流程: 基本测试流程: 数据驱动流程: 规范 精确 高效 高质 SilkTest恢复系统: 允许测试可在24×7×365全天候无人看管条件下运行。在测试过程中一些错误导致被测应用崩溃时,错误可被发现并记录下来,之后,被测应用可以被恢复到它原来的基本状态,以便进行下一个测试用例的测试。 规范 精确 高效 高质 SilkTest恢复系统: The recovery system is responsible for maintaining the base state in the event the application fails or crashes, either during a testcase’s execution or between testcases. To restore the application to the base state, the recovery system contains a routine called DefaultBaseState that makes sure: The application is running and is not minimized All other windows (for example, dialogs) are closed The main window of the application is active 规范 精确 高效 高质 SilkTest文件说明: Project: .vtp工程文件 Plan: .pln计划文件 Frame: Test Frame(.inc); 4Test Include File (inc)框架文件,包含对象及公共函数等 Script:4Test Script (.t) Data Driven Script (.g.t)脚本文件 Suite: .s(Allows sequential execution of several test scripts ) 套文件 Text file:.txt(Data Folder)文本文件 Result File:.res and .rex结果文件 Initialization File:.ini (Profile)初始化配置文件 规范 精确 高效 高质 Frame File: Contains all the data structures that support your scripts: window declarations, user-defined classes, utility functions, constants and variables, as well as other include files. Suite File: A file that names any number of 4Test test script files. Instead of running each script individu

文档评论(0)

sunhongz + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档