22 March 2013

Normal flight Reservation Example for BPT framework


Using Mercury Business Process Testing, you could directly create a business process test containing business components, as shown below:


The steps in each of these business components can be set up to receive specific elements of data from the test that runs them (for example, the login name and password, the number of passengers, and credit card details).

This means that the same business process test can be used to answer many Testing needs, for example:
  • Testing the flight booking process for users with different login permissions,Such as new users, VIP customers, and so on.
  • Testing the flight booking process for one itinerary, or for several itineraries.
  • Testing the flight booking process for one passenger, or for several Passengers.
  • Additionally, due to the modular structure of these business components and the ability to control components with external data, you can use the same components in other business process tests.
  • For example, the login and logout components could be used in most other tests on the same application. You might also be able to use the component for entering shipping details in other business process tests that check, for example, the business process of ordering online merchandise from the application, or in a test for subscribing to a frequent flyer program.


Roles:


Two basic user roles are identified in the Business Process Testing model and referred to in this guide:
1. Subject Matter Expert
            2. Automation Engineer

1.Subject Matter Expert:

  • The Subject Matter Expert has specific knowledge of the application logic, a high-level understanding of the entire system, and a detailed understanding of the individual elements and tasks that are fundamental to the application being tested.
  •  Using the Business Components module, the Subject Matter Expert creates business components that describe the specific tasks that can be performed in the application, and the condition or state of the application before and after those tasks
  • The Subject Matter Expert then defines the individual steps for each business component comprising the business process in the form of manual or non-automated steps.
  • These manual steps can later be automated by defining them as keyword driven or Win Runner components and implementing the automated steps.
  •  Using the Test Plan module, the SME combines the business components into business process tests, composed of a serial flow of the components.
  • The SME configures the values used for business process tests, runs them in test sets, and reviews the results. The Subject Matter Expert is also responsible for maintaining the testing steps for each of the individual business components.
  • The SME configures the values used for business process tests, runs them in test sets, and reviews the results. The SME is also responsible for maintaining the testing steps for each of the individual business components.


2. Automation Engineer:

  • The AE is an expert in QTP Automated testing.
  • The AE prepares the resources and automated functions required for testing the features associated with each specific component.
  • For example, the AE populates the Shared Object Repository with objects that represent the different objects in the application being tested. The SME then uses these objects to create steps in keyword-driven business components.
  • Automation Engineers can also create, debug, and modify business components in QTP


  
How QC Integration with QTP for Business process testing ?

v QTP connected to a QC project with BPT the Automation Engineer define objects in the object repository and save them in Quality Center. The objects are then available for insertion into component steps by the SME in Quality Center. In addition, all business component information is visible in QTP
v Integration between the two applications enables the Subject Matter Expert to implement the testing steps for the business components in a keyword view, and also enables the Automation Engineer to effectively maintain the set of objects in the object repository and the operations in the function libraries.
v QTP have two types of automated components; keyword-driven components and scripted components. The automated steps of keyword-driven components can be created and edited by the SME in Quality Center. Scripted component steps can be created and maintained only in QTP
v The AE captures the Object Information, in above login webpage the captured OR as below 



v The AE covers the all activities and create function libraries. These function libraries Define the operations (or keywords) with keyword-driven components; the Subject Matter Expert can use these operations to create the component steps in the Business Components module in Quality Center.

v The OR and Function library of all objects placed in Application area (Application area contains all of the settings and resources of App)
v All application area settings are automatically inherited by the business components that are based on that application area

 What we need to set up for BPT? :

Using QTP, the Automation Engineer defines an important set of resources and settings that comprise the application area or otherwise affect the business component.
These include:
1. Object Repositories
2. Function Libraries
3. Associated Add-ins
4. Applications List
5. Recovery Scenarios


1.     Object Repositories: The object repository stores all the information about the test objects that are used in each business component. By using the same shared object repository file for multiple components, the same objects can be used in multiple components
2.     Function Libraries: Function libraries contain VBScript functions, subroutines, and so on, that can be used as operations in a business component
3.     Associate Add-ins : have add-ins to support Application Environment for example if Application in java ,SAP ,mainframe etc , for this platforms we need external add ins
(QTP default supports Active x, web, Visual Basic )  
4.      Applications List: QTP runs components only on the set of Windows-based applications
That is specified for the component. It can also run on applications in any other environment for which the appropriate QTP Add-in is loaded.
5.     Recovery Scenarios : Recovery scenarios are activated during the running of a business
Component if an unexpected event occurs, such as an application crash, and the run is suspended. Recovery scenarios define the operation(s) necessary to recover from the event and continue the run.v The AE covers the all activities and create function libraries. These function libraries Define the operations (or keywords) with keyword-driven components; the Subject Matter Expert can use these operations to create the component steps in the Business Components module in Quality Center.

v The OR and Function library of all objects placed in Application area (Application area contains all of the settings and resources of App)

v All application area settings are automatically inherited by the business components that are based on that application area





 What we need to set up for BPT? :


Using QTP, the Automation Engineer defines an important set of resources and settings that comprise the application area or otherwise affect the business component.

These include:

1. Object Repositories

2. Function Libraries

3. Associated Add-ins

4. Applications List

5. Recovery Scenarios





1.     Object Repositories: The object repository stores all the information about the test objects that are used in each business component. By using the same shared object repository file for multiple components, the same objects can be used in multiple components

2.     Function Libraries: Function libraries contain VBScript functions, subroutines, and so on, that can be used as operations in a business component

3.     Associate Add-ins : have add-ins to support Application Environment for example if Application in java ,SAP ,mainframe etc , for this platforms we need external add ins

(QTP default supports Active x, web, Visual Basic )  

4.      Applications List: QTP runs components only on the set of Windows-based applications

That is specified for the component. It can also run on applications in any other environment for which the appropriate QTP Add-in is loaded.

5.     Recovery Scenarios : Recovery scenarios are activated during the running of a business

Component if an unexpected event occurs, such as an application crash, and the run is suspended. Recovery scenarios define the operation(s) necessary to recover from the event and continue the run.

2 comments:

  1. This article is something that will help me with my class assignment. It helped me to better understand another aspect of this topic. Thanks.
    multi city flights

    ReplyDelete
  2. Sometimes it is so hard to find good and useful posts. This article is very informative and beneficial. I've find many good points in this post.
    Thanks for sharing such a useful information.
    If you want to discounts on air ticket reservation you should visit the Meezab Air.

    ReplyDelete