180 likes | 321 Views
( Selenium Training: https://www.edureka.co/testing-with-selenium-webdriver )<br>Selenium Frameworks are used to optimize the code structure and helps in code maintenance. Watch this video on "Selenium Framework using Java" to learn how the three common Selenium frameworks can be created. The three Selenium frameworks are:<br>1. Data Driven Framework using java<br>2. Keyword Driven Framework<br>3. Hybrid Frmaework<br><br>Introduction to Selenium blog: https://goo.gl/b523IO<br><br>Check our complete Selenium playlist here: https://goo.gl/NmuzXE
E N D
Agenda SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Agenda For The Session i. Need for a Selenium Framework ii. What is a Selenium Framework? iii. Types of frameworks: i. Data Driven testing framework ii. Keyword Driven testing framework iii. Hybrid framework SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Need For Selenium Framework Finding & fixing a bug in a million line code is insanely challenging. Automation, Simplicity & Efficiency makes a testers life easy! SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Benefits Of A Selenium Framework Increased Code Re-usage Improved Code Readability 1 2 Finding a bug in a million line code is insanely challenging. Higher Portability Reduced Script maintenance 3 4 SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
What Is A Selenium Framework Selenium framework is a code structure to make code maintenance simper & code readability better SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Types Of Selenium Frameworks Selenium framework is a code structure to make code maintenance simper & code readability better Types of Frameworks DATA DRIVEN FRAMEWORK KEYWORD DRIVEN FRAMEWORK Data Set Test Script Test Script Methods Code and Methods stored separately Code and data stored separately HYBRID FRAMEWORK Uses the best features of both SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Data Driven Framework SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
What Is Data Driven Framework? Data Driven Framework is a testing strategy in which the data set under test, is stored separately from the test script. DATA DRIVEN FRAMEWORK Features → Automation testing is driven by the data set under test. Data Set Test Script → Same test script will work for different data sets. → Eg:- Login credentials stored in excel & passed as parameters to the code. Code and data stored separately SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
The Question Is:- Can Selenium WebDriver read data from an Excel file for input? SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Selenium WebDriver + Apache POI No! Selenium WebDriver does not support read and write operations on excel files. But, it can be supported with the integration of third party tool (Apache POI). .xlsx .xls Apache POI is a library, which allows you to read, create & edit Microsoft Office-documents using Java. Advantages:- Easy maintenance and improved test coverage. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Integrating Selenium WebDriver & Apache POI Method which takes the input from the mentioned Excel file. Username field Password field SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Keyword Driven Framework SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
What Is Keyword Driven Framework? Keyword Driven Framework is a strategy in which the methods to be tested, is stored in an external file. KEYWORD DRIVEN FRAMEWORK Features → Automation testing is driven by the file containing the method names to be tested. Test Script Methods → The same script will work for executing the methods mentioned in the file. Code and methods stored separately → Eg:- Method names to be executed are stored in the excel. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Demo: Method Names Stored In Excel File Method names present here will be executed as part of the test case. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Hybrid Framework Uses the best features of Data Driven & Keyword Driven framework SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Demo: Java Reflection Class Is Used Java reflection class is used to import the methods of one class into another class SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
WebDriver vs. IDE vs. RC ➢ Data Warehouse is like a relational database designed for analytical needs. ➢ It functions on the basis of OLAP (Online Analytical Processing). ➢ It is a central location where consolidated data from multiple locations (databases) are stored. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver