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:
Post a Comment