Wednesday, November 3, 2010

Hybrid Framework in QTP

Framework is the way we design our system so that QTP can be effectively implemented on
the system. Hybrid Framework is a combination of Script modularity framework and Data Driven Framework.
Steps for creating Hybrid framework:

1) Create Actions corresponding to different functionalities or modules in which you have breaked your system e.g. so in case we classified our entire application in 8 modules then we would be creating 8 Actions to cover all the modules.

2) Create Object Repository(Shared or Local) preferable Shared by adding all the objects that would be the part of your applications to that Repository, in case there are some local objects in any particular Action then that could be the part of Local Object Repository.

3) Associate your Object Repository to all the Actions that you have created.

4) Record scripts for individual Actions and customize your scripts based on your test Cases.

5) In case certain functions are being written then those functions should be saved under folder Function Library and those functions should be then added and associated to your Actions.

6) In case any further steps are to be used like using Recovery scenario, checkpoints etc can be done.

7) For providing data to these actions or scripts or providing ability to parameterize your scripts any of the below mentioned methods could be used:
-Data Table
-Random Numbers
-Environmental Variable

No comments:

Post a Comment