- Видео 111
- Просмотров 58 017
e-Quality tech
Индия
Добавлен 26 май 2018
e-Quality tech is pioneer in providing services in latest automation technologies
13. Cucumber config file - options - part 2
Configuration
Files: You can keep your configuration in a file. Cucumber will look for one of these files in the root of your project, and use the first one it finds:
cucumber.json
cucumber.yaml
cucumber.yml
cucumber.js
cucumber.cjs
cucumber.mjs
link: github.com/cucumber/cucumber-js/blob/main/docs/configuration.md
Files: You can keep your configuration in a file. Cucumber will look for one of these files in the root of your project, and use the first one it finds:
cucumber.json
cucumber.yaml
cucumber.yml
cucumber.js
cucumber.cjs
cucumber.mjs
link: github.com/cucumber/cucumber-js/blob/main/docs/configuration.md
Просмотров: 37
Видео
12. Cucumber config file - options - part 1
Просмотров 74Месяц назад
Configuration Files: You can keep your configuration in a file. Cucumber will look for one of these files in the root of your project, and use the first one it finds: cucumber.json cucumber.yaml cucumber.yml cucumber.js cucumber.cjs cucumber.mjs link: github.com/cucumber/cucumber-js/blob/main/docs/configuration.md
11. Hooks in CucumberJS - Part 3
Просмотров 14Месяц назад
Hooks are used for setup and teardown the environment before and after each scenario. Multiple Before hooks are executed in the order that they were defined. Multiple After hooks are executed in the reverse order that they were defined. After([options,] fn) Defines a hook which is run after each scenario. AfterAll([options,] fn) Defines a hook which is run after all scenarios have completed. Af...
10. Hooks in CucumberJS - Part 2
Просмотров 30Месяц назад
Hooks are used for setup and teardown the environment before and after each scenario. Multiple Before hooks are executed in the order that they were defined. Multiple After hooks are executed in the reverse order that they were defined. After([options,] fn) Defines a hook which is run after each scenario. AfterAll([options,] fn) Defines a hook which is run after all scenarios have completed. Af...
9. Hooks in CucumberJS - Part 1
Просмотров 44Месяц назад
Hooks are used for setup and teardown the environment before and after each scenario. Multiple Before hooks are executed in the order that they were defined. Multiple After hooks are executed in the reverse order that they were defined. Before([options,] fn) Defines a hook which is run before each scenario. Same interface as After except the first argument passed to fn will not have the result ...
8. Scenario Outlines & Examples in Cucumber
Просмотров 35511 месяцев назад
In this tutorial, we delve into the power of Scenario Outlines in Cucumber, a powerful feature that allows you to write concise, reusable, and data-driven tests Automation: Automation is a key aspect of streamlining workflows and increasing efficiency. Cucumber: Cucumber is a popular tool for behavior-driven development (BDD). Your content likely covers topics such as writing and executing Cucu...
7. All about "DataTable" in CucumberJS
Просмотров 717Год назад
💡 Why Data Tables? Data Tables in Cucumber.js provide a structured way to handle tabular data in your Gherkin scenarios, making your tests more readable, maintainable, and adaptable to different test cases. 🛠️ Hands-On Learning: Follow along with practical examples and demonstrations, and gain a hands-on understanding of how to leverage Data Tables for your test automation projects. Whether you...
6. Creating custom parameter types using defineParameterType - part 2
Просмотров 283Год назад
In this CucumberJS tutorial, we dive deep into the concept of defineParameterType. Learn how to use defineParameterType in CucumberJS to create custom parameter types for your step definitions. Whether you're a beginner or an experienced CucumberJS user, understanding defineParameterType is crucial for enhancing the flexibility and readability of your Gherkin scenarios. Watch this tutorial to m...
5. Creating custom parameter types using defineParameterType - part 1
Просмотров 302Год назад
In this CucumberJS tutorial, we dive deep into the concept of defineParameterType. Learn how to use defineParameterType in CucumberJS to create custom parameter types for your step definitions. Whether you're a beginner or an experienced CucumberJS user, understanding defineParameterType is crucial for enhancing the flexibility and readability of your Gherkin scenarios. Watch this tutorial to m...
4. Cucumber Expressions & Parameter types
Просмотров 255Год назад
github.com/cucumber/cucumber-expressions?tab=readme-ov-file#readme cucumber.github.io/try-cucumber-expressions/?advanced=1 Automation: Automation is a key aspect of streamlining workflows and increasing efficiency. Cucumber: Cucumber is a popular tool for behavior-driven development (BDD). Your content likely covers topics such as writing and executing Cucumber scenarios, creating feature files...
3. Keywords of Gherkin in cucumber BDD
Просмотров 183Год назад
Automation: Automation is a key aspect of streamlining workflows and increasing efficiency. Cucumber: Cucumber is a popular tool for behavior-driven development (BDD). Your content likely covers topics such as writing and executing Cucumber scenarios, creating feature files, and integrating Cucumber into the testing process. Playwright: Playwright is a powerful testing library for web applicati...
2. Creating feature file and step definitions
Просмотров 326Год назад
Automation: Automation is a key aspect of streamlining workflows and increasing efficiency. Cucumber: Cucumber is a popular tool for behavior-driven development (BDD). Your content likely covers topics such as writing and executing Cucumber scenarios, creating feature files, and integrating Cucumber into the testing process. Playwright: Playwright is a powerful testing library for web applicati...
Mastering CucumberJS - Novice to Ninja - Introduction, plan, installations & setup
Просмотров 496Год назад
Cucumber is a tool that supports Behaviour-Driven Development(BDD). Cucumber reads executable specifications written in plain text and validates that the software does what those specifications say. The specifications consists of multiple examples, or scenarios. cucumber.io/docs/guides/overview/ cucumber.io/docs/guides/10-minute-tutorial/?lang=javascript#create-an-empty-cucumber-project Imp lin...
20. Thank you note. Please like share subscribe
Просмотров 243Год назад
Git hub: github.com/mdbasheer333/cucumberpwjts Playlist: ruclips.net/p/PLT7wPS2WHnwYriuTD8cDNt6KeZ_32QE0f Links Email: mdbasheer333@gmail.com Linked In: linkedin.com/in/mohammad-basheer-292458140 GitHub: github.com/mdbasheer333
19. sending command line args using cross-env module (multi browser/test env)
Просмотров 557Год назад
www.npmjs.com/package/cross-env Most Windows command prompts will choke when you set environment variables with NODE_ENV=production like that. (The exception is Bash on Windows, which uses native Bash.) Similarly, there's a difference in how windows and POSIX commands utilize environment variables. With POSIX, you use: $ENV_VAR and on windows you use %ENV_VAR%. This solution cross-env makes it ...
18. Generating better html reports using cucumber-html-reporter - Contd!
Просмотров 731Год назад
18. Generating better html reports using cucumber-html-reporter - Contd!
17. Generating better html reports using cucumber-html-reporter npm module
Просмотров 774Год назад
17. Generating better html reports using cucumber-html-reporter npm module
16. What the hell is "this" - part 3 (WRAP UP)
Просмотров 340Год назад
16. What the hell is "this" - part 3 (WRAP UP)
16. What the hell is "this" - part 2 (attaching screenshots to html report)
Просмотров 439Год назад
16. What the hell is "this" - part 2 (attaching screenshots to html report)
14. Use of scenario parameter in hooks (Important video) DON'T MISS IT
Просмотров 652Год назад
14. Use of scenario parameter in hooks (Important video) DON'T MISS IT
13. generating test results in html, json & xml formats
Просмотров 664Год назад
13. generating test results in html, json & xml formats
12. handling multi test environments using .env files
Просмотров 711Год назад
12. handling multi test environments using .env files
11. cross browser testing & use of .env file
Просмотров 833Год назад
11. cross browser testing & use of .env file
10. creating base page - part 3 - WRAP UP
Просмотров 552Год назад
10. creating base page - part 3 - WRAP UP
Hello. I like your lessons. These are very informative. I have two questions. 1) In the previous video your project name was different than thıs video. I think you have changed the structure. It causes problem when create config folder on your video 12. It didn't accept environment when I put it under e2etests folder. Do you have a recommendation? 2) I want to attach video to this structure. How can I attach the failed test video? Do you plan to make a small video on this issue? Thanks.
There is audio mute for 90 seconds, pls ignore. thanks for watching.
hi rasheed, when script is executed in headless mode, in the playwright reports expand button and feature steps are disabled please guide me to fix this issue and thanking you for creating this series was really helpfull
Getting Error message while execution of the Scenario - (node:6120) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension. (Use `node --trace-warnings ...` to show where the warning was created) D:\FWPwTsCucumber\e2etests\tests\steps\homepagesteps.ts:1 import { Given, When, Then } from '@cucumber/cucumber'; ^^^^^^ SyntaxError: Cannot use import statement outside a module
pls clone & try: github.com/mdbasheer333/cucumberjsvanila.git
Thanks for the series of videos, they were very helpful. When are you releasing advanced concepts?
ruclips.net/p/PLT7wPS2WHnwZ0BATaHAu_vSS7pUrY7E-3
ruclips.net/user/shortsp_3FSuWiUxQ
e-Quality tech e2etests/tests/steps/loginStep.ts:2:31 - error TS2307: Cannot find module '@cucumber/cucumber' or its corresponding type declarations. 2 import {Given,When,Then} from "@cucumber/cucumber"; ~~~~~~~~~~~~~~~~~~~~ for import {Given,When,Then} from "@cucumber/cucumber"; this line even I have install npm i @cucumber/cucumber -D any suggestion.
If we implement the Cucumber framework, can we run test case scenarios on different browsers simultaneously? like playwright behavior
video will be coming soon...!
After added step definition facing yellow line issue in feature file
I am getting an error when trying to import the module, saying it can't find modiule
Someone, have you encountered the situation where you get the 'Undefined step:' warning and the tests are not found? It doesn't show an error, but it doesn't locate the steps from the feature file. 🤔
pls clone & try: github.com/mdbasheer333/cucumberjsvanila.git
Instead of specifying that long list of enum values you can just say as "link" and that would still work
Can we configure this framework to generate Allure report?
Are we not using hooks here? How page object is getting passed from hooks to page classes?
Can't I keep the hook file separately?
video will be coming soon...!
Thanks, But my feature file and step definition files are not syncing, it says "Undefined step: User is on the login page Cucumber(cucumber.undefined-step)"
set dryRun: true in the cucumber-json file
Observing error as Error: Cucumber expected a CommonJS module at 'test\steps\loginstep.ts' but found an ES module. Either change the file to CommonJS syntax or use the --import directive instead of --require. Please help if any one have solution
pls clone & try: github.com/mdbasheer333/cucumberjsvanila.git
where are your TS(Typescript) videos for testers?😉-expecting more videos from you- thanks for teaching Js and Playscript
very useful video, thanks!
Hi can you add a video of generating allure reports in this existing framework using cucumber typescript and playwright Thanks for all the informative videos.
i am getting error while writing a gherking language (error : 1 error found)
pls clone & try: github.com/mdbasheer333/cucumberjsvanila.git
nice video bro...very helpful
Not working test still undefined 8:16
Solved!
How did you attach debugger? It’s not working for me
For all those where cucumber is skipping test , set dry run as false in the cucumber json config file. It’s due to dry run that it is skipping your tests.
Thanks, man, that wass helpfull
i did all steps in the video but 4 steps (4skipped)
pls clone and try: github.com/mdbasheer333/cucumberjsvanila.git
set dryRun in cucumber.json file to ''true''.
THANK YOU VERY MUCH FOR THIS SERIES OF VIDEOS, MUCH APPRIECATED
Thanks it is so simple to work with Cucumber setup with your video and Playwright
for me, below mentioned details is already added, even though getting 0 Scenarios 0 Steps, am completely blocked. Please guide. When running as ./node-modules/.bin/cucumber-js src/feature then it works but not with the way you mentioned in video.
pls clone & try: github.com/mdbasheer333/cucumberjsvanila.git
This is a great course for playwright TypeScript Cucumber BDD automation Framework. A lot of difficult concepts in real life framework development and implementation are clearly explained and demonstrated here. I wish this course had been here earlier than this. My advice to the trainer is that this course should be published to Udemy platform so that you could also benefit from your hard work and knowledge. A lot of courses in Udemy on Playwright Cucumber impleentation hardly scratched the surface unlike yours.
Thanks so much dude, grettings from chile!
💐 "Promo sm"
💞 'Promo sm'
and no found scenario the npx cucumber-js { "default": { "dryRun": true, "formatOptions": { "snippetInterface": "async-await" }, "paths": ["e2etests/tests/features/*.feature"], "require": ["e2etests/tests/steps/*.ts"], "requireModule": ["ts-node/register"], "format": [] } }
pls clone & try: github.com/mdbasheer333/cucumberjsvanila.git
what do u seggest, why not colot my given, when, then words in the feature fil my settings.json: "cucumber.features": [ "src/tests/features/*.feature", "tests/features/**/*.feature", "tests/features/*.feature", //"*specs*/**/.feature" ], my tests under: e2etetsts/tests/features/...feature
I was trying implement this but cucumber is not able to identify step definition. I checked cucumber.json also. I have cucumber plugin also. Are any other plugins are needed?
under .vscode folder, in setting.json file, add details according to your project. if not working pls let us know, thanks { "cucumber.features": [ "src/test/features/**/*.feature", ], "cucumber.glue": [ "src/test/specs/**/*.spec.ts" ], "cucumberautocomplete.customParameters": [ ], "cucumberautocomplete.steps": [ "src/test/specs/**/*.spec.ts" ], "cucumberautocomplete.syncfeatures": "src/test/features/**/*.feature" }
Sure thank you very much
Hi, I want to maintain a "locators" folder, which contains locator files for each environment. Specifically , we organize these files under environment-specific subfolders like "Stage" and "QA". For instance: Locator Folder |--Stage | |--loginpagedoc.json | |--homepagedoc.json |--QA | |--loginpagedoc.json | |--homepagedoc.json Now, during the execution, I want the flexibility to choose from which locator folder I need to run the tests, For Example. I would like to pass the locator folder name as "QA" in the terminal (example: npm test --something=QA )and the test script should utilize locators exclusively from the "QA" folders. Is there any way or similar way to achieve it. if yes, kindly let me know how to do it. Thanks in advance!
possibility will be there, but question how locations would change drastically from env to env? 1 or 2 locators agree but entire locators? could you please elaborate more..! thanks for asking!
Thanks for detailed video on reports. suppose when we are running scenario outline, how will you print the details in report? here each time employeeID is different and how will you show that in report with below feature file format? Scenario Outline: to test login functionality. Given <userType> is on login page When User enter login details And Home page should be displayed And I save the employee id When Upon logout Examples: |userType| |Admin| |Employee|
Please try as suggested in the end of video, if not working please let us know. thanks ruclips.net/video/9xtXro65qzE/видео.html
@@e-qualitytech it's not working and still its printing in the report as scenario outline
First time I am seeing/heard this defineParameterType. It is Confusing. For multiple test data, do we use scenario outline? Please take a test application like Orange Hrm and consider scenarios like add/create, edit/update and delete registration or any form for test execution..
Videos are coming..! To know about data tables, below is the link. thanks for watching. ruclips.net/video/txvDCS2TITY/видео.html
Great work!! Thank you for starting new series..
Hi Rasheed, your content is based on real time scenarios. we followed similar approach in our organization. this playlist is very useful for the ones who want to learn framework creation.
Thank you for your feedback, Please share with your network.
@@e-qualitytech Sure
Please explain more about hooks. How to execute multiple test cases in a single and multiple feature files in single browser without closing and open again. Background gherkin keyword Data driven testing with scenario outline examples Allure reporting with attached screenshots for each step. Thank you
thanks for your feedback...! this series just basic framework with cucumber + typescript. BDD Cucumber-JS series novice to ninja is next series on this channel. stay tuned. Like/Share/Subscribe. Thanks
could you please cover cross environment as well? [in future video]
Thanks for your interest. Could you please elaborate more on the requirement?
@@e-qualitytech - As you said, we can't pass multiple arguments in command line with dotenv module, so we have one more node module crossenv, right, I would like to understand how to use crossenv module
Thanks for confirming. Will be releasing by this weekend. Stay tuned.
ruclips.net/video/V9qj-eAbuQ4/видео.html
Thank you
You're welcome
Great work!! Please continue and upload more videos with data driven and multi test env's.
Good work buddy, awaiting new videos on this series!
are sendkeys working without object? or how to sendkeys example : "you number is 123000123". are send keys working to copy only number"123000123"? please help
sir is there a video tutorial for SelectorsHub xpath tool?