QTP Framework Tutorials – Framework Types, Examples & Sample Code
Some useful guidelines to create automation frameworks
b) structure of excel data sheets, grouping of workbooks and individual sheets
c) folder structure for test scripts, reusable libraries and object repositories
d) storing test run results, overwriting results or saving the results separately
e) accessing and updating repositories, libraries by different team members
f) and many more such features depending upon individual requirements
Salient features of a good automation framework
b) The framework code should be easy to read, understand and maintain.
c) All components in the framework such as test cases, function libraries, object repositories, data sheets, test results etc should be stored in separate folders.
d) Test data should be kept separate from code, preferably in excel sheets.
e) Error handling and batch execution should be added to the framework.
f) Auto-email (or sms) sending feature can also be implemented in the framework.
This eBook will provide you with a quick introduction about each of the automation frameworks. This will include the features of the framework, its flow, and its advantages and disadvantages
This is the most basic framework where you write your script as is. That is, with this approach you write all the steps one after the other in a linear fashion.
QTP Linear Framework – Complete Guide with AOM example [sample code available]
With this framework, you write the entire code into different functions and then you call these functions wherever required. These functions can be both reusable and non-reusable.
Designing QTP modular framework from scratch [sample code available]
In this type of QTP framework, your data is kept separate from the code, preferably in excel files. This helps you execute the same code for multiple sets of data.
Basics of Data Driven Framework in QTP – Part 1 [sample code available]
How to Select appropriate Data Sheet format for Data Driven Framework
Designing Data Driven Framework that uses Excel Sheets – Part 2 [sample code available]
Designing Data Driven Framework that uses Excel Sheets – Part 3 [sample code available]
In this type of QTP Framework, you can create different keywords and associate different actions with these keywords. When QTP encounters a particular framework, it will execute the action associated with that framework.
Basics of Keyword Driven Framework in QTP
Keyword Driven Framework mapped at Operation Level – Part 1
Keyword Driven Framework mapped at Operation Level – Part 2 [sample code available]
Keyword Driven Framework mapped at Functional Level – Part 1
Keyword Driven Framework mapped at Functional Level – Part 2 [sample code available]
Hybrid framework is a combination of one or more frameworks discussed above. Based upon your requirements, you can combine the features of any of the above frameworks. The resultant framework would be a Hybrid framework.
Architecture and features of a Hybrid Framework
Designing a Hybrid Framework in QTP – Part 1
Designing Hybrid Framework in QTP – Part 2
Designing Hybrid Framework in QTP – Part 3
In this QTP Framework, you can divide your test case flow into multiple Business Components. You can then re-use these components as many times as required. You need Quality Center access in order to use BPT Framework. Also you need to acquire BPT license from HP in order to use this framework.