Stopwatch Test Suite

Applet Name:

Stopwatch

Purpose:

This activity allows the user to run a stopwatch on the computer screen. The stopwatch can either count from zero up or count down from a time specified by the user. While the stop watch is running, the user can press the record button to have the computer enter the current time in a list. The list can be used as a tool to collect data for experiments.

Description:

This activity allows the user to count up or down, in seconds, from a given starting point. The user may also record specific times during the countdown/up.

Platforms/Browsers:

Test Cases:

Test Case Title Description
Test1_stopwatch: Applet Layout Verify that the applet's layout is correct and formatted properly (i.e. no cutoff buttons or text).
Test2_stopwatch: What, How and Why pages Verify the what, how and why pages come up correctly. Ensure that any functionality or usage changes are reflected in the text of the what, how and why pages if necessary.
Note: This is not valid on totest site
Test3_stopwatch: Initial Values Input:
  1. Verify that the initial values below are present when the applet is first started.
    • Time = 00:00:00.0
    • Count Up box is selected.
  2. Press the Start button
Output:
  • The stopwatch should begin counting upward until you press the Stop button.
Test4_stopwatch: Count Up from 0 seconds Input:
  1. Enter "0:0:0" in the time slot and press the Set Time button. This should display "00:00:00.0" on the stopwatch.
  2. Press the arrowing pointing upward and ensure the "Count Up" message is displayed alongside that arrow.
  3. Click the Start button.
Output:
  1. Ensure that the stopwatch begins counting up from 00:00:00.0 and continues to do so in a manner that would resemble an actual digital stopwatch.
  2. Press the Record button at random intervals to ensure that the applet records the time displayed on the stop watch at the time which you pressed the Record button and displays each recorded time in the display box entitled "Recorded Times".
  3. While the stopwatch is running, verify that pressing the Set Time button or attempting to change whether the Stopwatch Counts Up or Down has no effect.
  4. Press the Stop button and verify that the stopwatch stops.
  5. Press Start button once more and verify that the stopwatch resumes counting upward.
  6. Press the Reset button and verify that the stopwatch stops counting and that the stopwatch displays "00:00:00.0."
    Note: Pressing the Start, Stop, Record, or Reset buttons should have no other result than the ones listed above.
  7. Pressing the Clear Times button at any time should clear all the times displayed in the display screen entitled "Recorded Times:". Verify this now.
Test5_stopwatch: Count Up from > 0 seconds Input:
  1. Enter a valid Time greater than "00:00:00.0" in the time slot and press the Set Time button. This should display the time which you entered on the stopwatch.
  2. Press the arrowing pointing upward and ensure the "Count Up" message is displayed alongside that arrow.
  3. Click the Start button.
Output:
  1. Ensure that the stopwatch begins counting up from the time which you entered and continues to do so in a manner that would resemble an actual digital stopwatch.
  2. Press the Record button at random intervals to ensure that the applet records the time displayed on the stop watch at the time which you pressed the Record button and displays each recorded time in the display box entitled "Recorded Times".
  3. While the stopwatch is running, verify that pressing the Set Time button or attempting to change whether the Stopwatch Counts Up or Down has no effect.
  4. Press the Stop button and verify that the stopwatch stops.
  5. Press Start button once more and verify that the stopwatch resumes counting upward.
  6. Press the Reset button and verify that the stopwatch stops counting and that the stopwatch displays "00:00:00.0."
    Note: Pressing the Start, Stop, Record, or Reset buttons should have no other result than the ones listed above.
  7. Pressing the Clear Times button at any time should clear all the times displayed in the display screen entitled "Recorded Times:". Verify this now.
Test6_stopwatch: Count Down from 0 seconds Input:
  1. Enter "00:00:00.0" in the time slot and press the Set Time button. This should display "00:00:00.0" on the stopwatch.
  2. Press the arrowing pointing downward and ensure the "Count Down" message is displayed alongside that arrow.
  3. Click the Start button.
Output:
  1. Ensure that the stopwatch immediately flashes three times - signifing that the count down has reached zero.
  2. Press the Record button several times to ensure that the applet records and displays "00:00:00.0" in the display box entitled "Recorded Times" each time you press the record button
  3. Press the Reset button and verify that the stopwatch displays "00:00:00.0."
    Note: Pressing the Start, Record, or Reset buttons should have no other result than the ones listed above.
  4. Pressing the Clear Times button at any time should clear all the times displayed in the display screen entitled "Recorded Times:". Verify this now.
Test7_stopwatch: Count Down from > 0 seconds Input:
  1. Enter a valid Time greater than "00:00:00.0" in the time slot and press the Set Time button. This should display the time which you entered on the stopwatch.
  2. Press the arrowing pointing downward and ensure that the "Count Down" message is displayed alongside that arrow.
  3. Click the Start button.
Output:
  1. Ensure that the stopwatch begins counting down from the time which you entered and continues to do so in a manner that would resemble an actual digital stopwatch.
  2. Press the Record button at random intervals to ensure that the applet records the time displayed on the stop watch at the time which you pressed the Record button and displays each recorded time in the display box entitled "Recorded Times:".
  3. While the stopwatch is running, verify that pressing the Set Time button or attempting to change whether the Stopwatch Counts Up or Down has no effect.
  4. Press the Stop button and verify that the stopwatch stops.
  5. Press Start button once more and verify that the stopwatch resumes counting downward.
  6. Press the Reset button and verify that the stopwatch stops counting and that the stopwatch displays "00:00:00.0."
    Note: Pressing the Start, Stop, Record, or Reset buttons should have no other result than the ones listed above.
  7. Pressing the Clear Times button at any time should clear all the times displayed in the display screen entitled "Recorded Times:". Verify this now.
Test8_stopwatch: Invalid Time Input:
  1. Enter an invalid time in the Time slot.
    Examples:
    • a
    • 0a:00:0.0
    • 234:2+3.4
  2. Press the Set Time button.
Output:
  1. Ensure that the error message appears saying, "I cannot understand the minute field "your inserted text." Please check for input and try again."
Test9_stopwatch: Bounds on Seconds Input:
  1. Enter a large interger (greater than 59) in the seconds place of the Time field. (The "ss" part of "mm:ss.s")
    Examples:
    • 00:55555555555.0
  2. Press the Set Time button.
Output:
  1. Ensure that an error message appears saying, "You may not have an input greater than 60 (Minutes and/or Seconds) or greater than 24 (hours)."
Test10_stopwatch: Bounds on Minutes Input:
  1. Enter a three digit integer for the minutes value in the Time slot.
    Examples:
    • 123:00.0
  2. Press the Set Time button.
Output:
  1. Ensure that an error message appears saying, "You may not have an input greater than 60 (Minutes and/or Seconds) or greater than 24 (hours)."