QPT功能及使用介绍.ppt
文本预览下载声明
QTP功能使用介绍 2007-11 目录 什么是QTP 使用QTP有哪些好处 使用QTP需要哪几个步骤 QTP Windows 界面一览 初学QTP要掌握哪些功能 什么情况适合使用QTP 什么是QTP QTP 英文全称 QuickTest Professional QTP早先是Mercury 公司的一款功能测试工具,现已被HP收购,最新版本9.2 QTP与WinRunner都是功能测试工具,其差别是QTP更适合做Web应用(B/S)方面的测试,而WinRunner更适合客户端应用(C/S)方面的测试 其他功能测试工具如 IBM的Robot 使用QTP有哪些好处 Fast QuickTest runs tests significantly faster than human users. Reliable Tests perform precisely the same operations each time they are run, thereby eliminating human error. Repeatable You can program sophisticated tests that bring out hidden information. Programmable You can program sophisticated tests that bring out hidden information. Comprehensive You can build a suite of tests that covers every feature in your Web site or application. Reusable You can reuse tests on different versions of a Web site or application, even if the user interface changes. 使用QTP需要哪几个步骤 Preparing to record Recording a session on your application Enhancing your test Debugging your test Running your test Analyzing the test results Reporting defects QTP Windows 界面一览 初学QTP要掌握哪些功能 Record Run and analyzing Creating checkpoints Parameterizing Creating Output Values Using Regular Expressions Dividing Tests into Multiple Actions Record Record Record Record Web Event Configuration Run and analyzing Run and analyzing Creating checkpoints Checkpoint Types Standard Checkpoint Image Checkpoint Table Checkpoint Page Checkpoint Text Checkpoint Text Area Checkpoint Bitmap Checkpoint Database Checkpoint Accessibility Checkpoint XML Checkpoint standard checkpoint 添加检查点可以在录制过程中添加,也可以录制后再添加 在Active Screen 上右键点击要设置CheckPoint的对象,选择“Insert standard checkpoint” 选择要设置的CheckPoint type,点击确定按钮 CheckPoint Properties add Parameterizing 执行相同的动作使用不同的数据 什么情况适合使用QTP 模块经过手动测试后比较稳定 模块/功能点重用性比较高 预先安排一定的时间录制和维护脚本 The End * * * * Test Pane Data table Active Screen Activex、Visual Basic、Web三个插件是缺省的,还可以安装其他插件如,java,.net等 第一步进入QTP 第二步参数设置 点击:Tools/Options 第三步开始录制 点击工具栏内的 ●Record,在录制时,缺省设置的QTP只会录制对象的几个常用的事件,如link对象的cl
显示全部