naveen thanks a lot for this video its very helpful, just a request you to please upload a video on validation of table values on web page using data Table in feature file.
Made the concept so clear and simple, thanks a lot, one question - here u are passing 3 sets of data but suppose if we have multiple sets of data, then should we use the third party files.
@Naveen great Tutorials,can we implement Serenity reports feature for the existing framework(we are following Page object model with Cucumber/Maven/Junit and Java)Please Advise.
Hi Naveen, Please suggest how can we pass null values in feature file. I am verifying a scenario where I have to keep some parameters blank. How can we achieve this in feature file?
Hi Ishata, I also faced similar challenge - I want to pass a space through feature file pipes. Please let me know if you have found a solution to this.
I'm getting the following exception: "io.cucumber.datatable.UndefinedDataTableTypeException: Can't convert DataTable to List. Please review these problems: - There was a table cell transformer for java.lang.String but the table was too wide to use it. Please reduce the table width to use this converter. - There was no table entry or table row transformer registered for java.lang.String. Please consider registering a table entry or row transformer. - There was no default table entry transformer registered to transform java.lang.String. Please consider registering a default table entry transformer"
Even i was getting the same error. @Naveen AutomationLabs. My error got resolved after i changed the code in Step Definition file . The error gets resolved after you change the List to just List. See below List users = dataTable.asList(); for (String u : users) { System.out.println(u); }
@@tohfatulnayeem5265 Thanks for both of your comments. List userList = dataTable.cells(); for (List list : userList) { System.out.println(list); } OR List userList = dataTable.asList(); for (String list : userList) { System.out.println(list); }
@Naveen: Just to add more points regarding DataTable 1. DataTable should be the last parameter in the stepdefinition method if we have other parameters in our step 2. We can read the DataTable in other format as well instead of List>. Can you cover these as well if possible
Examples are nothing but we are testing with multiple sets of data. Where as DataTables are used send one set of data and will read all the data once for a scenario. Depending on the number of examples your scenario will be executed that many times
Thanks, Naveen, for the best in each part of Automation
awesome.. has been waiting for it.. watching during a client call :D
Haha 😂
Thanks @Naveen a good refresher
Nice series Naveen. Please cover the concepts like running particular scenario using testNG.xml and state sharing concepts.
can datatable and examples be used in same feature file ..technically ??
Learning new concepts ..thq🙏
Nice, Please share more concepts and Videos, Specially on the Extent reporting part. Running Cucumber with TestNG. Parallel test capabilities.
naveen thanks a lot for this video its very helpful, just a request you to please upload a video on validation of table values on web page using data Table in feature file.
it will be awesome to learn serenity ,extent report with cucumber..
Made the concept so clear and simple, thanks a lot, one question - here u are passing 3 sets of data but suppose if we have multiple sets of data, then should we use the third party files.
can we use Examples keyword with dataTable or both are different concept?
Thanks for the video 👍😊
Very good .. Keep it UP..
Thank you so much 😀
Thank you sir 🙂
@Naveen great Tutorials,can we implement Serenity reports feature for the existing framework(we are following Page object model with Cucumber/Maven/Junit and Java)Please Advise.
Hi Naveen, Please suggest how can we pass null values in feature file. I am verifying a scenario where I have to keep some parameters blank. How can we achieve this in feature file?
Hi Ishata,
I also faced similar challenge - I want to pass a space through feature file pipes. Please let me know if you have found a solution to this.
I'm getting the following exception:
"io.cucumber.datatable.UndefinedDataTableTypeException: Can't convert DataTable to List.
Please review these problems:
- There was a table cell transformer for java.lang.String but the table was too wide to use it.
Please reduce the table width to use this converter.
- There was no table entry or table row transformer registered for java.lang.String.
Please consider registering a table entry or row transformer.
- There was no default table entry transformer registered to transform java.lang.String.
Please consider registering a default table entry transformer"
Even i was getting the same error. @Naveen AutomationLabs. My error got resolved after i changed the code in Step Definition file . The error gets resolved after you change the List to just List. See below
List users = dataTable.asList();
for (String u : users) {
System.out.println(u);
}
@@socialmedia434 Hi. Thanks for your comment. I also tried the following and it worked:
List users = dataTable.cells();
@@tohfatulnayeem5265 Thanks for both of your comments.
List userList = dataTable.cells();
for (List list : userList) {
System.out.println(list);
}
OR
List userList = dataTable.asList();
for (String list : userList) {
System.out.println(list);
}
@@sharookhs2628 Thank you so much @ 1st one make sense and data came exactly same format as feature
Hi naveen Please upload a video to create Extent report in cucumber with screenshot for failure scenarios.
Pls explain about jhenkins for CICD and customized reports in cucumber.
Hi @Naveen,
Can you create a video for datatable.asLists() for custom class object rather than a String class.?
Hi Naveen can we access the data that defined in examples through datatable?
I am also stuck on this.can someone please explain
How to call this data table method from another method
thank you
@Naveen: Just to add more points regarding DataTable
1. DataTable should be the last parameter in the stepdefinition method if we have other parameters in our step
2. We can read the DataTable in other format as well instead of List>.
Can you cover these as well if possible
Yes, this is only part 1. More data table concepts will be covered in next video.
What is the difference between examples and data table.Two things looks similar. Please tell the differences.
wait for upcoming videos.
Examples are nothing but we are testing with multiple sets of data. Where as DataTables are used send one set of data and will read all the data once for a scenario. Depending on the number of examples your scenario will be executed that many times
✨
Thanks