The integration tests will start up a webbrowser and click thru the web application. Each tests tests expected behaviour from the web application.
Use npm to install Protractor globally with:
npm install -g protractorThe webdriver-manager is a helper tool to easily get an instance of a Selenium Server running. Use it to download the necessary binaries with:
npm install webdriver-manager webdriver-manager updateNow start up a server with:
webdriver-manager startThis will start up a Selenium Server and will output a bunch of info logs. Your Protractor test will send requests to this server to control a local browser. Leave this server running throughout the tutorial. You can see information about the status of the server at http://localhost:4444/wd/hub
Now run the test with
protractor test/client/e2e/conf.js
Now run tests with
$ protractor test/client/e2e/conf.js Using the selenium server at http://localhost:4444/wd/hub ............ Finished in 26.042 seconds 12 tests, 20 assertions, 0 failures