Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Sample angular application that has protractor integration tests
JavaScript
branch: master
Failed to load latest commit information.
app Add loading flag
server Add timeout to make the server slow
test upgrade to protractor 1rc4
LICENSE Initial commit
README.md update webdriver-maanger
karma.conf.js
package.json Upgrade to protractor 1.6.1
protractor-config.js Upgrade to protractor 1.6.1
server.js

README.md

Sample application for the Angular meetup

This is a sample angular application that has protractor integration tests.

Here are the instructions to run the code from the meetup.

Assume that the code is under ~/dev/protractor-meetup

See the slides

Get the code

git clone https://github.com/andresdominguez/protractor-meetup.git

Start Mongo DB

Download Mongo DB from http://www.mongodb.org/

Create a directory to hold the data and start mongo:

~/dev/protractor-meetup$ mkdir db

Start Mongo DB with the dbpath flag

~/Downloads/mongodb-osx-x86_64-2.4.8/bin$ ./mongod --dbpath ~/dev/protractor-meetup/db/

Get Node

Download and install http://nodejs.org/

Install dependencies

~/dev/protractor-meetup$ npm install

Run the server

Run the express server. It will start a server on port 3000.

~/dev/protractor-meetup$ node server.js

See the app

You should be able to see the app in the following URL:

http://localhost:3000/

Test

Start the selenium standalone server

./node_modules/protractor/bin/webdriver-manager update
./node_modules/protractor/bin/webdriver-manager start

Run the protractor tests.

~/dev/protractor-meetup$ ./node_modules/protractor/bin/protractor protractor-config.js

Run the unit tests

~/dev/protractor-meetup$ karma start
Something went wrong with that request. Please try again.