1、1.5 QTP Functions:2 A simple example to use QTP to record and run test on one windows-based application 52.1 Steps 52.2 Add none-standard GUI object to local object Repositories in your action 62.3 Export Local Object to files for using by other action 62.4 Create a self-definition function 63 : Deb
2、ug the test codes and running settings 73.1 Debug 73.2 Run the test cases with Batch size 74 QC and QTP 74.1 QC 74.2 QTP and QC together to realize automatic test structure 74.3 Install QC and QTP then link to each other 84.4 QTP Connects to QC 85 Add different kinds of Check pionts in the test step
3、s 86 Data-driven testing way 96.1 Steps of Data-driven testing 96.2 A sample of how to use data-driven to test windows application 97 Key-words driven 97.1 What is key-words driven 97.2 A sample of how to use Key-works driven to write test case 98 QTP descriptive developing 98.1 Why we need descript
4、ive developing in QTP 98.2 How to use the way of descriptive developing 99 使用QTP测试标准的windows对象 109.1 How to use the desktop objects 109.2 SytemUtil object 109.3 How to use the properties and sub-functions of the standardized widgets 109.4 How to test the standardized widgets, 1010 QTP测试脚本的开发 1011 使用
5、QTP测试Active 对象 1012 使用QTP测试VB 对象 1013 使用QTP测试标准Web 对象 1014 QTP插件技术 1015 使用QTP.net 1016 Store the test report to QC 1017 Change history 10 1 Automatic testing scheme and QTPAutomatic testing is an activity which needs plan and design. a. Before the development of new test code, you should know what k
6、inds of testing scheme and also what kinds of automatic testing scripts you want to choose.b. You should take care of the ”time”, ”workload of maintenance”, ”complexity”, ”resource”,” degree of coverage”,” the degree of stability for the codes and requirement of the product”,” the influence to the p
7、roject”-venturec. The ways of how to build the automatic testing codes1. linear2. structuring3. share4. date-driven5. key-words drivenThe background of QTP?d. QTP是HP公司花费45亿收购的美科利(Mercury Interactive)产品套件(suite)之一e. QTP是继WR(win Runner)产品之后推出的以VBS(vb scripts)为内嵌语言的工具f. QTP是一款用于功能测试的自动化测试工具g. QTP可以和HP的
8、QC产品协作进行自动化测试开发(Business process Testing)h. QTP是一款容易掌握但价格很高的测试自动化工具QTP Theorya. 基于GUI层面的测试和界面元素打交道,随着.NET3.0和Vista的发布,微软提供了一套崭新的Windows 界面框架,名为“UI Automation”,能在所有支持Windows Presentation Foundation(WPF)的操作系统中使用。QTP可以使用AutomationElement 来访问控件属性。QTP提供Object Spy功能把某个界面的基本属性列举出来。针对不同的平台和语言编写的控件,QTP采用不同对象
9、识别方法,他提供“Object Identification”功能提供一个可供测试员调整的对象识别配置器。b. QTP is called Advanced Key word-Driven Testing(also called Table Driven testing),他把测试脚本的编程工作分离出去,让那些没有编程技巧的人也能开发自动化测试脚本。c. The structure of Key word-Driven testing,实现关键字驱动主要依赖自动化框架,通过自动化框架,仅需要测试人员develop “table” and “key word”.框架通过解释表格数据和关键字来执行
10、测试脚本,驱动被测试的应用程序。在关键字驱别测试中,被测试应用程序的功能被文档化为表格,用一步步的指令性语句来指导框架执行每个测试步骤。这种方法可以让测试的创建和测试的维护阶段更加有效,并且保持结构的清晰,让测试脚本的可读性更强。只需要熟练使用关键字视图的使用方法。What is QTP?d. QTP: Quick Test professionale. 自带插件(Plug-in)ActiveX, Database, StdWindows, TEA, VisualBasic, Web, XML :a link of vbscript introducef. 额外购买插件(pay to buy)
11、Java, DotNet, PeopleSoft, VisualAge, Siebel, Oracle,QTP Functions:创建测试 ,( to examine)检验数据 ,增强(enhancement)测试 ,运行测试 ,分析结果 ,维护测试 。支持windows 2000,xp ,server 2003,Vista;支持虚拟机vmware, Critrix metaframe presentation server;默认对以下应用程序进行测试:(standardized)标准windows 应用程序,包括基于win32 API和MFC的应用程序Web页面ActiveX 控件Visu
12、al Basic 应用程序在有插件的情况下支持的应用程序有:JAVA,Oracle,SAP,.NET控件(.NET Windows Form,.NET Web Form, WPF),Siebel,PeopleSoft, Web服务,终端仿真程序(Terminal Emulators)2 A simple example to use QTP to record and run test on one windows-based applicationStepsa. Open QTP, and then create a new action. After that , click the “r
13、ecord” tool menu. The “Record and running setting GUI” pops up.b. Choose the “windows applications ”tab - choose the “record and run only on” radio button and add an application with the “+” button. You could use the default example provided by HP QTP in the X:Program FilesHPQuickTest Professionalsa
14、mplesflightappflight3a.exe installation directory.c. Finally, you could do operations in the flight3a GUI and you could also see the process by using Keyword View and Expert view.d. You can output some test information to test report by choosing “insert Step | report” , and you could also insert “Ch
15、eckpoint” by “insert standard checkpoint” or a new step by “insert step | step generator” in the keyword view. Add none-standard GUI object to local object Repositories in your actiona. Click the “Object Repository” Tool menu or use hot-key “Ctrl + R”b. When the “Object Repository-All object Repository” GUI comes up. Then click “Object- add t
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1