Cucumber DataDriven with Maps in Selenium - Part 5

preview_player
Показать описание
Maps in Data Tables:

Maps in Data Tables can be used in different ways. Headers/Columns can also be defined for the test data. A same step definition can be executed multiple times with different set of test data using Maps.

Maps in Data Tables with Header:

In the previous tutorial video of Data Tables in Cucumber, we pass Username & Password without Header, due to which the test was not much readable. What if there will be many columns. The basic concept of BDD test is to make the Test in Business readable format, so that business users can understand it easily.

Learn:
+Test Data Tables in Cucumber using Maps
+How to parametrize test cases using Data Table - Maps

Scenario Outline:

--This uses Example keyword to define the test data for the Scenario
--This works for the whole test.
--Cucumber automatically run the complete test the number of times equal to the number of data in the Test Set.

================================================

================================================
Cucumber BDD Framework Code Base GIT URL:

Note: Please update the latest Cucumber Dependencies before using Examples feature:

====================================================

***Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:

***Follow me on my Facebook Page:

Let's join our Automation community for some amazing knowledge sharing and group discussion:

-~-~~-~~~-~~-~-
========================================================
Please watch: "Selenium & Automation Interview Preparation - By Naveen AutomationLabs"
-~-~~-~~~-~~-~- Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:

Follow me on my Facebook Page:

Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:

Paid courses (Recorded) videos:
📗 Get My Paid Courses at
Paid courses (Recorded) videos:
-------------------------------

✔️SOCIAL NETWORKS
--------------------------------

Support My Channel✔️Or Buy Me A Coffee
--------------------------------
✔️Thanks for watching!
देखने के लिए धन्यवाद
Благодаря за гледането
感谢您观看
Merci d'avoir regardé
Grazie per la visione
Gracias por ver
شكرا للمشاهدة
Рекомендации по теме
Комментарии
Автор

Great videos, Please don't ever delete these videos, we will keep on watching these videos.

sanjaykumar-wxwt
Автор

Great tutorials on cucumber on youtube so far. Thanks for sharing your knowledge and experience.

AbhishekRana-pdxm
Автор

Each and every tutorials are simply Awesome... Thank you!!!

keerthid
Автор

Hi Naveen,
It will be good, if you explain these concept using Page object model conecpts and findby elements, Because real world scenarios usually return using POM concept, Those driver.find element will be rarely used.

cynoldias
Автор

Very good cucumber sessions... Getting lot of knowledge.... Thank you

sanjuk
Автор

Hi Naveen Thanks for sharing this parameterized concept, please clarify below two things
1 ) when we want to use Scenario and Scenario Outline
2) how to pass the data from XL-Sheet instead of features file for parameter concept


As per my understanding if we want to pass the data from the feature file with header name then we have to use Scenario Outline . Otherwise we can use Scenario..


Please correct it, if my understanding is wrong.

sureshsubramaniyan
Автор

Very well explained thanks, Naveen Sir !!!

mayankjain
Автор

you're doing an amazing work bro :) Thank you for sharing your knowledge

vinodhbalaji
Автор

Naveen, can u plz demonstrate the same with getting data from excel (multiple row data)
and executing the scenario multiple times.
That would be a top-notch example which everyone wants to achieve.
Thanks a ton !!!

abhikumar
Автор

Thanks Guru... You made me to feel enthu of easy learning automation.

divyamuruganath
Автор

Nice explanation
Can u also cover below points?
1. Custom DataTables
2. List of Maps
3. Map of List
4. DataTable in combination with Examples

amitkunjir
Автор

Hi Naveen. Thank you for the simple explanation.
A query: You have used the same statements in 'deals.feature' and 'dealsmap.feature'. How did you overcome error. Please help.
If anyone else reading this comment knows the answer, please respond. It will be of great help.

sindiyarajan
Автор

Hi Naveen,

I have 1question- I am very new to this (cucumber) framework
In real-time scenarios- which one most is preferable whether scenarios outline -ex’s (OR) data tables/map
Even that’s is based on application/ company scope - but more required ones?

vishnuswaroop
Автор

Hi Naveen, @22mins, instead of copy pasting new deal navigation, we can call the method in for each loop, thanks for the wonderful session

vishwambharborde
Автор

The only thing I got confused here is, After clicking on the save button and while moving to the deal page again, why don't we switch the frame. As we switch the Frame while clicking on the deal page on line number 64 ( 22:10).Thank You. Appreciate it.

PriyaBhandariOfficial
Автор

very good as usual, but you REALLY should use a magnified screen.

Star-vgix
Автор

hi naveen good series..nice.. i have small doubt ..comapre to map object Examples key word is it better..to datadriven test..pls any one can reply my query...

rameshbangaru
Автор

@Naveen : Thanks for the video. I have one query here: I have mulit set of data for multistatments, How would i do that? for example I have a scenario where I need to enter member details, then contact details then check save and then again rerun the same for the next of the data. How do I do that in Cucumber?

anikkumarsaha
Автор

Naveen I think you have skipped some manipulation on Map object @ 10:16 to 10:18.

asifsongs
Автор

Naveen, would you prefer working with data tables over examples? If so, any specific reason? Thanks!

gasparottogui