./hw2 8080 WWWand then visit http://localhost:8080/index.html, to see the simple test page in the WWW folder of the hw2 template. Clicking on the link should take you to a second page, than contains an image. You may change the files in the WWW directory, as long as there is at least two pages connected by a link, and at least one image embedded in a page. You need to handle the following cases:
svn export svn://cs450.cs.uic.edu/f11/yournetid/hw2 cd hw2 make ./hw2 8080 WWWand now visit http://localhost:8080/ and click the link, using firefox and perhaps one other browser. Once everything looks right to you, run the automatic grading script in pub/grading-scripts/hw2.
svn co svn://cs450.cs.uic.edu/pub/
The grading script is in /pub/grading-scripts/hw2/. To run the grading script:
./hw2_score username port score_file
This script will create a directory with your username, download hw2 from svn and create output_file and score_file inside hw2. The score file will look like following:
[SUCCESS] index.html created for host:port? [0.25]: 0.25 [SUCCESS] header correct for host:port? [0.25]: 0.25 [SUCCESS] pic.html created for host:port/pic.html? [0.25]: 0.25 [SUCCESS] monorail.jpg created for host:port/monorail.jpg? [0.25]: 0.25 [SUCCESS] google.gif created for host:port/google.gif? [0.25]: 0.25 [SUCCESS] header correct for host:port/google.gif? [0.25] [0.25]: 0.25 [SUCCESS] skype.png created for host:port/skype.png? [0.25]: 0.25 [SUCCESS] header correct for host:port/skype.png? [0.25] [0.25]: 0.25 [SUCCESS] paper.pdf created for host:port/paper.pdf? [0.25]: 0.25 [SUCCESS] skype.png size correct? [0.25]: 0.25 [SUCCESS] google.gif size correct? [0.25]: 0.25 [SUCCESS] paper.pdf size correct? [0.25]: 0.25 [SUCCESS] skype.png content correct? [0.25]: 0.25 [SUCCESS] google.gif content correct? [0.25]: 0.25 [SUCCESS] paper.pdf content correct? [0.5]: 0.5 [SUCCESS] index.html created for host:port/test/dir/? [0.5]: 0.5 [SUCCESS] testpage.html created for host:port/test/dir/testpage.html? [0.5]: 0.5 [SUCCESS] error returned for non-existing page? [1]: 1 Total score: 6
Copyright 2016 The Board of Trustees of the University of Illinois.webmaster@cs.uic.edu |
WISEST Helping Women Faculty Advance Funded by NSF | ![]() | ![]() |