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:
- Verify that the initial values below are present
when the applet is first started.
- Time = 00:00:00.0
- Count Up box is selected.
- 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:
- Enter "0:0:0" in the time slot and press the Set Time
button. This should display "00:00:00.0" on the stopwatch.
- Press the arrowing pointing upward and ensure the "Count Up"
message is displayed alongside that arrow.
- Click the Start button.
Output:
- 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.
- 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".
- 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.
- Press the Stop button and verify that the stopwatch
stops.
- Press Start button once more and verify that the stopwatch
resumes counting upward.
- 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.
- 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:
- 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.
- Press the arrowing pointing upward and ensure the "Count Up"
message is displayed alongside that arrow.
- Click the Start button.
Output:
- 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.
- 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".
- 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.
- Press the Stop button and verify that the stopwatch
stops.
- Press Start button once more and verify that the stopwatch
resumes counting upward.
- 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.
- 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:
- 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.
- Press the arrowing pointing downward and ensure the "Count
Down" message is displayed alongside that arrow.
- Click the Start button.
Output:
- Ensure that the stopwatch immediately flashes three times -
signifing that the count down has reached zero.
- 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
- 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.
- 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:
- 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.
- Press the arrowing pointing downward and ensure that the "Count
Down" message is displayed alongside that arrow.
- Click the Start button.
Output:
- 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.
- 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:".
- 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.
- Press the Stop button and verify that the stopwatch
stops.
- Press Start button once more and verify that the stopwatch
resumes counting downward.
- 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.
- 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:
- Enter an invalid time in the Time slot.
Examples:
- Press the Set Time button.
Output:
- 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:
- Enter a large interger (greater than 59) in the seconds place
of the Time field. (The "ss" part of "mm:ss.s")
Examples:
- Press the Set Time button.
Output:
- 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:
- Enter a three digit integer for the minutes value in the Time slot.
Examples:
- Press the Set Time button.
Output:
- 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)."
|