forked from BYU-IT515R-Javascript-W15/wd_example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTRUCTIONS
32 lines (23 loc) · 1.1 KB
/
INSTRUCTIONS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Install a Ubuntu Desktop VM, we will need a web browser eventually.
apt-get install nodejs
apt-get install npm
apt-get install mongodb
apt-get install openjdk-7-jre-headless
mkdir project; cd project
npm install express mocha wd selenium-server urlencoded-request-parser express-json body-parser
npm install urlencoded-request-parser body-parser underscore colors async q chai chai-as-promised wd supertest
#npm install will install all the packages in package.json
npm install
# Globally install so that you can run the executables
npm install -g nodemon
npm install -g mocha
Create a simple web site with the following characteristics:
Login page that takes a user name and password.
Main page that goes to three other pages.
The three other pages should have a links back to the main page.
All three pages should have separate forms that fill in tables on the same page with info from the form. Store tables entries in in server variables.
Then try the following in three windows:
nodemon app.js
java -jar selenium-server-standalone-2.45.0.jar
mocha test.js
if your curious open a browser in http://localhost:8088