Business Process Testing Framework in QTP - Blogs

Business Process Testing Framework in QTP

Business Process Testing Framework


Business Process Testing (BPT) is the core integration of QTP and QC where writing the script (developing the component) and creating the test flow happens in QC itself.

BPT tests are made up of two types of components

a.       Keyword component which is similar to keyword view of action on QTP

b.      Scripted component which is similar to expert view of action on QTP

NOTE: We can develop keyword component in QC itself but for scripted component we have to use QTP.

Application Area: BPT components cannot directly access the QTP resources such as Shared Object Repository, Functions, Library and Recovery scenario manager, it should be done through an interface called Application Area

Implementation of BPT Framework

In order to implement BPT framework, we have to follow the below mentioned steps

  1. Creating and uploading shared object repository and function libraries
  2. Creating application area
  3. Creating the business components
  4. Creating the Business process test
  5. Creating test set and executing


1. Creating and uploading shared object repository and function library:

     Steps to Save Object Repository in QC

  • Open QTP and connect to QC
  • Open the Object Repository Manager
  • Open the application and add the required objects to the Shared Object Repository
  • Save the above shared object repository in the following location of QC

        Saving Object Repositories

     Steps to Save Save Function Library in QC

  • Open QTP and connect to QC
  • Go to File Menu and select New option and select Function Library
  • Write the function code
  • Save the function Library in the following location of QC 

     Saving Function Library

2. Creating Application area:

  1. Open QTP and connect to QC
  2. Go to File menu, Select New option and then select Application Area
  3. Go to Function libraries click on Add (+), Browse and select above created function library and click Ok
  4. Go to Object repository click on Add(+), Browse and select above created Object Repository and click OK
  5. Save the application area with the Name and Description

3. Creating the business component:

    There are two types of components

     a. Keyword component

     b. Scripted component

     Steps to create keyword component

  • Login to QC, Go to business component tab, select the required folder present under components Note: If Folder is not present then we have to create the folder
  • Click on New Component, Specify component name and click OK
  • Specify the following in the details tab ( Assigned to, Summary, Precondition, Post-Condition
  • In the parameters tab create the parameters if required
  • Go to Design steps tab and add the manual steps click on automate component and select Quick Test Keyword driven then press “YES” and “OK”
  • Go to automation tab and convert manual steps into automation step

     Steps to create scripted component

  • Select the required folder present under components, then click on the New component
  • Specify the required information in the details tab
  • Take the screenshot if it is required
  • Create the parameters if required
  • Specify the design steps
  • Click on the Automate component and select Quick test scripted
  • Go to automation tab, Click on Launch which opens selected component in the QTP
  • Go to file, select change application area, Select the required application area and click OK
  • Write the script, Save the component and close QTP
  • Go to Details tap and change the status to READY

4. Creating Business Process Test script:

  • In QC, go to test plan, select the required folder present under the subject (Create if it does not exists”
  • Click on the new test, Specify the test type as Business Process
  • Specify the test name and click OK
  • Go to test script tab, drag and drop the components from components tree based on the test flow
  • In order to execute set of component multiple times. We can group it and create and add the group iteration

5. Executing Business Process Test script:

   In order to execute the BPT

  • Go to Test
  • Create required
  • Create a test
  • Add the scripts from the test plan tree to execution grid of the test set


BPT WorkFlow:

                                             BPT Work Flow


Connect apps and integrate data with workflows using Azure Logic Apps

Implementing complex business process has been made easy. Logic Apps in azure provide a way to imple...

Read More >

TFS to VSTS Migrations

The next evolution of TFSWhether you’re a startup or Enterprise or you’re a team of just...

Read More >

CfMD services -Dynamics NAV

CfMD services help ISVs minimize the time and effort needed to get their software solution through t...

Read More >

Upcoming Webinar - Offshore support to North American Dynamics NAV partners

Offshore support to North American Dynamics NAV partners whose customers are moving to NAV '16Wh...

Read More >

Microsoft Azure Consultant

·         Executing technical feasibility as...

Read More >

Customer Feedback

Your feedback is important to us. Please share your experience working with Canarys & the journe...

Read More >


Multi-taskingIt is a concept of performing multiple tasks over a certain period of time by executing...

Read More >

Partnership Program

We understand that the world of technology is changing rapidly from day to day and businesses have m...

Read More >

Partnership Program

The Canarys Partner Program:Canarys is all set to expand its business reach across the Globe and is ...

Read More >

Upcoming Webinar US - Plugging for Cloud, Right or Wrong

Plugging for Cloud, Right or Wrong?Cloud computing continues to be one of the most advertising topic...

Read More >


Try DevOpSmartBoard Ultimate complete Azure DevOps End-to end reporting tool

Sign Up

  • Recent
  • Popular
  • Tag
Monthly Archive

Contact Us
  • *
  • *