Test Suite for Lab #4

Student Web pages were tested in Firefox in the following manner for each student's Lab 4 submission:

  1. The Submit button was clicked with the page showing all default settings (Hamburger, no Extras, Water, Fries). The result should have been: $1.58total + $0.10tax = $1.68you pay. Problems with pricing were often revealed here.
  2. View-Page Source was clicked to examine the HTML returned by the script. Problems in the HTML with malformed tags or indentation were revealed here. Anything Firefox flagged in RED was marked as a Python Typo. This tab was then closed.
  3. Back was clicked in the browser to return to the order page.
  4. Turkeyburger was selected (if present), all Extras were selected, Coffee and Salad were selected. The result after Submit should have been: $5.42total + $0.34tax = $5.76you pay. Problems with pricing were often revealed here. Often, too, this was the point that revealed problems in the Python script; that is, the script might not have crashed on the default settings, but might do so here. This is still assessed as a CRASH error (-5), even if the default settings worked fine.
  5. View-Page Source was clicked again to examine the HTML returned by the script, to see if anything changed since the last time. Problems in the HTML with malformed tags or indentation were revealed here. Anything Firefox flagged in RED was marked as a Python Typo. This tab was then closed.
  6. Back was clicked in the browser to return to the order page.
  7. The Reset button was clicked. This should reset everything to Hamburger, no Extras, Water, and Fries. Problems with the radio buttons in the HTML main page are revealed here.
  8. View-Page Source was clicked to examine the HTML of the main page. Problems in the HTML with malformed tags or indentation were revealed here. Anything Firefox flagged in RED was marked as a HTML Typo. This tab was then closed.

While this is not a complete test suite, it is complete enough to identify most problems in the HTML and Python code.


Grading Rubric for Lab #4