Run e2e angular tests with webdriver.
sbangular
comes with many of popular, battle-tested modern web frameworks and libraries. All these parts are already wired together for you using best practices! :) Don't waste time writing boilerplate code.
- Angular
- Bootstrap
- Bootswatch
- Bower
- Browserify
- Grunt
- jQuery
- JSHint
- LESS w/ LESS Hat
- Mocha w/ Chai
- Protractor
- Spring Boot
- Spring Security
Grunt tasks to build your app:
$ grunt mockup # with reloading to do mockup
$ grunt test # to perform the mocha tests
End-to-End (E2E) Testing with Protractor
Protractor wraps around WebDriverJS, which is a javascript binding for Selenium-Webdriver.
Selenium-Webdriver is a browser automation framework. Tests are written with the WebDriver API, which communicates with a Selenium server to control the browser under test. - Protractor Getting Started Guide
Therefore, you need to first download and install Selenium standalone server. If you successfully performed npm install
, you will have ./node_modules/.bin/webdriver-manager
. You can download and install Selenium standalone server by the following command:
$ ./node_modules/.bin/webdriver-manager update
From then on, you can start the server via:
$ ./node_modules/.bin/webdriver-manager start
You need to have the Selenium server running before running E2E tests. Once the Selenium server is running, you should also start the application server (in another tab) because your tests will run against it:
$ gradle bootRun
While the application server is running, open another tab and run e2e tests using Protractor.
$ grunt e2e
All pull requests are welcome.
And of course: