Create Data Driven Framework For Selenium WebDriver Using POI, TestNG And ANT

If you are using selenium webdriver as automation tool to test software web application and wants to create selenium webdriver data driven framework from scratch then follow bellow given steps. It will guide how to create data driven framework in selenium webdriver step by step to test software web application.

Peoples are using different frameworks like keyword driven framework, data driven framework, hybrid framework and POM with selenium webdriver to test software web application. Which framework to use is depends you software web application type. If you are testing software web application where need to use very large data in automation test process then you can use data driven or hybrid framework.

Selenium Data Driven Framework

Read Selenium WebDriver Tutorial PART-1 and PART-2 before data driven framework creation.

SELENIUM WEBDRIVER TUTORIALS PART THREE

Please follow bellow given links to create selenium web driver data driven framework from scratch
STEP 12Reporting Test Suite Execution Status
STEP 13 : Add Test Case Skip Function In automation framework
STEP 14 : Add Data Skip Function In Framework For Selenium
STEP 15 : Reporting Test Data Result In Excel
STEP 16 : Reporting Test Failure In TestNG Reports
STEP 17 : Reporting Test Cases Results In Excel
STEP 18Implement Logging Using Log4j
STEP 19ANT – Generate XSLT Reports – Part 1
STEP 20 : ANT – Generate XSLT Reports – Part 2
STEP 21Run WebDriver Test From Batch(.bat) File
STEP 22 : Introduce Selenium WebDriver In Framework
STEP 23 : Implement Load Browser Function
STEP 24 : Running Test In Different Browsers
STEP 25 : URL Centralization For Easy Future Maintanance
STEP 26 : Implement Calc Sum Test In DDF
STEP 27 : Create Object Repository For Framework
STEP 28 : Create getElementByXPath Function
STEP 29 : Create Functions For All Other Locator Types
STEP 30 : Implement Calc Tests In All Test Cases
STEP 31 : Capturing Screenshot On Failure Or Pass


STAY TUNED :).. MORE STEPS  ARE COMING SOON..

Selenium WebDriver data driven Framework key features

  • It will support only .xls files as Input data feed.
  • It will use Apache POI API to read data from .xls files and write results In .xls files.
  • It will use TestNG-XSLT Reports to generate results reports In HTML format.
  • You can feed multiple combinations of test data for executing single test case. Example : Validating Log in form’s username and password fields with different sets of data.
  • You can set Test suite execution mode (Test Suite To Be Executed or Not) In .xls file.
  • You can set Test case execution mode (Test Case To Be Executed or Not) In .xls file.
  • You can set Test data execution mode (Test Data To Be Executed or Not) In .xls file.
  • Reporting test case execution results (Pass, Fail or Skip) In .xls file after test case execution.
  • Reporting test data execution results (Pass, Fail or Skip) In .xls file after test data execution.
  • It will use Log4j – Apache Logging Services to generate execution log In applog.log file.
  • Easy to maintain software web application’s web page elements as It will use object repository to fetch web page element.
  • Easy to understand, maintain and integrate with any software web application’s test process.

selenium webdriver, selenium webdriver framework, selenium framework, selenium webdriver tutorial, framework in selenium, selenium automation framework, selenium testing, automation framework, selenium testing framework, selenium automation, selenium test framework, framework for selenium, selenium webdriver, webdriver.

47 thoughts on “Create Data Driven Framework For Selenium WebDriver Using POI, TestNG And ANT

  1. hi

    nice blogspot on selenium
    can you give example on details for hybrid framework (data driven + page object) mainly on how to reuse common function

    thanks in advanced!

  2. hi

    I love your tutorial
    currently your framework only have read input data from excel file
    If I want to separate input and output excel file
    Can you show us an example on how to write test result to output excel file, it is because in a test case, I have many items to verify/check and write the test result & print message into Output excel file.

    looking forward on your tutorial on this features, thank you.

  3. Great Work Aravind and its very very useful to All. God Bless You!!!!!!!!!!!! Waiting for More and More Tutorials……

    Appreciating ur work from bottom of my Heart….

    Stay Blessed,
    Navatha

  4. Hi Aravind,

    Can you plz help me here,i had started writing selenium web driver scripts using java,i need to run my scripts on server,i had searched for this not got any clear idea

  5. HI ArAVIND,
    Really nice blog and appreciate your helping nature and giving detail explanantion of the framework from scratch.If possible can you please help doing it using Cucumber Framework as well.
    thanks a ton

  6. Nice article..suppose we have 200 testcases Do we need to use 200 sheets for reading the inputs right?Isn't that going to be tedious task?

  7. Hi Aravind,

    Thank you so much for this wonderful blog. Many times I was stuck in setting up environment and I was never able to move forward. Your blog helped me in understanding framework and actually able to automate different scenarios. I can not thank you enough and please consider this as my gratitude for your support to the community.

    Regards,
    Ranjani

  8. I am new to Selenium Webdriver Testng and trying to Develop Data Driven framework using CSVReader (Open CSV)

    I have 5 tests in Testng and have to run those all on different urls (from CSV file). So basically I have to pick a different url and client, but other pages, elements remain same.

    My Question is, Where do I put while loop so that it reads first line and execute all the tests and then read second line and so on.

    I tried initialize CSV reader at class level, before suite, before method etc. but it throws error, it works for a particular test if I am putting insside @Test but that doesn't resolve the purpose, I couldn't find any relevant answer on the internet.

Leave a Reply

Your email address will not be published. Required fields are marked *