全部基于業務元件的測試腳本 (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)