Tag: intelliJ

Working with multiple data using DataTable in Cucumber for Java

In our last post we discussed getting started with cucumber for Java, in this post we will discuss working with multiple data using DataTable in Cucumber for Java. We have already discussed about working with multiple data in Specflow of C#, which has Table class, but here in Cucumber for Java they have class named DataTable.

Working with multiple data in Cucumber

We might need to supply multiple data instead of hardcoded value passed in steps from feature files, this happens most of the time while working with your project

This can be done using DataTable class available in Cucumber, basically DataTables are of type List<List<String>>

Table in the scenario looks something like this

Here is the complete videos of the above discussion

Working with DataTable using DataTable.raw()

Working with DataTable using custom class

Thanks for reading the post and watching the video!!!

Please leave your comments and let me know if there is anything I should update in this post.

Thanks,
Karthik KK

Getting started with Cucumber for Selenium

In this post we will discuss about getting started with Cucumber

Cucumber

Cucumber is a tool which helps Behavioral Driven Development (BDD).

Cucumber as a tools support different language implementation like Java, JS, PHP, Ruby, C# etc.

We have already discussed about C# based implementation of cucumber in our ExcuteAutomation channel a lot using tool called Specflow

Installation pre-requisite

In this video series, I am going to use IntelliJ IDE running on Windows 10 operating system, but you can use any IDE you like

Along with that we need following JAR files

  • Cucumber-core
  • Cucumber-java
  • Cucumber-java-deps
  • Cucumber-jvm
  • Gherkin
  • Selenium (and its related jars)

Here is the complete videos of above discussion

Video 1

Video 2

Thanks for reading the post and watching the video!!!

Please leave your comments and let me know if there is anything I should update in this post.

Thanks,
Karthik KK