全部基于业务组件的测试脚本 (businessprocess 类型的脚本)的建立:
BPT - business process testing
前言: 目前流行的三种自动化脚本的写法:
1. Business-processtest : Business-processtest 和 QTP test 是同级别的自动化脚本的形式.但是一个test case只能含有其中一种type的脚本.
2. QuickTestscript #1: 目前QTP test应用最为广泛,利用共享Shared Action 的方式,一个Test Case 内部 调用这些Shared Action;
3. QuickTestscript #2: 把 shared action写成sourcefile的形式(如VBS 文件), 一个Test Case 内部全用ExecuteFile方法执行这些sourcefile;
下面讲基于业务组件的测试脚本 (businessprocess 类型的脚本)的建立:
建立Application Areas:
Application Areas: OR, Function lib, Environment, RecoveryScenario.
每个Application Areas作为share resource, 对每个Businesscomponent都适用.
在QC+QTP 建立Businesscomponent:
Business component --> to create component
Domain Stuff: manual steps and parameter (业务专家建立手工步骤和参数)
QTP Stuff-->and QTP detail: choose the application area(source, OR) & script (QTP专家在QTP建立自动化脚本)
QC --> Test plan: (Create business-process type test和select Business component)
To Test script (business process) --> add the businesscomponent, and link parameters
QC -->Test lab: run (和一般自动化脚本一样run)