Selenium Framework for Beginners 19 | Selenium TestNG How to get data from Excel using DataProvider

Automation Step by Step August 13, 2018
Video Thumbnail
Automation Step by Step Logo

Automation Step by Step

@raghavpal

About

Simple Basic Beginners Step-by-Step tutorials ❤️ I create videos on Automation, Testing, DevOps, CI and related tools, technologies and platform Raghav is a teacher and founder of AutomationStepByStep.com He was an Automation Architect and has led multiple teams of Automation and DevOps Engineers. For over a decade, Raghav witnessed, worked, and delivered multiple Automation Testing Projects and worked with some awesome people in this industry ► https://automationstepbystep.com/ Some topics covered: - Jenkins - JMeter - Selenium - Appium - Cypress - Playwright - Katalon Studio - API Testing - Postman - Docker - Kubernetes - Other DevOps topics Words from Raghav We often need someone to hold our hand and help us take the first few steps before we learn to walk and run. I am on a mission to spread education and make it available to anyone willing to learn Never Stop Learning Raghav All education here is FREE FOR ALL, FOREVER Share with as many people as you can in your lifetime

Video Description

more about Raghav - https://automationstepbystep.com/ Today we will learn How to get data from Excel using DataProvider of TestNG REFERENCES How to use excel for getting data https://www.youtube.com/watch?v=CV3SOorFydE Today we will learn 1. How to get test data from excel 2. How to create excel data provider function 3. How to use testNG @DataProvider 4. How to refer test data from DataProvider 5. Run a sample data driven Selenium Test helpful tips Prerequisite Add excel reading libraries (Apache POI) Create functions to read data from excel Watch the video - https://www.youtube.com/watch?v=CV3SOorFydE How to get test data from excel Step 1 -Create a function to get Row Count Step 2 - Create a function to get Column Count Step 3 - Create a function to get String cell data Step 4 - Create a function to get Numerical cell data How to create Excel Data Provider function Step 1 - Create a new class ExcelDataProvider Step 2 - Create a function and create object for ExcelUtils ExcelUtils excel = new ExcelUtils(“excelpath”, “sheetname”); Step 3 - Get row and column count int rowCount = excel.getRowCount(); int colCount = excel.getColCount(); Step 4 - Run a loop to get all data in an Object Array How to use testNG @DataProvider Step 1 Create a function and provide testNG annotation @DataProvider(name = “testData”) Step 2 Call the excel data provider function with excel and sheet name Step 3 Return the data object How to get test data from excel Step 1 Create a function and provide testNG annotation @Test(dataProvider = “testData”) Step 2 In the function arguments, get input parameters equal to the parameters in the excel file Step 3 Use the values in your test #SeleniumDataDrivenFramework #SeleniumTestNGFramework #SeleniumTraining #SeleniumBeginnerTutorials PLAYLISTS SELENIUM JAVA FRAMEWORK BEGINNERS https://www.youtube.com/playlist?list=PLhW3qG5bs-L8oRay6qeS70vJYZ3SBQnFa KATALON STUDIO https://www.youtube.com/playlist?list=PLhW3qG5bs-L_D4ZePNNjvmIULuu6mBHbu SELENIUM BEGINNERS https://www.youtube.com/playlist?list=PLhW3qG5bs-L_s9HdC5zNshE5Ti8jABwlU SELENIUM TIPS https://www.youtube.com/playlist?list=PLhW3qG5bs-L-QcWg_3niY8_czGfYT6QZb SELENIUM PYTHON https://www.youtube.com/playlist?list=PLhW3qG5bs-L9JjtXx-adxWdbjaxeRhi7h SELENIUM BUILDER https://www.youtube.com/playlist?list=PLhW3qG5bs-L8X5gd41T_BgebxSVtzRNt9 JAVA https://www.youtube.com/playlist?list=PLhW3qG5bs-L_qj1L5hnHvJYeFpQ_g4UuU JAVA TIPS & TRICKS https://www.youtube.com/playlist?list=PLhW3qG5bs-L8SGvNCb9Nj66JZkWPwfZFc JENKINS https://www.youtube.com/playlist?list=PLhW3qG5bs-L_ZCOA4zNPSoGbnVQ-rp_dG JENKINS TIPS & TRICKS https://www.youtube.com/playlist?list=PLhW3qG5bs-L8T-0JT464rkIvnUz5q4CQC JMETER BEGINNER https://www.youtube.com/playlist?list=PLhW3qG5bs-L-zox1h3eIL7CZh5zJmci4c JMETER INTERMEDIATE https://www.youtube.com/playlist?list=PLhW3qG5bs-L-PpK83CC_m_bWd_722tvgk JMETER ADVANCED https://www.youtube.com/playlist?list=PLhW3qG5bs-L_Eosy1Nj1tKHC5jcBAVkPb JMETER TIPS & TRICKS https://www.youtube.com/playlist?list=PLhW3qG5bs-L-oMT1Cnrurt7gEaLrRub2V SOAPUI https://www.youtube.com/playlist?list=PLhW3qG5bs-L-Bt9T_bnyflQ0Te4VgFhKF POSTMAN https://www.youtube.com/playlist?list=PLhW3qG5bs-L-oT0GenwPLcJAPD_SiFK3C GIT & GITHUB https://www.youtube.com/playlist?list=PLhW3qG5bs-L8OlICbNX9u4MZ3rAt5c5GG DOCKER https://www.youtube.com/playlist?list=PLhW3qG5bs-L99pQsZ74f-LC-tOEsBp2rK ROBOT FRAMEWORK https://www.youtube.com/playlist?list=PLhW3qG5bs-L9l2I8K8dEhw6HXy-Z-33w3 WEB SERVICES (API) https://www.youtube.com/playlist?list=PLhW3qG5bs-L9E2KV6vVdB-YTk-sRxmRAB REDIS BEGINNER TUTORIALS https://www.youtube.com/playlist?list=PLhW3qG5bs-L8n1fsiT8z_VnDhnUk4vaVq MAVEN https://www.youtube.com/playlist?list=PLhW3qG5bs-L8XkBrI-G5aTUo6QwEEoVcj MISC https://www.youtube.com/playlist?list=PLhW3qG5bs-L8nTyDWDO24lXFLptaqrAKZ TOOLS & TIPS https://www.youtube.com/playlist?list=PLhW3qG5bs-L8dQYImOOArI1jaofMCc4hb QnA FRIDAY https://www.youtube.com/playlist?list=PLhW3qG5bs-L8r3wdQ3evX9mIZpHuwiDAj SUNDAY SPECIAL https://www.youtube.com/playlist?list=PLhW3qG5bs-L83XJnJyqvVdOjIaYlXSvUx ALL PLAYLISTS https://www.youtube.com/channel/UCTt7pyY-o0eltq14glaG5dg/playlists?sort=dd&view=1&shelf_id=0 Like on FACEBOOK : https://www.facebook.com/automationstepbystep Follow on TWITTER: https://twitter.com/automationsbs Subscribe on YOUTUBE : http://youtube.com/automationstepbystep ----------- Connect with Raghav ------------ Website - https://automationstepbystep.com/ LifeCharger - http://lifecharger.org/ Udemy Courses - https://www.udemy.com/user/raghav-pal-3/ Facebook - https://www.facebook.com/automationstepbystep Twitter - https://twitter.com/automationsbs Youtube - http://youtube.com/automationstepbystep Like, Subscribe & Share You can support my mission for education by sharing this knowledge and helping as many people as you can ________ ONLINE COURSES TO LEARN ________ https://automationstepbystep.com/ Never Stop Learning Raghav

You May Also Like

90s Nostalgia Must-Haves

AI-recommended products based on this video

Loading...
Carrying Storage Case Compatible with Nintendo Switch & OLED Model, Switch Case with 18 Game Cartridges Protective Hard Shell Travel Bag Pouch for Nintendo Switch Console & Accessories, Black

Carrying Storage Case Compatible with Nintendo Switch & OLED Model, Switch Case with 18 Game Cartridges Protective Hard Shell Travel Bag Pouch for Nintendo Switch Console & Accessories, Black

(1,320)
$44.99
PrimeFREE delivery Sun, Jun 15
Loading...
HEYSTOP Switch Case/Switch OLED Case Compatible Nintendo Switch & 2021 OLED Model Switch Protective Hard Portable Travel Carry Case Shell Pouch Compatible with Nintendo Switch Console and Accessories

HEYSTOP Switch Case/Switch OLED Case Compatible Nintendo Switch & 2021 OLED Model Switch Protective Hard Portable Travel Carry Case Shell Pouch Compatible with Nintendo Switch Console and Accessories

(7,809)
$13.99
FREE delivery Sun, Jun 15 on your first order
50+ bought in past month
Loading...
daydayup Hestia Goods Switch Case and Tempered Glass Screen Protector for Nintendo Switch - Deluxe Hard Shell Travel Carrying Case, Pouch Case for Nintendo Switch Console & Accessories, Streak Red

daydayup Hestia Goods Switch Case and Tempered Glass Screen Protector for Nintendo Switch - Deluxe Hard Shell Travel Carrying Case, Pouch Case for Nintendo Switch Console & Accessories, Streak Red

(6,078)
$18.59
FREE delivery Sun, Jun 15 on your first order
100+ bought in past month
Loading...
HEYSTOP Case Compatible with Nintendo Switch Carry Case 9 in 1 Pouch Switch Cover Case HD Switch Screen Protector Thumb Grips Caps for Nintendo Switch Console Accessories…

HEYSTOP Case Compatible with Nintendo Switch Carry Case 9 in 1 Pouch Switch Cover Case HD Switch Screen Protector Thumb Grips Caps for Nintendo Switch Console Accessories…

(33,477)
$23.87
FREE delivery Sun, Jun 15 on your first order
100+ bought in past month
Loading...
LEGO Super Mario: Mario Kart Standard Kit - Collectible Toy Building Set for Kids, Boys and Girls, Ages 7+ - Nintendo Mario Kart Toy for Fans - Gift Idea for Birthdays - 72032

LEGO Super Mario: Mario Kart Standard Kit - Collectible Toy Building Set for Kids, Boys and Girls, Ages 7+ - Nintendo Mario Kart Toy for Fans - Gift Idea for Birthdays - 72032

(230)
$19.98
FREE delivery Sat, Jun 14 on your first order
600+ bought in past month
Loading...
LEGO Super Mario Piranha Plant, Build and Display Super Mario Brothers Collectible for Adults and Teens, Authentically Detailed Posable Figure, Birthday Gift for Gamers and Super Mario Fans, 71426

LEGO Super Mario Piranha Plant, Build and Display Super Mario Brothers Collectible for Adults and Teens, Authentically Detailed Posable Figure, Birthday Gift for Gamers and Super Mario Fans, 71426

(1,656)
$68.98$68.97
PrimeFREE delivery Sat, Jun 14
300+ bought in past month
Loading...
LEGO Super Mario Battle with Roy at Peach’s Castle, Nintendo Character Mario Toy for Kids, Castle Toy & Adventure Set, Super Mario Gift for Girls, Boys & Gamers Ages 7 and up, 71435

LEGO Super Mario Battle with Roy at Peach’s Castle, Nintendo Character Mario Toy for Kids, Castle Toy & Adventure Set, Super Mario Gift for Girls, Boys & Gamers Ages 7 and up, 71435

(150)
$63.94
PrimeFREE delivery Sat, Jun 14
50+ bought in past month
Loading...
LEGO Super Mario Bowser’s Muscle Car Expansion Set, Collectible Bowser Toy for Kids, Gift for Boys, Girls and Gamers Ages 8 and Up, 71431

LEGO Super Mario Bowser’s Muscle Car Expansion Set, Collectible Bowser Toy for Kids, Gift for Boys, Girls and Gamers Ages 8 and Up, 71431

(1,435)
$34.94
FREE delivery Sat, Jun 14 on your first order
200+ bought in past month
Loading...
tomtoc Switch Case for Nintendo Switch, Slim Switch Sleeve with 10 Game Cartridges, Protective Switch Carry Case for Travel, with Original Patent and Military Level Protection, Black

tomtoc Switch Case for Nintendo Switch, Slim Switch Sleeve with 10 Game Cartridges, Protective Switch Carry Case for Travel, with Original Patent and Military Level Protection, Black

(2,247)
$29.99
Loading...
Switch 2 Case Compatible with Nintendo 2 2025, Nintendo Switch 2 Case fit for Joycon & Adapter, OIVO Switch 2 Carrying Case with 28 Game Cards Holder for 2025 Nintendo 2 & 2021 OLED & 2017 Original
Best Seller

Switch 2 Case Compatible with Nintendo 2 2025, Nintendo Switch 2 Case fit for Joycon & Adapter, OIVO Switch 2 Carrying Case with 28 Game Cards Holder for 2025 Nintendo 2 & 2021 OLED & 2017 Original

(10)
$32.99
FREE delivery Sat, Jun 14 on your first order
100+ bought in past month
Loading...
82PCS Game Birthday Party Supplies, Party Favors for Kids, Party Supplies Included, 12 Slap Bracelet, 10 Loot Bags, 10 Keychain, 50 Birthday Stickers

82PCS Game Birthday Party Supplies, Party Favors for Kids, Party Supplies Included, 12 Slap Bracelet, 10 Loot Bags, 10 Keychain, 50 Birthday Stickers

(0)
$14.99
FREE delivery Wed, Aug 20 on your first order