1 / 18

Selenium Framework using Java | Selenium Tutorial | Selenium Training Online | Edureka

( 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

EdurekaIN
Download Presentation

Selenium Framework using Java | Selenium Tutorial | Selenium Training Online | Edureka

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Agenda SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver

  2. 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

  3. 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

  4. 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

  5. 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

  6. 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

  7. Data Driven Framework SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver

  8. 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

  9. The Question Is:- Can Selenium WebDriver read data from an Excel file for input? SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver

  10. 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

  11. 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

  12. Keyword Driven Framework SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver

  13. 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

  14. 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

  15. Hybrid Framework Uses the best features of Data Driven & Keyword Driven framework SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver

  16. 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

  17. 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

More Related