Вы находитесь на странице: 1из 3

Batch Testing Executing Series of Tests How to Conduct Batch Testing: 4 ways to conduct Batch Testing 1.

Using Test Batch Runner Tool (these are not available in QTP main window, these are installed automatically when you install QTP software) 2. Using AOM Script (AOM: Automation Object Model) 3. Using Driver Script in Automation Framework 4. Using Quality Center Tool

1. Steps for Batch Testing using Test Batch Runner Tool a) Generate Basic Tests and Run them once b) Launch Test Batch Runner Tool and Create Test Batch c) Provide permission to Test Batch Runner Tool to execute Tests and components (reusable functions) d) Run Test Batches

a.

Generate Basic Tests and Run them once Open Folder Create Login Script for Flight Application and Login Run script at once in QTP Save Login script in the Folder with name Login Then create another script for Open order along with login script Run script at once in QTP Save Open Order in the folder with name Open Order

b.

Launch Test Batch Runner Tool and Create Test Batch Start Menu > Programs >HP Quick Test Professional>Tools>Test Batch Runner Go to File (File extension MTB)(Module Test Batch) Batch> Add> Select Files one by one from the folder which you create scripts for Login, Open Order, Insert order, fax order( select scripts as many as you want to execute) You have options to select which scripts you want to run as batch Click check mark box to run the tests that you wanted to Run Save Batch file with extension .MTB (ex: flight.MTB) Close Test Batch Runner Tool

Advantages: We can execute entire test batches or part of test batches (with check or unchecking) Disadvantages: QTP is not providing Batch wise result; It will provide only test wise result It will ask twice to save option in Test batch Runner tool

e. Provide permission to Test Batch Runner Tool to execute Tests and components (reusable functions) QTP > Tools > Options > Run > Check the option Allow other HP products to run tests and components > Click OK > Close Tool During execution test batch Runner Launches QTP tool and provides instructions to QTP Tool to execute test one by one. Steps: Launch Test Batch Runner Tool (Select Batch Runner file flight.MTB to Launch Test Batch Runner tool) Test Batch Runner Tool will open > Click Batch Menu > Click Run It will run Scripts one by one script which you have in that batch file. How to See the Result: In QTP Tool click on Result viewer Icon (or) In QTP Tool Automation Menu > Results (or) Outside of QTP > On the desktop > Start >Programs > HP Quick Test Professional > HP Run Result Viewer > In Open Run Result viewer window > Browse path of the test at Test Name option > Select test Login (you are able to see test result one by one only) > select result file > click open >Result will be available. How to delete previous Test Results: You can delete test result by using Test Result deletion tool. Outside of QTP > On the desktop > Start >Programs > HP Quick Test Professional > HP Run Result Viewer >

Вам также может понравиться