#10 - DataTable (asLists) in Cucumber BDD (Part 1) - Latest 2021

Поделиться
HTML-код
  • Опубликовано: 6 янв 2025

Комментарии • 38

  • @startareq
    @startareq 3 года назад +1

    Thanks, Naveen, for the best in each part of Automation

  • @Biswajit115
    @Biswajit115 4 года назад +4

    awesome.. has been waiting for it.. watching during a client call :D

  • @lokeshlulla3101
    @lokeshlulla3101 Месяц назад

    Thanks @Naveen a good refresher

  • @sonalsarpane3601
    @sonalsarpane3601 4 года назад +2

    Nice series Naveen. Please cover the concepts like running particular scenario using testNG.xml and state sharing concepts.

  • @harishkce1989
    @harishkce1989 Год назад +1

    can datatable and examples be used in same feature file ..technically ??

  • @user-yb2fc1ur6g
    @user-yb2fc1ur6g 4 года назад

    Learning new concepts ..thq🙏

  • @abinashbehera2409
    @abinashbehera2409 3 года назад +1

    Nice, Please share more concepts and Videos, Specially on the Extent reporting part. Running Cucumber with TestNG. Parallel test capabilities.

  • @dilipgaikwad4763
    @dilipgaikwad4763 Год назад

    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.

  • @JitendraKumar-lr3vq
    @JitendraKumar-lr3vq 4 года назад

    it will be awesome to learn serenity ,extent report with cucumber..

  • @lakshmiy4103
    @lakshmiy4103 4 года назад

    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.

  • @jayshreebraley320
    @jayshreebraley320 4 года назад

    can we use Examples keyword with dataTable or both are different concept?

  • @SarangHoley
    @SarangHoley 4 года назад

    Thanks for the video 👍😊

  • @shailweb07
    @shailweb07 4 года назад +1

    Very good .. Keep it UP..

  • @yashuy3279
    @yashuy3279 2 года назад

    Thank you sir 🙂

  • @ramadheer
    @ramadheer 3 года назад

    @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.

  • @ishataahitan149
    @ishataahitan149 3 года назад

    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?

    • @kranthijangampet2338
      @kranthijangampet2338 2 года назад

      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.

  • @tohfatulnayeem5265
    @tohfatulnayeem5265 4 года назад +1

    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"

    • @socialmedia434
      @socialmedia434 4 года назад +3

      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
      @tohfatulnayeem5265 4 года назад +1

      @@socialmedia434 Hi. Thanks for your comment. I also tried the following and it worked:
      List users = dataTable.cells();

    • @sharookhs2628
      @sharookhs2628 3 года назад +2

      @@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);
      }

    • @farzanaislam634
      @farzanaislam634 3 года назад

      @@sharookhs2628 Thank you so much @ 1st one make sense and data came exactly same format as feature

  • @Sehkarskr
    @Sehkarskr 4 года назад +1

    Hi naveen Please upload a video to create Extent report in cucumber with screenshot for failure scenarios.

  • @user-gh2kr5kz1x
    @user-gh2kr5kz1x 4 года назад

    Pls explain about jhenkins for CICD and customized reports in cucumber.

  • @chetanmali5575
    @chetanmali5575 3 года назад

    Hi @Naveen,
    Can you create a video for datatable.asLists() for custom class object rather than a String class.?

  • @reenep91
    @reenep91 4 года назад

    Hi Naveen can we access the data that defined in examples through datatable?

    • @surbhisaxena1729
      @surbhisaxena1729 3 года назад

      I am also stuck on this.can someone please explain

  • @mayankagrawal1999
    @mayankagrawal1999 3 года назад

    How to call this data table method from another method

  • @ahmettemel8245
    @ahmettemel8245 2 года назад

    thank you

  • @tulasiramsunkara
    @tulasiramsunkara 4 года назад +1

    @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

    • @naveenautomationlabs
      @naveenautomationlabs  4 года назад +3

      Yes, this is only part 1. More data table concepts will be covered in next video.

  • @user-gh2kr5kz1x
    @user-gh2kr5kz1x 4 года назад

    What is the difference between examples and data table.Two things looks similar. Please tell the differences.

    • @naveenautomationlabs
      @naveenautomationlabs  4 года назад +1

      wait for upcoming videos.

    • @tulasiramsunkara
      @tulasiramsunkara 4 года назад +2

      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

  • @parveenchauhan5132
    @parveenchauhan5132 4 года назад +1

  • @ashrithachar5304
    @ashrithachar5304 2 года назад

    Thanks