Welcome to my blog on different frameworks in Selenium. I hope people reading this already have a good understanding about Selenium. People you don’t have don’t worry. I will give a light intro before smelling the flavour of the framework.
SELENIUM is an open-source automation testing framework that we use to validate web applications across different browsers and platforms. So you can automate any web application which is running on the browser. Whatever the use performs in the website like Click Targets, Fill Some Forms, Drag and Drop everything is possible.
Okay, we have everything in selenium, then why do i need this Framework ? Why is everyone talking about Framework ?.Actually what is Framework ?
A framework includes code libraries, a compiler, and other programs used in the software development process. Yes it makes your job easy. Let’s assume a car you drive but what is a self driven car?. So you are making some process more automated and easy that’s it.
Frameworks in selenium are not concepts from Selenium, but its few libraries or features that we use from other programming languages. Let’s say, I am taking an example from Java, because I know java.
Apache POI Excel Read helps to read the test cases steps and data to pass to Java methods where it invokes the Selenium libraries. The Reflection from Java is used to smell Java methods and call them. In excel we have a keywords section that is nothing but methods which we created in Java. That method gets the inputs from excel and calls your selenium methods.
The hybrid framework is a mix of keyword driven and data driven framework.
We discuss about Hybrid Framework in selenium, there are few other frameworks called Keyword and Data Driven but this is mixing of both, the best word to use is best cocktail so you know both.
Let’s take a small example: I need to fill the application form, which has few elements to fill like Name, Mobile, Course etc.
How do you automate this without any framework ?
Here if you want to fill this form for 10 times with a different data set how do you achieve ?
Suggestion: Have a loop and call the sequence , but for different data I need to run.
Now we use Framework, we don’t use any new concepts from Selenium, we just feature java.
Note: Element Type I used because I will pass what type of element to don’t duplicate my keywords, else I need to duplicate my methods as enterByElementId, enterByElementName.
So here the excel has a keyword, ( method to call or step to execute ) and Data to enter. So the action and data pass happens in a single step.
Like you can have more data sets to run your test cases for different data sets and you can add many test steps as per requirement. Even the team who don’t have selenium knowledge can use this excel sheet to load different data sets and steps. Since we are using excel even you can add another column to update the test case is SUCCESS / FAIL.
If you wish don’t want to maintain the data here, you can loosely couple the data field and have only action then it becomes a keyword driven framework. Adding more flavour to this framework you can think about to integrate the TestNg and Extends Report. If you have TestNg you can make the framework more powerful.
Hope you like the blog and suggest any best blogs from selenium to share.
For any help on Selenium Certification Training.
An Overview Data Science Project Cycle Overview: Welcome all.. I am sharing some of my knowledge on Data Science and some interesting facts that I learned in real time data science with python project that I worked on. It’s really fascinating to work on real time data science with python . .
April 30, 2020Data Warehousing
Data Science is in Demand Now that you are aware that demand for Data Science is booming high, you should understand how Data Science is used in different sectors. Before that we should know what Data Analytics is all about?. We can recognize future trends or results based on historical . .
December 20, 2019Data Warehousing
ReactJS is Best for Web Development -> Do you agree? Hello Coders! Welcome to my blog. I have discussed some strong points here that will help you understand why ReactJS is best for web development. I got a chance to work in REACT after 8 years of coding in different . .
April 20, 2020Web Development
Nearby Locations: Ramapuram, DLF IT Park, Valasaravakkam, Adyar, Adambakkam, Anna Salai, Ambattur, Ashok Nagar, Aminjikarai, Anna Nagar, Besant Nagar, Chromepet, Choolaimedu, Guindy, Egmore, K.K. Nagar, Kodambakkam, Ekkattuthangal, Kilpauk, Medavakkam, Nandanam, Nungambakkam, Madipakkam, Teynampet, Nanganallur, Mylapore, Pallavaram, OMR, Porur, Pallikaranai, Saidapet, St.Thomas Mount, Perungudi, T.Nagar, Sholinganallur, Triplicane, Thoraipakkam, Tambaram, Vadapalani, Villivakkam, Thiruvanmiyur, West Mambalam, Velachery and Virugambakkam.
Copyrights © 2021 Bit Park Private Limited · All Rights Reserved · Made in Alphaweblab