Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

What is DataProvider in TestNG | DataProvider in Selenium | Edureka

28 views

Published on

YouTube Link: https://youtu.be/7mnbLrM89ms
** Selenium Training: https://www.edureka.co/selenium-certification-training **
This Edureka PPT on DataProvider in TestNG will talk about how to process multiple records of data and execute test cases using DataProvider Annotation. Below topics are covered in this PPT:

1. Introduction to Data-Driven Framework
2. Types of Parameterization in TestNG
3. What is DataProvider in TestNG
4. Parameterization using DataProvider
5. DataProvider Examples

Selenium playlist: https://goo.gl/NmuzXE
Selenium Blog playlist: http://bit.ly/2B7C3QR

Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in

Published in: Technology
  • Be the first to comment

  • Be the first to like this

What is DataProvider in TestNG | DataProvider in Selenium | Edureka

  1. 1. WHAT IS DATA DRIVEN FRAMEWORK? PARAMETERIZATION USING DATAPROVIDER www.edureka.co/testing-with-selenium-webdriver EXAMPLES USING DATAPROVIDER TYPES OF PARAMETERIZATION IN TESTNG WHAT IS DATAPROVIDER IN TESTNG?
  2. 2. www.edureka.co/testing-with-selenium-webdriver
  3. 3. WHAT IS DATA DRIVEN FRAMEWORK? Data Driven framework is focused on separating the test scripts logic and the test data from each other. It allows us to create test automation scripts by passing different sets of test data. www.edureka.co/testing-with-selenium-webdriver Test Data Data File Application under Test Expected Output Actual Output Test Results Driver Script
  4. 4. TYPES OF PARAMETERIZATION IN TESTNG www.edureka.co/testing-with-selenium-webdriver
  5. 5. TYPES OF PARAMETERIZATION IN TESTNG www.edureka.co/testing-with-selenium-webdriver @DataProvider(name= “searchProvider”) @Parameters({“name”, “searchKey”}) Parameter Annotation and TestNG XML DataProvider Annotation
  6. 6. WHAT IS DATAPROVIDER IN TESTNG? www.edureka.co/testing-with-selenium-webdriver
  7. 7. WHAT IS DATAPROVIDER IN TESTNG? www.edureka.co/testing-with-selenium-webdriver A Data Provider is a method on your class that returns an array of objects. This method is annotated with @DataProvider.
  8. 8. PARAMETERIZATION USING DATAPROVIDER www.edureka.co/testing-with-selenium-webdriver
  9. 9. www.edureka.co/testing-with-selenium-webdriver Testing multiple sets of data Any Data source is flexible Achieved by using @DataProvider Annotation It returns a two-dimensional JAVA object to the test method PARAMETERIZATION USING DATAPROVIDER
  10. 10. DATAPROVIDER EXAMPLES www.edureka.co/testing-with-selenium-webdriver
  11. 11. Copyright © 2017, edureka and/or its affiliates. All rights reserved. www.edureka.co
  12. 12. www.edureka.co/testing-with-selenium-webdriver

×