22
Automation with BPT Methodology - By Gopinath Gurram

Automation with bpt methodology

Embed Size (px)

DESCRIPTION

This document helps to understand how BPT works...

Citation preview

Page 1: Automation with bpt methodology

Automation with BPT Methodology

- By Gopinath Gurram

Page 2: Automation with bpt methodology

Agenda:

What is BPT Methodology ? Types of Component Pre-requisite for BPT BPT Strategy / Approach Scripted Component Parameterization About Application Area Benefits of BPT Process Q & A

Page 3: Automation with bpt methodology

What is BPT Methodology ?

BPT is Business Process Testing

Additional module in QC and is known as Business Component

Test Scripts are associated with components.

Components are easily-maintained, reusable units that perform a specific task.

Page 4: Automation with bpt methodology

Types of Component

QTP provides two types of components:Business component

Business components (also known as keyword-driven components) are fully integrated with both QuickTest and Quality Center.

Scripted component

Scripted components are more complex components

containing programming logic.

Page 5: Automation with bpt methodology

Pre-requisite for BPT:

Install BPT Add-Ins. Check the “Allow the Mercury Products to run test and components”

checkbox in Options>Run tab.

Page 6: Automation with bpt methodology

BPT Strategy / Approach

Initially start with creating the scripted components from Business Component tab in QC.

Pull the respective components to the Test Plan from Component Folder in QC as per manual test case.

Pull the Test scripts to Test Lab for regressions.

Execute and Analyze the results and log the defects if any failure occurs.

Page 7: Automation with bpt methodology

Scripted Component:

Two ways to create a component1. From QC> Go to Business Component tab> Click on New >

Enter the component name > OK

2. From QTP> Connect to QC> New> Select Scripted Component >Enter the component name> OK.

Once after create the component in QC, we can find some tabs at right side pane in QC. Like Details, Snap shot, Design steps, Automation. We need to fill the information in these areas.

Page 8: Automation with bpt methodology

Scripted Component contd..

Details tab: Provides a general summary of the component’s purpose or goals, and the condition of the application before and after a component is run (its pre-conditions and post-conditions).

Page 9: Automation with bpt methodology

Scripted Component contd..

Snap shot tab: Displays an image that provides a visual cue or description of the component’s purpose or operations.

Parameter tab: Specifies the input and output component parameter values for the business component. Implementing and using parameters enables a component to receive data from an external source and to pass data to other components in the business process test flow.

Design Steps: Enables you to create or view the manual steps of your business component, and to automate it if required.

Automation tab: Provides access to automated component by choosing it to Scripted component.

Page 10: Automation with bpt methodology

Status of the Component:

The component has 4 status:1. Error: When Component is error for some reason like May be

Test case is incorrect or May be made a mistake or May be created a wrong component, in such cases you set to “Error” status and provide with meaningful comment, displyed in Red color.

2. Ready: Once the component is completed include debugging and enhancement then the component is Ready status, displayed in Green

3. Under Development: When a new Component is to be created then the component is Under Development, displayed in Grey

4. Maintenance: When the requirements changed then component is under Maintenance, displayed in Yellow

Page 11: Automation with bpt methodology

Parameterization:

Process to replace the constant values with variables is known as Parameterization.

There are 2 parameters:1. Input Parameter:• With this parameter, you can input the data to the application.• This Input Parameter is also called “Component Parameter”• It’s another one more parameter especially for BPT apart from other parameters.• We can find this as “Component Parameter” from the list in Keyword View

Syntax is “Parameter(“<name of parameter>”)

2. Output Parameter:With this parameter, you can retrieve the data from the application.

Parameterization can be done in 2 ways for Input Parameters.

Page 12: Automation with bpt methodology

Parameterization:

1st Method:

QC> From Business Component>Parameter tab where parameters can be defined and should be defined before launching QTP.

Note: It wouldn’t allow you to define the parameter, when QTP is already launched.

Page 13: Automation with bpt methodology

Parameterization contd..

The 2nd method is:From QTP> File> Settings> Parameters tab

where you will define the parameters.

Page 14: Automation with bpt methodology

Output Parameter:

• O/P Parameter is to used to retrieve the output value from the earlier action and use it to current action.

• With this parameter, you can retrieve the data from the application. • To achieve the output value, just check the below checkbox and add the code to

assign the value to the output parameter in the script.

Page 15: Automation with bpt methodology

About Application Area:

Application Area: An application area, provides a single point of maintenance for all elements

associated with the testing of application. These include function libraries, shared object repositories, keywords, testing preferences, and recovery scenarios.

From QTP>New > Application Area

Page 16: Automation with bpt methodology

Creation of Test Script:

From Test Plan> Click New Test> Select BPT> Enter the name of the script> OK

The icon will be created at left side panel.

Once created the script, List the all manual test cases, one which are related to this script under Details tab.

Page 17: Automation with bpt methodology

Creation of Script contd…

From Test Plan, pull the respective components under Test Script

Arrange the components in a work flow by moving the components up and down.

Page 18: Automation with bpt methodology

Creation of Script contd…

If the components has any parameters then displayed as link.

Click on this link, Component Iteration window will pop up. It just resembles the excel, where you enter the test data or import/export from external resource.

Page 19: Automation with bpt methodology

Regression Suite:

All the Test scripts are pulled to Test Lab for the regression testing.

Set to run the suite from one or more systems remotely.

Analyze the results.

Page 20: Automation with bpt methodology

Benefits of BPT Process

Each components is by default a reusable. There is no concept of multiple actions. It means each

component is single action. Business process tests are created and implemented

more quickly than other automated tests. Reduces maintenance compared to traditional

automation. Data-driven testing can be performed effectively.

Page 21: Automation with bpt methodology

Q & A

Page 22: Automation with bpt methodology

Thanks….