TD+QTP实用操作手册—银行付款实例讲解p

上传人:王**** 文档编号:334216543 上传时间:2022-09-05 格式:PPT 页数:72 大小:2.18MB
返回 下载 相关 举报
TD+QTP实用操作手册—银行付款实例讲解p_第1页
第1页 / 共72页
TD+QTP实用操作手册—银行付款实例讲解p_第2页
第2页 / 共72页
TD+QTP实用操作手册—银行付款实例讲解p_第3页
第3页 / 共72页
TD+QTP实用操作手册—银行付款实例讲解p_第4页
第4页 / 共72页
TD+QTP实用操作手册—银行付款实例讲解p_第5页
第5页 / 共72页
点击查看更多>>
资源描述

《TD+QTP实用操作手册—银行付款实例讲解p》由会员分享,可在线阅读,更多相关《TD+QTP实用操作手册—银行付款实例讲解p(72页珍藏版)》请在金锄头文库上搜索。

1、TD+QTP使用操作手册LOGO2022/9/4iSoftStone Information Service CorporationTD+QTP使用操作手册银行付款实例讲解2005 iSoftStone Information Service Corporation.All rights reserved.3目录目录1.测试设计测试设计2.测试实现测试实现3.测试执行测试执行2005 iSoftStone Information Service Corporation.All rights reserved.4测试设计测试设计设计测试用例设计测试用例现在要针对银行付款业务设计一个测试用例,进行

2、功能的覆盖1 划分业务功能、画出业务流程图划分业务功能、画出业务流程图1 新增2复核3 取消复核4 修改5 删除2005 iSoftStone Information Service Corporation.All rights reserved.5测试设计测试设计设计测试用例设计测试用例2 根据流程图,写出测试方案根据流程图,写出测试方案银行付款有一个起始点,两个结束点,按照功能覆盖的思想,选择两条路径即可。如果要考量到动作之间的关联性,路径就比较多了。基于以往的经验,取消复核、二次复核比较容易出现问题,因此两条路径分别为:路径一:新增-复核-取消复核-修改-复核路径二:新增-复核-取消复核

3、-删除3 确定业务功能确定业务功能在流程图中,可以得出,本业务可以划分成以下业务功能:新增、复核、取消复核、修改、删除2005 iSoftStone Information Service Corporation.All rights reserved.6测试设计测试设计设计测试用例设计测试用例4 确定业务数据确定业务数据由于只要进行流程的覆盖,所以暂时可以把业务数据作的简单一点。5 在在TD中录入测试用例中录入测试用例访问TD服务器,如:http:/stc-hrye/tdbin/start_a.htm2005 iSoftStone Information Service Corporatio

4、n.All rights reserved.7测试设计测试设计在在TDTD中录入测试用例中录入测试用例在“Test Plan”新建一个文件夹,用来存放测试脚本2005 iSoftStone Information Service Corporation.All rights reserved.8测试设计测试设计在在TDTD中录入测试用例中录入测试用例新建一个测试脚本,这个脚本是用来存放银行付款的标准业务功能的。新建一个测试脚本,这个脚本是用来存放银行付款的标准业务功能的。下阶段的测试实现,主要就是实现这个脚本的内容。下阶段的测试实现,主要就是实现这个脚本的内容。2005 iSoftStone

5、Information Service Corporation.All rights reserved.9测试设计测试设计在在TDTD中录入测试用例中录入测试用例添加对脚本的描述说明文字。说明脚本实现的内容、目的2005 iSoftStone Information Service Corporation.All rights reserved.10测试设计测试设计在在TDTD中录入测试用例中录入测试用例录入所有的步骤。如果是业务功能的基础脚本,每一个step,就对应一个业务功能。如果该脚本是用来描述一个测试用例的,则一个step就是一个操作。2005 iSoftStone Informati

6、on Service Corporation.All rights reserved.11测试设计测试设计在在TDTD中录入测试用例中录入测试用例Step录入完成后,自动生成QTP的测试脚本。如果不能生成,请检查是否安装了TDPlus2005 iSoftStone Information Service Corporation.All rights reserved.12测试设计测试设计在在TDTD中录入测试用例中录入测试用例生成的脚本中,只包含说明信息。2005 iSoftStone Information Service Corporation.All rights reserved.13

7、目录目录1.测试设计测试设计2.测试实现测试实现3.测试执行测试执行2005 iSoftStone Information Service Corporation.All rights reserved.14测试实现测试实现测试实现,需要实现两部分的内容1 测试用例的实现(testCase Action的实现)2 基础业务功能的实现(reusable Action的实现)其中,testCase Action只调用reusable Action,每个业务功能如何实现,都放在了resuable Action中。2005 iSoftStone Information Service Corporat

8、ion.All rights reserved.15测试实现测试实现实现实现testCase ActiontestCase Action1 使用QTP连接TD2005 iSoftStone Information Service Corporation.All rights reserved.16测试实现测试实现实现实现testCase ActiontestCase Action2 输入TD服务器的信息,并连接。3 打开要编辑的基础业务功能的脚本。2005 iSoftStone Information Service Corporation.All rights reserved.17测试实现

9、测试实现实现实现testCase ActiontestCase Action2005 iSoftStone Information Service Corporation.All rights reserved.18测试实现测试实现实现实现testCase ActiontestCase Action4 按照脚本的说明信息,将基础的业务功能脚本分割成多个resuable的Action。注意:分割了的Action,不能再合并。2005 iSoftStone Information Service Corporation.All rights reserved.19测试实现测试实现实现实现testC

10、ase ActiontestCase Action2005 iSoftStone Information Service Corporation.All rights reserved.20测试实现测试实现实现实现testCase ActiontestCase Action依次的,将所有的Action分割完成。2005 iSoftStone Information Service Corporation.All rights reserved.21测试实现测试实现实现实现testCase ActiontestCase Action5 修改基础业务功能Action的属性,使其可重用。2005 i

11、SoftStone Information Service Corporation.All rights reserved.22测试实现测试实现实现实现testCase ActiontestCase Action6 修改Action的传入、传出参数。传入传出参数的数据类型建议只使用String型,且各只有1个。传入的参数,是将数组转成字符串传入的,需要经过解析后才能使用。2005 iSoftStone Information Service Corporation.All rights reserved.23测试实现测试实现实现实现testCase ActiontestCase Action7

12、 基础的业务功能的Action暂时就完成了。现在开始编写testCase的Action。打开测试用例的脚本payment012005 iSoftStone Information Service Corporation.All rights reserved.24测试实现测试实现实现实现testCase ActiontestCase Action8 切换到Expert View,调用“银行付款-新增”的Action2005 iSoftStone Information Service Corporation.All rights reserved.25测试实现测试实现实现实现testCase

13、ActiontestCase Action2005 iSoftStone Information Service Corporation.All rights reserved.26测试实现测试实现实现实现testCase ActiontestCase Action2005 iSoftStone Information Service Corporation.All rights reserved.27测试实现测试实现实现实现testCase ActiontestCase Action说明:说明:insert call to copy 与与 insert call to Exists假设要在A

14、ctionA中调用ActionB call 是获得ActionB的引用,只是引用,如果原本的ActionB的内容发生了变化,那么ActionA中的内容也跟着变化,且不能在ActionA中对ActionB修改。copy 是把ActionB的脚本复制到ActionA中,得到ActionB的一个copy,修改ActionB_copy不对ActionB造成影响,修改ActionB也不对ActionB_copy造成影响。有点像C语言中的传指针和传值的意思。另外,还可以去看编写的脚本,一个没有分割Action的脚本,默认会生成Action0和Action1两个Action,其中Action0中一般只有一句

15、话:RunAction Action1,oneIteration当运行脚本时,实际上,只是运行了Action0,其他的Action都是被Action0调用的。copy过来的Action,如果没有使用RunAction的方法来调用,应该是不会被运行的,因为没有被Action0直接或间接调用。2005 iSoftStone Information Service Corporation.All rights reserved.28测试实现测试实现实现实现testCase ActiontestCase Action9 确定要调用的新增的Action的传入参数根据页面的信息,新增银行付款业务时,需要输

16、入以下数据:付款方客户编号 付款方账户号 开户行编号收款方账户编号收款方名称汇入行所在省汇入行所在市汇入行名称金额支票号报单号摘要2005 iSoftStone Information Service Corporation.All rights reserved.29测试实现测试实现实现实现testCase ActiontestCase Action10 将传入参数和数据写入到一个Excel表格中,并保存同时,填写同时,填写设计参数说明设计参数说明,将,将Action的名称和传入参数的字段记的名称和传入参数的字段记录存档。录存档。2005 iSoftStone Information Service Corporation.All rights reserved.30测试实现测试实现实现实现testCase ActiontestCase Action11 将测试数据导入到脚本payment01的Action1中2005 iSoftStone Information Service Corporation.All rights reserved.31测试实现测试实现实现实现testCa

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 中学教育 > 初中教育

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号