Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Agenda
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Agenda For The Session
i. Selenium As An Automation Testing Tool
ii. What Is Data Driven Framework?
iii. Using Apache POI To Achieve Data Driven Testing
iv. Demo: Implementing Data Driven Testing In Selenium
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Selenium Automation Testing Tool
Selenium is an open-source tool which automates web browser testing.
It is mainly used for functional testing (unit testing & regression testing).
Programming Language
Support
Web Browser Support
Operating System Support
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
What Is Data Driven Framework?
Let’s understand what is Data Driven testing and
what are its benefits.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
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.
Test
Script
Data
Set
Code and data stored separately
DATA DRIVEN FRAMEWORK
 Automation testing is driven by the data set under test.
 Same test script will work for different data sets.
 Eg:- Login credentials stored in excel & passed as parameters to the code.
Features
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Does Selenium WebDriver support reading
of data from an Excel file for input?
The Question Is:-
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
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.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Integrating Selenium WebDriver & Apache POI
Username
field
Password
field
Method which takes the input
from the mentioned Excel file.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Hands-on:-
Selenium WebDriver + Apache POI
Let’s learn how Selenium & POI are used together to achieve
Data Driven Testing in Selenium with a Demo.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Session In A Minute
Selenium Automation Testing Tool
Apache POI For Data Driven Testing
What Is Data Driven Framework?
Demo: Data Driven Testing In Selenium
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
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.

Data Driven Framework In Selenium Webdriver | Data Driven Testing | Selenium Tutorial | Edureka

  • 1.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. Agenda
  • 2.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. Agenda For The Session i. Selenium As An Automation Testing Tool ii. What Is Data Driven Framework? iii. Using Apache POI To Achieve Data Driven Testing iv. Demo: Implementing Data Driven Testing In Selenium
  • 3.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. Selenium Automation Testing Tool Selenium is an open-source tool which automates web browser testing. It is mainly used for functional testing (unit testing & regression testing). Programming Language Support Web Browser Support Operating System Support
  • 4.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. What Is Data Driven Framework? Let’s understand what is Data Driven testing and what are its benefits.
  • 5.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. 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. Test Script Data Set Code and data stored separately DATA DRIVEN FRAMEWORK  Automation testing is driven by the data set under test.  Same test script will work for different data sets.  Eg:- Login credentials stored in excel & passed as parameters to the code. Features
  • 6.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. Does Selenium WebDriver support reading of data from an Excel file for input? The Question Is:-
  • 7.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. 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.
  • 8.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. Integrating Selenium WebDriver & Apache POI Username field Password field Method which takes the input from the mentioned Excel file.
  • 9.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. Hands-on:- Selenium WebDriver + Apache POI Let’s learn how Selenium & POI are used together to achieve Data Driven Testing in Selenium with a Demo.
  • 10.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. Session In A Minute Selenium Automation Testing Tool Apache POI For Data Driven Testing What Is Data Driven Framework? Demo: Data Driven Testing In Selenium
  • 11.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved. 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.