What is Framework? Why we use Framework?

Before deep dive into the test automation frameworks, let’s make framework word more friendly. I found many people who knows all concept of Selenium but still very afraid of framework word. Framework is the easiest topic in Selenium if you have clear understanding on Selenium concepts. So lets start make framework easiest together.

What is a framework?

A framework defines a set of rules or best practices which we can follow in a systematic way to achieve the desired results.

Let’s make it easy and understand the definition with example –

Now consider You want to do some survey on Human behaviors for your business and you want people’s reviews on it. You invite 50 people and ask them to write reviews about Human behaviors for your business. People review it and when you read them, you find maximum points written by them are of no use and personal details are also not proper. Actually people didn’t know what types of points you are looking for. Some people didn’t write full name, age, gender etc.
Now you make a form where you write all field names related to personal their details and some questions answers related to human behavior and distributed same form to all people. This time you get all details properly and data for research.
Now we can say every one followed some similar set of rules, standard and clear flow and with this we achieve our desired result more conveniently.

Now base on the above example you can easily guess Why we use Framework ?

Because in a test automation project, we do perform different tasks by using different types of files. To organize and manage all those files and to finish all the tasks in a systematic approach we use a framework.

Now Let’s listing out the Advantages of using Test Automation Framework based on above explanation –

  1. Saves time and money.
  2. Make automation testing is faster during execution.
  3. Well Organised and manageable.
  4. Re-usability of code for other or within projects. Create Framework one time and execute multiple times with less or no maintenance.
  5. Easy reporting. It generates automatic reports after test execution.
  6. Low cost maintenance. It is cheaper compared to manual testing for a long run.
  7. Automated testing is more reliable after using a framework.
  8. Easily Understandable.
  9. It decides certain set of Rules
  10. It defines the code standard.

So Now you can easily figured out why do you need a framework and what is actually a framework. Frameworks makes your automation testing easy.

Next

Leave a comment

Design a site like this with WordPress.com
Get started