0.2.4 • Published 12 years ago
cucumber-poc v0.2.4
Angular Cucumber Example
This is a working example of running Angular E2E tests using Cucumber.js, Protractor, and WebDriverJS.
Getting Started
Install dependencies
npm install bower installStart the application server
grunt server
Running Tests
Start the application server
grunt serverStart the selenium server
grunt seleniumRun the cucumber tests
grunt test
Resources
- Cucumber.js README
- Protractor README
- WebDriverJS Guide
- WebDriverJS WebDriver API
- WebDriverJS Locators API
TODO
- Quit driver after running all the cucumber tests. Can easily be added once the afterAll hook is added to cucumber.js
Questions
These are questions that I need to figure out due to my lack of familiarity with WebDriverJS and Selenium.
- Why does omitting
usingServerallow running tests on Chrome without having the selenium server running? - Saving
world.coffeetriggers some actions on the selenium server. Assuming there is some file watching mechanism in place, what files are watched and which actions are taken?