Saturday, 9 November 2013

QTP Automation Framework


Data Driven Technology (Read the Data)


with using different set of test data, we can test the application and

verify the application deals with different set of data.

its have limited functionality. not complex one.

Ex:

Job Portal,Hotel/Travel,INsurance,Financial, Tourism, Forums,eCommerce

Script framework

-> Read the test data from Excel or notepad. we should create the user

defined functions for Read test data. Then those data stored into variable.

-> Perform the data related operation using the above variable on AUT.

-> Then finally results are data are stored in excel.

-> we no need to have vb script strong knowledge person for maintain this

framework. Because as long as the functionality has not been changed. We

always user deals with set of new test data on AUT. And verify how the

application behave while load these data.

Advantage

Effective - if we need to test thousands of test data by using manual

testing. its take more time consuming. but using data driven Technology we

can effectively perform the application. and less time consuming. so we can

cut down the test life cycle effectively

Reusable - As long as there is no change in test script, we can Reusable

script in any time

Accurate


Keyword Driven Framework (Read the keyword)

1) Create the test cases for each an every operation.

2) And create associated test steps to perform the test cases. Both test

case and test steps in differnt sheets.

3) Each an every test steps associated with keyword. By using keyword we can

perform the operations on AUT.

Test case : Ex. login into the application

Test Steps :  Open application
        Enter the username
        Enter the password
        click ok

Keyword    :    browser_open
        edit_input
        edit-input
        button_click


Main Script : Its main script for reading the input from excel and call the

function respect to the keywords

Driver - its have the vbScript for reading the keywords and reading data

from excel.

Web based function (Keyword) - Each an every keyword have set of operation

on the application.

4) This framework used for frequent changes functionality on the

application, but less test data. we can look only the test case and test

steps often when any changes on the application.

Components of Keyword driven Framework


Main Script : List of the keywords associated with function.


Web Method

its have the eache an every operation performed in the application


Driver

Its have what are the keyword want to execute. each an every keyword

associate with each an every functions

To generate the error report

Get the test data



Hybrid Framework ( both Read the Data and Read the keyword)

Its combine both keyword and data driven framework

1) we can create the Test cases, Test steps,Test data.

2) And read both keywords and Test data in driver.

No comments:

Post a Comment