#12 - Scenario Outline with Examples keyword in #Cucumber (Data Driven Testing) - Latest Features

preview_player
Показать описание
#Cucumber #CucumberLatest #NaveenAutomationLabs

In this video, I have explained what is Scenario Outline with Examples keyword in #Cucumber (latest version).

We will see how to achieve Data Driven testing in Cucumber with Examples and Scenario Outline keywords from feature file.

We will also see the difference between Cucumber 4 and Cucumber 6 w.r.t Examples - Data driven testing.

Full Cucumber code repo:

~~~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:

Рекомендации по теме
Комментарии
Автор

Hi Naveen Good work, it is definitely a bug, however the bug is at the step generation, if the examples contains both int and double, it should just generate a method with double param only. I verified by removing the int method and keeping the double method, the execution worked well. So instead of resorting to String where lots of parsing need to be done within step code, or reverting to 4.8.1missig some other good stuff from latest version. just removing the overloaded method should work fine. I enjoy learning from you, looking forward to more videos from you.

tharvik
Автор

Many Thanks, Naveen for your tremendous efforts in teaching the needy.

vinharman
Автор

Best tutorial for automation i recommend for anyone :)

szuz
Автор

Hi Naveen, this kind of learning is very important nowadays. Please keep doing this wonderful job.

kavishautomationfactory
Автор

@Naveen:: Points observed

1. If we have a double value with multiple digits eg (12, 34, 123). We cannot use direct parser... Solution would be instead of directly parsing the string... We can filter the string in the stepdefinition method with replaceAll("[, .]") and the parse with required wrapper class.... I thought this is one of the

Thanks for this video You rocks

tulasiramsunkara
Автор

For Automation from where to start beginners?
Your explanation style is very nice

mazharkhatri
Автор

I think 6.9 version they should address this issue because those are habitual working with Cucumber 4.x.x they will confuse and in my point of view it has to count has major bug.

Otherwise we have to keep in mind to "parse" every value from examples and initially we have define "String".

Thanks Naveen !!

ashuiet
Автор

As per my understanding, they need to update the step definition creation part.It should not create and display 2 overloaded methods with int and double params as double can handle both.

ybfcurg
Автор

Can we use data table with Scenario Outline ?

ashutoshbharati
Автор

Can we use single method with double parameter for tax and final amount ....?

ybfcurg
Автор

Hi Naveen, I have one question, can we use outside values ( stored in map ) in scenario outline examples. instead of hardcode the value directly.

menagak
Автор

Can you please make with python using pycharm Naveen and good work 👏

muralimohan
Автор

Hey Navin, Can i use different dropdown values in examples? And I select the option "<dropdownText>" by text in drop down "#select" by JS

pujasharma
Автор

Hi Naveen, my doubt is we can we change the int also into double and input all the numbers in the examples as a double.

vishnuchandar
Автор

Hi Naveen, Can we use the Background keyword with Scenario Outline?

kapilrana
Автор

In data driven testing multiple instances of browsers are opened at time or on a single browser it performs operation one after another .could you clarify it.

chitradaadikrishna
Автор

Which selenium framwork will be in demand ? In 2021

vkmca
Автор

Hi I'm using same dependencies but my console printing scenario steps with same old black colour instead of green as in this series the only difference is i downloaded cucumber natural plugin.
Is this the cause???
Please let me know

mahiii
Автор

Hi Naveen, first of all thank you so much for a wonderful cucumber series. I have one Q please, if i want to pass a date which is todays date in Example then how can I pass it? Today's date will change and I don't want to change it manually; every time i run the feature file. Is there any solution for it?

gorax
Автор

Hi Naveen,
Is there a way to skip any row of examples table from executing without commenting it?

Imran-M-