Hybrid Framework in Automation (Part-1) – User friendly Tech help

We started our journey to grasp the concept of framework in automation using keyworddriven approach, today we are going to shape our existing code into a more versatile form known as Hybrid framework.
n
nNote:- Please read our post on Keyword Driven framework before starting with Hybrid concept.
n
nFollow us on Facebook for more updates and learning!!!

n

n

n

n

n

n

n

n

Moving from Keyword to Hybrid Framework

n

What is Hybrid Framework?

n

In laymen terms it is the combination of all the frameworks (Keyword + Data + Modular), which takes the best of all of the available frameworks to create a robust approach for automation.
n

n

Thus hybrid approach takes the features of all the available frameworks plus the user specific modification to achieve an easier route for automation testing of the application.
n

n

Note: – There is no standard definition or guidelines for Hybrid approach and its components are the vision of the automation tester to make automation task least maintainable, easy to implement and adapt.
n

n

Downloading the Hybrid Framework
n

n

Steps for using the above framework:-

n

Note: – Similar to our keyword driven framework code, after downloading the code -> Extract the zip files -> open the “HybirdApproach” folder -> paste it inside c:Temp -> open the Driver script in UFT/QTP.

n

n

n

n

n

n

n

n

Folder structure of Framework

n


nBefore Run:-

n

Enable or disable the required features:-

n

    n

  1.    Test Properties change set “Screenshot ” value to “Yes”, incase we want to capture error screenshots
  2. n

  3. Similarly set “Email” value to “Yes”, to send test case run email with Pass/Fail status
  4. n

n

Change the TestCase property to the required test sheet name of the test case.

n

n

n

n

n

n

n

n

Properties tab in UFT

n

After Run:-

n

Reset the counter in the excel to the starting data row, else it would always run for the last set of test data in “Data” tab of excel sheet.

n

n

n

n

n

n

n

n

Reset the counter to 2 

n

What changes we need to do for using the framework for different test case?

n

To achieve this we need to do few basic changes:-

n

    n

  • Simply save the given test case with the required new test case name say “TC_02_Search”
  • n

  • Input parameters:- change the value of “TestCase” to the required test case sheet say “TC_02_Search” and we are ready to run.
  • n

n

Summary:- 

n

We learned the implementation part of our Hybrid Framework.

n

Hope You are able to successfully execute the test cases using this approach.

n

Please share your feedback or queries as comments below (further You can connect with us using 

n

FB, G+ , Twitter , Linked In

n

In our next post we are going to discuss how we converted our Keyword driven framework to Hybrid Framework.

Was this article helpful?
YesNo

Similar Posts