📚 AUTOMATE your TESTS NOW with CYPRESS 10+ & CUCUMBER | Project Boilerplate 🔥

Поділитися
Вставка
  • Опубліковано 8 лис 2024

КОМЕНТАРІ • 77

  • @joanmedia
    @joanmedia  2 роки тому +5

    AND, and BUT has been depracated from Badeball/Cucumber-Preprocesor(check the latest changes in his repo), so I needed to refactor a bit the step definitions. You can find the latest changes in the repository: github.com/JoanEsquivel/cypress-cucumber-boilerplate
    🤖DISCORD: discord.gg/2F9E2fRGaU
    ⭐PREMIUM Cypress + Typescript course: shorturl.at/dcnPn
    📣FREE Cypress videos: shorturl.at/h6iEX

  • @craigmitchell604
    @craigmitchell604 Рік тому +3

    I do not know this gentleman. But I do know how much of his time and expertise he has given to us for free.
    He now has a Udemy course that I have just purchased. I purchased this course for two reasons: first, perhaps I will learn something that he has not yet taught me and second, to pay this gentleman back for what he has already paid forward to us.
    Loyalty.
    And gratitude. Thank you sir.

  • @jasp402
    @jasp402 2 роки тому +1

    Excelent! The best video of cypress with cucumber preproccessor! Awesome! Geat!

  • @manasgupta1899
    @manasgupta1899 Рік тому +1

    Man thanks for this video I was stuck , as i was getting no step def found error as it was by default looking in different folder, and i was not able to change that, no after seeing your video I got the solution , 🙌🙌

  • @chrisrobert7286
    @chrisrobert7286 Рік тому +1

    Did not work until I saw your video, cypress official documentation is nothing compared to your video. Opened a beer and toasted you ! Cheers m8 !

  • @NeverCodeAlone
    @NeverCodeAlone Рік тому +1

    Very nice video - thx a lot

  • @asmaTest
    @asmaTest Рік тому +1

    Thank your for the profissionnel vidéos

  • @tejkumarkempaiah4906
    @tejkumarkempaiah4906 3 місяці тому

    Million tanks for the video ❤, Can you share a video or blog or code repo for migrating a cypress version 13 which uses typescript using cucumber

  • @CaseyClingaman
    @CaseyClingaman Рік тому

    Thanks for the awesome video!
    Quick question about the multiple-cucumber-html-reporter: where does the JSON output to?
    In your docs, you mention that it goes to the "./reports/cucumber-htmlreport.html" path but I don't see that in your repo. Does this folder autogenerate when a report is created from running your tests?

  • @guravasamtimi3372
    @guravasamtimi3372 2 роки тому +1

    Hello, Joan!
    While running .feature file getting bellow error on test runner
    Step implementation missing for "A user opens a saucelabs website".
    We tried searching for files containing step definitions using the following search pattern templates:
    - cypress\e2e\features/[filepath]/*/.{js,mjs,ts,tsx}
    - cypress\e2e\features/[filepath].{js,mjs,ts,tsx}
    - cypress/support/step_definitions/*/.{js,mjs,ts,tsx}
    These templates resolved to the following search patterns:
    - cypress\e2e\features\login\*.{js,mjs,ts,tsx}
    - cypress\e2e\features\login.{js,mjs,ts,tsx}
    - cypress\support\step_definitions\*.{js,mjs,ts,tsx}
    These patterns matched no files containing step definitions. This almost certainly means that you have misconfigured stepDefinitions.

    • @joanmedia
      @joanmedia  2 роки тому

      Hey checkout the latest "release". Worked on Github Actions and seems to be working fine now. github.com/JoanEsquivel/cypress-cucumber-boilerplate/actions/runs/3114455611

  • @mythilymanickam2740
    @mythilymanickam2740 2 роки тому +1

    Hi Joan,
    can you please post a video to pass the testdata from Excel to our feature/stepdefinition using Cypress-Cucumber-preprocessor

  • @rorock9
    @rorock9 2 роки тому +1

    Hello thank you for the update , it would be better to put some links in the description.
    For the tests under common folder where should i put them now ?

    • @joanmedia
      @joanmedia  2 роки тому +1

      Hello! You can check the repo I posted in the description, there are all the links I reviewed in the video :)

  • @MrYosoUPload
    @MrYosoUPload 2 роки тому +1

    Hi Joan. Been following your Cypress related videos for quite some time now. Would just like to know on when did you create the "cypress-cucumber-preprocessorrc.json" file. And what's it for? Appreciate your reply on this. TIA!

    • @joanmedia
      @joanmedia  2 роки тому

      Hello!! Thanks for follow up the channel, really appreciate it.
      Not sure if I missed the configuration in the video but you can access the full repo at: github.com/JoanEsquivel/cypress-cucumber-boilerplate
      Three you can see the cypress-cucumber-preprocessorrc.json and its configuration.
      What's it for?
      - Enable disable JSON reports(logs)
      - Enable messages(logs)
      - Enable HTML report(new feature)
      - Specify where are your step definitions.
      Take a look at: github.com/JoanEsquivel/cypress-cucumber-boilerplate/blob/master/.cypress-cucumber-preprocessorrc.json

  • @priyamvadabhardwaj9796
    @priyamvadabhardwaj9796 2 роки тому +1

    how will you get report on jenkins. Do you need download and install the JSON fomatter on jenkins machine?

    • @joanmedia
      @joanmedia  2 роки тому

      Only solution I see, yes. Or maybe look for a workaround.

  • @maxn739
    @maxn739 2 роки тому +1

    Thank you for the video! I have a question - my feature file shows me what steps are undefined, but it's working and running tests. What I'm missing may be some VS plugin?

    • @omergoker517
      @omergoker517 2 роки тому

      Same for me. Did you found a solution?

  • @realmove793
    @realmove793 2 роки тому +1

    Hi JoanMedia, I have one query on the cypress-cucumber-preprocessorrc.json file, Does that file we have to create separately, or will it come automatically in the project after adding the plugin?

    • @joanmedia
      @joanmedia  2 роки тому

      Hello! You have to create it manually the first time :)

  • @markhughes5422
    @markhughes5422 2 роки тому +1

    @JoanMedia
    Your tests don't run within the Cypress runner.
    When I run the login.feature in the cypress runner it just bugs out.
    Command: "npm run cypress:runner"

    • @joanmedia
      @joanmedia  2 роки тому

      Hello Mark, could not reproduce your issue unfortunately. Just download the last release(.zip) and it worked fine: github.com/JoanEsquivel/cypress-cucumber-boilerplate/issues/1

  • @damienosullivan6353
    @damienosullivan6353 2 роки тому +1

    What would be your suggested approach to run specific tests in Cypress 10? Is there some way we can use tags?

    • @joanmedia
      @joanmedia  2 роки тому +1

      Hello! Maybe using the Cypress Grep Plugin? I do have a video with the old Cypress version but should work :D

    • @FYPNLP
      @FYPNLP 2 роки тому +1

      you can still use tagging with version 10

    • @joanmedia
      @joanmedia  2 роки тому

      @@FYPNLP That´s right! I updated the project repository and you can see a working example using tags :) Thanks @FYPNLP

    • @joanmedia
      @joanmedia  2 роки тому

      github.com/JoanEsquivel/cypress-cucumber-boilerplate

  • @orneltachekam8683
    @orneltachekam8683 2 роки тому

    Good evening to you, Please I am trying to test the api rest of the backend of an application with cucumber and cypress. I would like to have the procedure to follow, I am blocked since two weeks on it.

  • @goabeach1669
    @goabeach1669 2 роки тому +1

    Great as always 🙏
    Where is the subscribe bell ? 😁

    • @joanmedia
      @joanmedia  2 роки тому +1

      Thanks man :D appreciate the support Goa

  • @oguzhanozturk3865
    @oguzhanozturk3865 2 роки тому +1

    json reporter options only creates one json file all tests files. Do you have a way to configure this so that each feature file has its own json results file?

  • @zarkoacimovic3220
    @zarkoacimovic3220 2 роки тому +1

    Can please check if cypress-cucumber-tags are supported in 10.2.0 or 10.3.0?

  • @joseescalante181
    @joseescalante181 Рік тому

    Can someone help me with this error:
    The error was thrown while executing your e2e.setupNodeEvents() function:
    createEsbuildPlugin is not a function.
    I am running latest Cypress (12.7.0)

  • @willofdvlog
    @willofdvlog 2 роки тому

    Hi Joan, can you also make a video how to migrate to this project to Typescript? please

  • @BarrettGamingHD
    @BarrettGamingHD 2 роки тому

    Awesome - thanks a lot :)

  • @77ermoro
    @77ermoro 2 роки тому

    thx man, I've appreciated it

  • @arushikapoor05
    @arushikapoor05 2 роки тому +1

    How did you get .cypress-cucumber-preprocessorsrc.json file?

    • @joanmedia
      @joanmedia  2 роки тому +1

      You have to create it manually :)

  • @christiangilaquino7926
    @christiangilaquino7926 2 роки тому

    Hi Joan, How can I automatically generate the initial steps file/content of steps file. after creating feature file? I already have feature file.

  • @Jayann83
    @Jayann83 2 роки тому

    Hi Joan. On cypress v10.10 when I create step_definitions under support file test is recognising step-definition files but when I create step_definitions under cypress/e2e , I am getting, none of the files contains step definition , please help

  • @princekhanna4384
    @princekhanna4384 2 роки тому +1

    Very nice Video..Can you please try tags in feature file. I have tried but it is not working ..I guess there seems some issue. I have just added test for example @red on one scenario and tried running command npx cypress open -e TAGS ='@red' it does not seem to detect any steps inside feature for the complete feature file.

    • @joanmedia
      @joanmedia  2 роки тому

      I'll take a look. Not sure if it works :o if so, Ill let you know.

  • @santhoshkumar-jz1df
    @santhoshkumar-jz1df Рік тому +1

    Hi Joan, If I execute my code with npx cypress run, the script is getting passed, if I execute through npx cypress open, I m getting the issue "Error: Build failed with 1 error:
    E:\cypress_cucumber
    ode_modules\esbuild\lib\main.js:255:12: ERROR: Invalid option in build() call: "watch"

  • @sumitmbse1
    @sumitmbse1 2 роки тому

    For some reason I'm not able to generate .json file for test results even after enabling it in .cypress-cucumber-preprocessorrc.json. Any idea what could be wrong?

  • @HabibUllah-jo7vm
    @HabibUllah-jo7vm 2 роки тому +1

    if cypress 10 cookies handle video available? kindly share link

    • @joanmedia
      @joanmedia  2 роки тому

      Hello Habib! Unfortunately I have not reviewed yet this topic in the channel. Will try to check it out any time soon.

    • @HabibUllah-jo7vm
      @HabibUllah-jo7vm 2 роки тому

      @@joanmedia cy.preserveOnce is not working for me.. If there is an alternative to cypress.cookies.preserveOnce in version 10 please share a link. If there is no video, please make one. Thank you very much.

  • @metarun3
    @metarun3 2 роки тому

    Hi , Thanks for so this great video . I am getting some issue while configuring cypress 10.03 with cucumber typescript. I am using esbuild bundle but it is showing this error
    TypeError: cypress_esbuild_preprocessor_1.default is not a function

  • @RodrigoSBarretos
    @RodrigoSBarretos 2 роки тому +3

    Hello, Joan!
    Just a feedback on my experience on Cypress 10 with badeball's Cucumber lib:
    I'm starting to testing the migration of our framework here from Cypress 9 with Cucumber to 10 and I'm facing a MAJOR issue:
    The 'badeball/cypress-cucumber-preprocessor' doesn't work properly with "after each" cucumber commands (even Cypress commands as well). So, my feature file have a "background" on it, and works perfectly on Cypress 9 with TheBrainFamily's Cucumber lib. But on badeball's Cucumber lib it breaks on jumping from a test to another. It also breaks on some test:after:run custom events.
    I'm still searching for solutions but so far I got nothing.

    • @joanmedia
      @joanmedia  2 роки тому

      Hello Rodrigo, appreciate your comment/feedback with this tool.
      Yes, I agree there are some irregular behaviors... Did you open an issue in his repo? To follow up the issues?

    • @germanbr1074
      @germanbr1074 2 роки тому

      from my side , I was able to install and configure cypress 10 with BDD, however after implementing the solution, When somebody else downloads the source code from git and tries to execute cypress they get the following message: Could not find a Cypress configuration file in this folder , this did not happen from version 9 ,, @JoanMedia even I get the same message on the solution you provided us with cucumber. what should be done so that cypress 10 recognizes the folder structure?, for example when someone downloads the code and installs cypress 10 again? I appreciate your help thanks

  • @pantestovac2125
    @pantestovac2125 2 роки тому

    I have followed the steps but when I open .feature file I get:
    cypress/e2e/login.feature:2:4: ERROR: Transforming const to the configured target environment ("es5") is not supported yet
    cypress/e2e/login.feature:2:10: ERROR: Transforming destructuring to the configured target environment ("es5") is not supported yet
    etc.

  • @V4Lanz
    @V4Lanz 2 роки тому +1

    buenardooo

    • @joanmedia
      @joanmedia  2 роки тому

      Muchas gracias Cldlanz!

  • @shamalagurav9487
    @shamalagurav9487 22 дні тому

    How we can get index.js file in thisconfig file

  • @jorgelopez4619
    @jorgelopez4619 2 роки тому

    Excelente videos, muchas gracias Joan, tengo una duda, cuando se integra Cypress con Cucumber se le dice que en la consola de cypress muestre los archivos .feature (specPattern) en otros videos he visto que para ejecutar un solo test utilizan "npm cypress run --spec path/to/file.spec.js" lo intente y me dice que no encuentra ningun test, me di cuenta que si lo hago apuntando hacia los feature si me funciona "npm cypress run --spec path/to/file.feature" si es correcto?

  • @avidlearner7577
    @avidlearner7577 2 роки тому

    Hi Joan, your videos are really helpful.. I followed your steps but it’s giving me error “ step implementation is missing :( ….” Could you please help me- I am waiting for your reply - is there anything I am missing?

    • @avidlearner7577
      @avidlearner7577 2 роки тому

      Directory structure is same rest of the code copied from your git for configure.is, pre processor file etc

    • @avidlearner7577
      @avidlearner7577 2 роки тому

      I can share code snippets- if you can share your email I’d- I am stuck right now

    • @avidlearner7577
      @avidlearner7577 2 роки тому

      RESOLVED- I retried all the steps from scratch and it worked 😊

    • @dhanasekaran6963
      @dhanasekaran6963 Рік тому

      @@avidlearner7577 Hi can you please share your dummy code

  • @nikhilmishra2120
    @nikhilmishra2120 2 роки тому

    why i am getting webpack compailation error in feature file . tried your same step but not working cypress 10.3 any sol pls help sos

  • @chikomotovlog
    @chikomotovlog 2 роки тому +1

    Woh

  • @rtothec1234
    @rtothec1234 9 місяців тому +1

    I still I'm trying to comprehend the point of adding Cucumber.

    • @joanmedia
      @joanmedia  8 місяців тому

      It is just in case the project use bdd and they requiere to use it. I agree, not totally necessary

  • @JA-uy8oo
    @JA-uy8oo 2 роки тому

    Alguien me puede ayudar con la descarga del cucumber-json-formatter-darwin-amd64, es que no entiendo las instrucciones para cambiarle el nombre a cucumber-json-formatter.exe. No sé como descargarlo, no sé si es la carpeta y luego se renombra o hay que descargar un archivo en específico. Agradezco la ayuda

  • @faisalakml
    @faisalakml Рік тому

    i just following ur step but get error "Error: ENOENT: no such file or directory, stat 'C:\Users\faisalakmal\AppData\Roaming\Cypress\cy\production\projects\javascript-cypress-cucumber-874233a9f2e2dc205f7465c629aee7fc\bundles\cypress\e2e\features\login.feature'"
    can you help me Joan? already search on stackoverflow but didnt get answer

  • @JA-uy8oo
    @JA-uy8oo 2 роки тому +1

    Tengo un problema y es que me crea las dependencias de esta manera y no me está reconociendo la extensión .feature. Moví la dependdencia del cucumber preprocessor a la de devDepepdencies pero tampoco me funciona.
    "devDependencies": {
    "@bahmutov/cypress-esbuild-preprocessor": "^2.1.3",
    "cypress": "^10.3.0",
    "esbuild": "^0.14.48",
    "multiple-cucumber-html-reporter": "^1.21.4"
    },
    "dependencies": {
    "@badeball/cypress-cucumber-preprocessor": "^11.4.0"
    }

    • @joanmedia
      @joanmedia  2 роки тому

      Hola prueba viendo el repositorio con los cambios mios :D puedes ver que esta corriendo con GH Actions y todo esta funcionando en estas nuevas versiones.