https://github.com/yashladha/testcafe-cucumber
https://github.com/yashladha/testcafe-cucumber
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yashladha/testcafe-cucumber
- Owner: yashLadha
- License: mit
- Created: 2020-05-29T15:30:47.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-29T16:14:10.000Z (about 5 years ago)
- Last Synced: 2025-01-28T15:16:00.548Z (4 months ago)
- Language: JavaScript
- Size: 188 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Integration of TestCafe and CucumberJS
This is a demonstration of integration [TestCafé](https://github.com/DevExpress/testcafe) into [CucumberJS](https://github.com/cucumber/cucumber-js) tests using TestCafe and Cucumber.
Big thank you to [helen-dikareva](https://github.com/helen-dikareva/) for your help in starting the integration with your [repo](https://github.com/helen-dikareva/testcafe-cucumber-demo). This is a fork of all of the hard work you've put in.
Also, thanks to the team at [TestCafé](https://github.com/DevExpress/testcafe) for allowing testers to break away from Selenium.
**Depreciation Notice** - [There are talks to officially support the Gherkin syntax in TestCafé](https://github.com/DevExpress/testcafe/issues/1373#issuecomment-291526857). Once those changes are in place I will no longer support this repo. Please voice your support of these changes becoming native to TestCafé.
## Versions
TestCafé
1.1.0CucumberJS
5.1.0## Installation
1. Make sure [Node.js](https://nodejs.org/) is installed
2. Navigate to the root of the repo
3. Use the `npm install` command## Running tests
### Windows
You can run tests by executing the `.\node_modules\.bin\cucumber-js.cmd` or `npm test` commands in command prompt### Mac or Linux
You can run tests by executing `node_modules/cucumber/bin/cucumber-js`## Documentation
* [Initial Setup](https://github.com/rquellh/testcafe-cucumber/wiki/Initial-Setup)
* [Debuging in VSCode](https://github.com/rquellh/testcafe-cucumber/wiki/Debugging-in-VSCode)
* [Using TestCafé](https://github.com/rquellh/testcafe-cucumber/wiki/Using-TestCafe)
* [Creating your first test](https://github.com/rquellh/testcafe-cucumber/wiki/Creating-your-first-test)
* [Selectors](https://github.com/rquellh/testcafe-cucumber/wiki/Selectors)
* [Actions](https://github.com/rquellh/testcafe-cucumber/wiki/Actions)
* [Assertions](https://github.com/rquellh/testcafe-cucumber/wiki/Assertions)
* [TestCafé & CucumberJS](https://github.com/rquellh/testcafe-cucumber/wiki/TestCafe-&-CucumberJS)
* [Helpful VSCode Setup](https://github.com/rquellh/testcafe-cucumber/wiki/Helpful-VSCode-Setup)
* [Creating Features](https://github.com/rquellh/testcafe-cucumber/wiki/Creating-Features)
* [Creating Step Definitions](https://github.com/rquellh/testcafe-cucumber/wiki/Creating-Step-Definitions)
* [Adding TestCafé Functionality to Cucumber steps](https://github.com/rquellh/testcafe-cucumber/wiki/Adding-TestCafe-Functionality-to-Cucumber-steps)
* [Harnessing Cucumber's Power](https://github.com/rquellh/testcafe-cucumber/wiki/Harnessing-Cucumber's-Power)
* [Page Object](https://github.com/rquellh/testcafe-cucumber/wiki/Page-Object)
* [Running Tests](https://github.com/rquellh/testcafe-cucumber/wiki/Running-Tests)
* [Reporting and Taking Screenshots](https://github.com/rquellh/testcafe-cucumber/wiki/Reporting-and-Taking-Screenshots)## Notes
* As of the time I am writting this, there is only 1 passing test of 3. I decided to not make all of the tests passing, so you could see how failures are handled.
* My solution closes the TestCafé browser between each scenario. I tried to keep it open between scenarios but had trouble with handling failures. If you find a solution, I'd like to know.
* With TestCafé version 0.19.0, you no longer have to manually update stack-chain. Thank you to the TestCafé crew for making the integration much easier.
## Contributors
Thanks to everyone who has contributed to this project over the last few years.[
](https://github.com/cmasekar) |[
](https://github.com/benkirbyten10) |[
](https://github.com/vvedachalam) |[
](https://github.com/azzra) |
:---: |:---: |:---: |:---: |