CYPRESS + CUCUMBER Data Tables & Reports | Cypress Tutorial For Beginners

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

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

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

    🤖DISCORD: discord.gg/2F9E2fRGaU
    ⭐PREMIUM Cypress + Typescript course: shorturl.at/dcnPn
    📣FREE Cypress videos: shorturl.at/h6iEX

  • @Saitest
    @Saitest 2 года назад +1

  • @norgate880
    @norgate880 2 года назад +2

    Hello Joan. Is there a plan to redo this video now Cypress 10 is out and the cypress-cucumber-preprocessor has changed. While I have gotten it to run tests in the new style I cant for the life of me work out how to create HTML reports with it.

  • @mathiasmartinez1011
    @mathiasmartinez1011 2 года назад +1

    Hola joan, una consulta. He seguido tu tutorial paso a paso y de verdad me parece increible el reporte que genera cucumber. Quisiera saber si hay alguna manera de poder adjuntar en el mismo reporte los screenshots tanto para los test positivos como los que fallan. Intente seguir algunos que vi por internet y hasta ahora no he tenido exito. Te agradeceria bastante si me puedes orientar

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

      Hola Matias tendria que investigar. Apenas pueda intento echar algun vistazo

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

    Hi thanks for the video but the report part didnt work for me i got eereur msg module not found

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

      Hello:) it is a bit old. Please look for the newest videos with Cypress version 10+

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

    Thank you for the Awesome useful video! :) I have one question: How to use env variables in feature files? For example: ${Cypress.env(ADMIN_USERNAME)} . There is a task to NOT use direct the data in the Examples in the feature file. I cannot find how to use env variables.

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

      Es imposible que intentes agregar código en un .features, lo que tienes que hacer es agregarlo en el step definition. Si estás en un scenario outline solo coloca un texto "admin" y luego en tu step definition agrega un validación if(username == "admin") username=${Cypress.env(ADMIN_USERNAME)

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

    how can I put a timestamp for cucumber-json for reportin as It is always overwriting the JSON file, hope you can help me. Thanks.

  • @johnanaya3930
    @johnanaya3930 2 года назад +1

    How can I use the datatable to login with multiple user names and passwords?

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

      Hello! You can use the same approach and combine it with this video to connect Cypress to a database? ruclips.net/video/Bn6r57dm9nM/видео.html&ab_channel=JoanMedia

  • @sivakumarmudili1001
    @sivakumarmudili1001 2 года назад +1

    In npm run test single file failng remaining are why failing

    • @joanmedia
      @joanmedia  2 года назад +1

      I am not sure why, but please compare your work with my repo: github.com/JoanEsquivel/cypress-cucumber
      It was working, as you can see in the video :)

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

      @@joanmedia you did not use any Hooks if one test case fail remaining also failing