Тёмный

Cypress with Cucumber Part 1: Configuration (SetUp) Cucumber in Cypress | First Test Case | Cypress 

Testing Tutorialspoint
Подписаться 4,3 тыс.
Просмотров 26 тыс.
50% 1

Опубликовано:

 

26 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 145   
@KseniaCH
@KseniaCH Год назад
Your guide helped me a lot! Thank you!
@testingtutorialspoint
@testingtutorialspoint Год назад
Glad it helped! Please do subscribe and share your friends and it will help more peoples
@sergeychuprikov5288
@sergeychuprikov5288 Год назад
Man thanks a lot! God grant you good health!
@testingtutorialspoint
@testingtutorialspoint Год назад
Thanks 🙏 and please share your friends for this youtube channel
@germanlarcher276
@germanlarcher276 Год назад
Thanks for this video!! Helped me a lot. Just a question...could you make a video with the other option for Cypress with Cucucmber? I mean, the option with libraries related to badeball and bahmutov? Since all around that option is confusing to me. Thanks again and congratulations for your chanel.
@testingtutorialspoint
@testingtutorialspoint Год назад
Your welcome. I will try other libraries. If you are like my videos please do subscribe and share to your friends
@germanlarcher276
@germanlarcher276 Год назад
@@testingtutorialspoint Sure!! I will :)
@romullooliveira2703
@romullooliveira2703 Месяц назад
man... Thank you very much. Your tutorial I helped in an opportunity the work
@testingtutorialspoint
@testingtutorialspoint Месяц назад
Your welcome
@romlopdiversion7330
@romlopdiversion7330 Год назад
THANK YOU SO MUCH! Incredible video.
@testingtutorialspoint
@testingtutorialspoint Год назад
Thanks 🙏 please share this playlist to your friends
@apache.3344
@apache.3344 Год назад
Thank you very much! Now it's working fine.
@testingtutorialspoint
@testingtutorialspoint Год назад
Most welcome please do subscribe and share to your friends
@larnaudie1
@larnaudie1 7 месяцев назад
Hey! Thanks for your video! I had the same issue as you in the last minutes, but I refreshered cypress and was impossible to make it run, could you help me to solve this? I observed that you paused the video and pressed play again, maybe you set up something and was missed in the recorder video?
@testingtutorialspoint
@testingtutorialspoint 7 месяцев назад
please add this lines in package.json file "cypress-cucumber-preprocessor": { "nonGlobalStepDefinitions": true, "step_definitions": "cypress/e2e" } note: still failed then change "nonGlobalStepDefinitions": false and try it will work Still failing then use false please check my github link - github.com/lokesh771988/Cypress_Cucumber
@Anitha.D
@Anitha.D Год назад
Thank you 😊
@testingtutorialspoint
@testingtutorialspoint Год назад
You're welcome 😊
@arkasaha4323
@arkasaha4323 3 месяца назад
If I do ctrl+click in feature file steps (eg. Given, When) , it's showing message "no reference found".. but the cucumber is installed.. the step definition is not mapped with feature file.. what can be the issue?
@testingtutorialspoint
@testingtutorialspoint 3 месяца назад
Goto plugin - search with cucumber and use any cucumber plugin
@nanniips
@nanniips Год назад
very helpful, Thank u
@testingtutorialspoint
@testingtutorialspoint Год назад
Welcome
@SamuelTovar-z4o
@SamuelTovar-z4o 9 месяцев назад
I followed the same steps o got the below error. Would appreciate any help. Error on browser: No specs found We couldn't find any files matching the following spec patterns. You may need to move your specs or update your specPattern to find them. Any solution?
@testingtutorialspoint
@testingtutorialspoint 9 месяцев назад
Can you please check specPattern because if you are using new version or below version of Cypress(12) then it will ask new specPattern please check
Год назад
Thank you! Your guide helped me! How can I make autocomplete work in the feature file to identify steps definitions?
@testingtutorialspoint
@testingtutorialspoint Год назад
Thanks you. Am using latest version of Cypress for me it is working auto complete step definition. Even tomorrow i will check any other way if I get i will update here
@tahirmehmood6025
@tahirmehmood6025 Год назад
thanks working for me
@testingtutorialspoint
@testingtutorialspoint Год назад
You're welcome!
@Matvei2076
@Matvei2076 Год назад
thank you a lot
@testingtutorialspoint
@testingtutorialspoint Год назад
Welcome please do subscribe and share to your friends
@tarunkumar5802
@tarunkumar5802 Год назад
Thanks a lot😇
@testingtutorialspoint
@testingtutorialspoint Год назад
Most welcome please share your friends 🙏
@yukta493
@yukta493 Год назад
It helped a lot, thanks!
@testingtutorialspoint
@testingtutorialspoint Год назад
You welcome please subscribe and share to your friends to reach more people for help
@the_rajgokul9720
@the_rajgokul9720 Месяц назад
Hi bro I tried making it true,false,refresh and closed and reopened all but same error what i need to do next
@testingtutorialspoint
@testingtutorialspoint Месяц назад
can you take my latest code from github
@gene111
@gene111 Год назад
Blocked with was unable to find step “” cucumberautocomplete. I have given step and feature paths in settings.json (no luck) Using cypress version 12.4.0
@testingtutorialspoint
@testingtutorialspoint Год назад
We don't have any settings.json file in Cypress. I check my local it is work without any issue
@muhammadazis4574
@muhammadazis4574 Год назад
can you help me , i follow from all your steps but i have issues after running command npx cypress run --headed This occurred while Cypress was compiling and bundling your test code. This is usually caused by: - A missing file or dependency - A syntax error in the file or one of its dependencies
@testingtutorialspoint
@testingtutorialspoint Год назад
Can you try for opening Cypress using npx open Cypress
@akshayaramasamy5154
@akshayaramasamy5154 9 месяцев назад
I have followed each and every steps properly and still Not getting suggestions for feature file. Why?
@testingtutorialspoint
@testingtutorialspoint 9 месяцев назад
Basid on plugin it will display some time I will display you can try with any other plugin
@nikkyGalaxy25
@nikkyGalaxy25 Год назад
Hi, when I hit Start E2E Testing in Chrome(v117) got the error message "Whoops we cant run your tests". Can u plz help
@testingtutorialspoint
@testingtutorialspoint Год назад
You are not configured correctly please delete and re configure then it will work
@raghunathkrishnappa9628
@raghunathkrishnappa9628 7 месяцев назад
Can you please make an video how to use test data which is in csv/exel for web application testing
@testingtutorialspoint
@testingtutorialspoint 7 месяцев назад
For Excel I have explained already please check my playlist
@sudhiryadav6737
@sudhiryadav6737 5 месяцев назад
I an getting same error which came in above video. I tried after closing all but still same error. Any suggestion?
@testingtutorialspoint
@testingtutorialspoint 4 месяца назад
In config file there step definition is true change to false it will work
@the_rajgokul9720
@the_rajgokul9720 Месяц назад
@@testingtutorialspoint I am getting same error and in config file not have anything as true
@masot2908
@masot2908 8 месяцев назад
If i want to new file .feature? Why can to run this file error?
@testingtutorialspoint
@testingtutorialspoint 8 месяцев назад
What error are you getting
@ShubhamDLadey
@ShubhamDLadey Год назад
autocomplete feature is not working, what can be possible reasons?
@testingtutorialspoint
@testingtutorialspoint Год назад
That plugin issue please check any other plugin
@ibrahimmaali6953
@ibrahimmaali6953 Год назад
Hello, thank you for this useful tutorial. I have installed the complete folder from your github channel and follow exactly all steps but still I get the following error" no references found for all keywords ". Please help me to clear this issue.
@testingtutorialspoint
@testingtutorialspoint Год назад
follow below step it will work 1. install node.js 2. create new folder and intall cypress and cucumber into new folder 3. copy and past cloned code into newly install cypress and cucuber folder 4. then run. it will work
@ibrahimmaali6953
@ibrahimmaali6953 Год назад
@@testingtutorialspoint thank you for your response. Appreciate if you can share the file "settings. Json" as I think the issue is in the cucumber autocomplete setting in VS code
@testingtutorialspoint
@testingtutorialspoint Год назад
There is no settings.json file in cucumber with Cypress
@JyotiSharma-ry8ss
@JyotiSharma-ry8ss Год назад
Hi @testing Tutorialspoint I’m facing the last error you were facing. After refreshing m facing same. Pls help
@testingtutorialspoint
@testingtutorialspoint Год назад
please update this code into cypress.config.js const cucumber = require('cypress-cucumber-preprocessor').default const { defineConfig } = require("cypress"); module.exports = defineConfig({ e2e: { setupNodeEvents(on, config) { on('file:preprocessor', cucumber()) }, specPattern: "cypress/e2e/*.feature", }, });
@JyotiSharma-ry8ss
@JyotiSharma-ry8ss Год назад
Still facing same
@JyotiSharma-ry8ss
@JyotiSharma-ry8ss Год назад
It worked actually in the .feature file I have provided Then Result/outcome And in the step definition file I added same . I tried with Then Result only then it worked. That means the issue was I can’t used / for Then in both feature and step definition file
@rahulkumar-nu9rk
@rahulkumar-nu9rk Год назад
CN you show one flow how to use fixtures with cypress cucumber pls make av videos
@testingtutorialspoint
@testingtutorialspoint Год назад
Sure i will make one video for that
@deepakpatil3074
@deepakpatil3074 7 месяцев назад
I got the same error, I tried by changing false still error is showing can you please help to resolve?
@testingtutorialspoint
@testingtutorialspoint 7 месяцев назад
Can you please check my latest git hub code
@deepakpatil3074
@deepakpatil3074 7 месяцев назад
Link?
@testingtutorialspoint
@testingtutorialspoint 7 месяцев назад
Check any latest video you will get GitHub link
@satyap263
@satyap263 Год назад
Getting webpack compilation error while running feature file. How to resolve this issue?
@testingtutorialspoint
@testingtutorialspoint Год назад
can you follow this stack stackoverflow.com/questions/56969803/how-to-get-more-detail-than-webpack-compilation-error-with-cypress
@vighneshmane2080
@vighneshmane2080 8 месяцев назад
im not able to see feature suggestion at 9:18. Can you please help me out with this please.
@testingtutorialspoint
@testingtutorialspoint 8 месяцев назад
Check configuration and also cypress.config.js file I have used true can you change false and close ide and reopen it will work
@AmolMahajan-i4t
@AmolMahajan-i4t 7 месяцев назад
Not worked. Configuration is correct but not getting suggestions. You told to make it as false can you please highlight which command to make false ?
@ashwinid3703
@ashwinid3703 Год назад
I followed the same steps o got the below error. Would appreciate any help. Error on browser: No specs found We couldn't find any files matching the following spec patterns. You may need to move your specs or update your specPattern to find them.
@testingtutorialspoint
@testingtutorialspoint Год назад
Hi Ashwini, i uninstalled and installed same steps in my system it is working for me can you please try one more time like uninstall and remove browser cookies and install as per video pls and let me know whether your able to install or not
@SamuelTovar-z4o
@SamuelTovar-z4o 9 месяцев назад
I'm presenting the same issue, how could you fix it?
@tuteromero
@tuteromero Год назад
hello1 thanks for the video, but I cant execute, I have a error: Error: We've tried to resolve your step definitions at src/integration/ but that doesn't seem to exist. can you help me?
@testingtutorialspoint
@testingtutorialspoint Год назад
Hello if you don't mind can you please provide complete error message then i will try to help you
@tuteromero
@tuteromero Год назад
@@testingtutorialspoint thanks dude, is about test now. non test found. error: can`t walk dependency graph: enoent: so much file or directory lstat.
@testingtutorialspoint
@testingtutorialspoint Год назад
if you have this import { text } from "stream/consumers"; in stepdefination file please delete. it will work. please use latest version of cypress or which i showed version
@tuteromero
@tuteromero Год назад
Hello, I don't have this import { text } from "stream/consumers"; in stepdefination file, Im using as a devdependencies: "cypress": "^12.17.2", "cypress-cucumber-preprocessor": "^4.3.1". And the error is: No tests found. Cypress could not detect tests in this file. Error: Can't walk dependency graph: ENOENT: no such file or directory, lstat 'C:\Users\matias.andres\Desktop\cypress-cucumber\process' required by C:\Users\matias.andres\Desktop\cypress-cucumber ode_modules\cypress-cucumber-preprocessor\lib\getStepDefinitionsPaths.js
@roshnaraja7836
@roshnaraja7836 Год назад
Why in feature file feature is not showing in the suggestion?
@testingtutorialspoint
@testingtutorialspoint Год назад
Based on which plugin your using after adding plugin you need to restart your vsc
@amazingmoments7690
@amazingmoments7690 7 месяцев назад
which plugin needs to install pls advise@@testingtutorialspoint
@tonycode9505
@tonycode9505 Год назад
Hello, I need help. I followed all the steps, but I'm getting the same error as you, and it doesn't go away even after restarting. Please help me.
@testingtutorialspoint
@testingtutorialspoint Год назад
What was they error your getting
@tonycode9505
@tonycode9505 Год назад
@@testingtutorialspoint the error in line 199 that appears in your video but it is not solved for me
@testingtutorialspoint
@testingtutorialspoint Год назад
@tonycode9505, please goto my github github.com/lokesh771988/Cypress_Cucumber.git and download try it will work Sorry for late reply
@subhasis770
@subhasis770 10 месяцев назад
Its the same error you are getting in vedio but it is not resolved after closing .. Please help ..Thank you sir
@testingtutorialspoint
@testingtutorialspoint 10 месяцев назад
please add this lines in package.json file "cypress-cucumber-preprocessor": { "nonGlobalStepDefinitions": true, "step_definitions": "cypress/e2e" } Still failing then use false please check my github link - github.com/lokesh771988/Cypress_Cucumber
@swapnilmalwadkar-yz8nn
@swapnilmalwadkar-yz8nn Год назад
I followed the same process but getting error like step implementation missing for: precondition..could you please help me with this.
@testingtutorialspoint
@testingtutorialspoint Год назад
Sure can you send your screenshot to lokesh.ust@gmail.com
@testingtutorialspoint
@testingtutorialspoint Год назад
Can you create feature file name and folder name step definition file name must be same. If any one of file name is not matching it will show error. Please create and try it will work
@sachindhumal-sh4xo
@sachindhumal-sh4xo Год назад
I have shared the SS on your email
@testingtutorialspoint
@testingtutorialspoint Год назад
I didn't received any email
@kesterigboeli8115
@kesterigboeli8115 Год назад
@@sachindhumal-sh4xo change nonGlobalStepDefinitions to false
@JayBal-w1u
@JayBal-w1u Год назад
Hi , how to access notes to copy config files please?
@testingtutorialspoint
@testingtutorialspoint Год назад
Means you want to access data from config file correct
@sisirmadanu7920
@sisirmadanu7920 Год назад
Hi Sir, I am facing the issue even after closing and re-opening cypress. Could you help me to resolve the issue?
@testingtutorialspoint
@testingtutorialspoint Год назад
can you please tell me what error are you getting
@sisirmadanu7920
@sisirmadanu7920 Год назад
​@@testingtutorialspoint , this is the error I am seeing "Step implementation missing for: visit sign up page "
@testingtutorialspoint
@testingtutorialspoint Год назад
Can you please check next video that video will help you to resolve your problem
@sisirmadanu7920
@sisirmadanu7920 Год назад
@@testingtutorialspoint By watching second video I have just tried giving the same name from feature file to the step but I am still getting "Step implementation missing for" error.
@testingtutorialspoint
@testingtutorialspoint Год назад
Can you call me +91-8496089381 i will check what was the problem
@faisalakml
@faisalakml Год назад
i get error like in the last minutes, can you help me to solved it? thanks before i get insight from ur video
@testingtutorialspoint
@testingtutorialspoint Год назад
Can you tell me what error your getting
@faisalakml
@faisalakml Год назад
@@testingtutorialspoint step implementation missing for: open home page the step name and on the feature already same but still get missing like that
@testingtutorialspoint
@testingtutorialspoint Год назад
Sorry Late replay this is my git line - github.com/lokesh771988/Cypress_Cucumber you can download and try it will work
@vipintekade6400
@vipintekade6400 Год назад
Please copy+paste this command in description box ?
@testingtutorialspoint
@testingtutorialspoint Год назад
Updated please check and subscrible
@hiteshjangid5605
@hiteshjangid5605 Год назад
How to add multiple step definition file for multiple feature file ?
@testingtutorialspoint
@testingtutorialspoint Год назад
When you create feature file that feature file name and step definition file should be same
@hiteshjangid5605
@hiteshjangid5605 Год назад
@@testingtutorialspoint so should i create multiple folders for multiple step_definitions ? should i mentions step_definition path in package.json file
@testingtutorialspoint
@testingtutorialspoint Год назад
Yes
@hiteshjangid5605
@hiteshjangid5605 Год назад
@@testingtutorialspoint How sir ?
@testingtutorialspoint
@testingtutorialspoint Год назад
Feature file and step definition both should be same i will add new video 2 or 3 days
@youngwildnfreee
@youngwildnfreee Год назад
I still get the error after refreshing, help ?
@testingtutorialspoint
@testingtutorialspoint Год назад
Can you tell me error message
@youngwildnfreee
@youngwildnfreee Год назад
@@testingtutorialspoint I just need help with a tech test im new to BDD and nothing is working for me
@youngwildnfreee
@youngwildnfreee Год назад
@@testingtutorialspoint do you have discord ?
@testingtutorialspoint
@testingtutorialspoint Год назад
For teaching bdd you need to pay money if you having doubt you can commit this will not having money but any technical issues or code level support you have to pay money
@sydney7400
@sydney7400 Месяц назад
thanks!
@testingtutorialspoint
@testingtutorialspoint Месяц назад
Your welcome
@vimalkumar-ch9or
@vimalkumar-ch9or Год назад
Error is not resolved please help.
@testingtutorialspoint
@testingtutorialspoint Год назад
Can you tell me error message pls
@podugumonika1972
@podugumonika1972 Год назад
Hii I tried the same process which you have done in this video but getting step definition is not implemented error .Could you please help me on this and could you please provide me the GitHub link for cypress cucumber project
@testingtutorialspoint
@testingtutorialspoint Год назад
git hug link - github.com/lokesh771988/Cypress_Cucumber.git
@vipintekade6400
@vipintekade6400 Год назад
In newtours.js is not detecting when i run npx cypress open i guess it should be newtours.cy.js ?It is showing me old file spec.cy.js when i run npx cypress open .
@testingtutorialspoint
@testingtutorialspoint Год назад
Brother if you are using cucumber in Cypress then .cy.js it will not show it will display only . feature file please check
@mariahafeez6189
@mariahafeez6189 Год назад
Hello, it doesn't suggest me Feature at 9:18, although I have successfully installed everything. The error is: Cucumber Language Server client: couldn't create connection to server. Message: Request initialize failed with message: abort(Assertion failed: bad export type for `tree_sitter_php_external_scanner_create`: undefined). Build with -s ASSERTIONS=1 for more info. Code: -32603
@testingtutorialspoint
@testingtutorialspoint Год назад
sorry for late reply can you try one more time may be it will not fail still it is failing late me know i will check one more time
@mariahafeez6189
@mariahafeez6189 Год назад
@@testingtutorialspoint I've tested this once again but it's not working. I also tried with latest vs code version and also by downgraded it. But nothing works.
@roshnaraja7836
@roshnaraja7836 Год назад
Same happening to me also plz help
@mariahafeez6189
@mariahafeez6189 Год назад
@@roshnaraja7836 In new versions, keywords does not highlight in .feature file
@subhasis770
@subhasis770 10 месяцев назад
then{}, function(){} Error Step implementation missing for: precondition node_modules/cypress-cucumber-preprocessor/lib/resolveStepDefinition.js:199:1 197 | ); 198 | } > 199 | throw new Error(`Step implementation missing for: ${stepText}`); | ^ 200 | }, 201 | Given: (...args) => { 202 | stepDefinitionReg I am getting this error can you please help me rsolved
@testingtutorialspoint
@testingtutorialspoint 10 месяцев назад
please add this lines in package.json file "cypress-cucumber-preprocessor": { "nonGlobalStepDefinitions": true, "step_definitions": "cypress/e2e" } Still failing then use false please check my github link - github.com/lokesh771988/Cypress_Cucumber
@JoolieEm
@JoolieEm Год назад
13:45 I got exactly the same error, I closed everything and opened it again and still that error persisted.
@testingtutorialspoint
@testingtutorialspoint Год назад
you can delete complete repo and re create and it will work
@SamuelTovar-z4o
@SamuelTovar-z4o 9 месяцев назад
Hello, i got the same issue that you displayed at the very end of the video, cypress displays the following message: "Step implementation missing for: precondition node_modules/cypress-cucumber-preprocessor/lib/resolveStepDefinition.js:199:1" how can i fix it?
@cdnex
@cdnex 9 месяцев назад
Where you able to fix it?
@SamuelTovar-z4o
@SamuelTovar-z4o 9 месяцев назад
I wasn't, do you have any solution?@@cdnex
@SamuelTovar-z4o
@SamuelTovar-z4o 9 месяцев назад
Mate, i could fix it, you got to change the "true" value to "false" in "nonGlobalStepDefinitions": false,@@cdnex
@testingtutorialspoint
@testingtutorialspoint 9 месяцев назад
Sorry late reply am in hospital that way I didn't reply are you facing issues still
Далее
Random Emoji Beatbox Challenge #beatbox #tiktok
00:47
Быстрый старт в Gherkin для Manual QA
40:29
03 Cypress with Cucumber (BDD) |  Learning Mindset GM
12:53