Monday, April 11, 2016

Keyword Driven Framework in QTP

In Keyword Driven framework, you can create various keywords and associate a different action or function with each of these keywords. Then you create a Function Library that contains the logic to read the keywords and call the associated action.
Keyword driven frameworks come in many different flavors. One of them is explained below.

Components in Keyword Driven Framework


  • Data Table or Excel Sheets which contains the keywords and the steps needed to execute a particular flow or action.

  • A Function Library which contains various functions that read each line from the excel sheet, convert it into “QTP readable” format and finally execute it. For example, the function library would read the first line from the excel and convert it as –
           Browser(“Title”).Page(“Title”).WebEdit(“UserName”).Set “user1”
  • Object Repository may or may not be used in this framework. You can use descriptive programming approach if you want to avoid using the object repository.
Workflow in Keyword Driven Framework


Advantages of Keyword Driven Framework
  • The keyword and function libraries are completely generic and thus can be reused easily for different applications.
  • All the complexity is added in the function libraries. Once the libraries are ready, it becomes very easy to write the actual test script steps in excel sheets.
Disadvantages of Keyword Driven Framework
  • Lot of time and effort needs to be spent initially to create the function libraries. The benefits of the keyword driven framework are realized only after it has been used for longer periods of time.
  • Very high programming skills are needed to create the complex keyword library functions.
  • It’s not easy for new people to understand the framework quickly.

No comments:

About Me

My photo
Hi all,I am Arun Singh Rajaputra. I am working as a Project Lead in a reputed organization in Hyderabad, AP, India. I have little bit knowledge on Quick Test Professional and like to share my knowledge to all through this blog.

Subscribe to get updates on this blog

Enter your email address:

NOTE

Some of the posts posted in this blog are collected and most of them have been prepared by me. If any one have objections regarding any copied posts. Please mail me so that I can take a necessary action on that post.