Attendance at the lab session on Wednesday, April 9 is worth 20 points.
This is an individual / team activity. Every student is expected to write the test cases by themselves and submit before the lab period. Then the team is supposed to combine the individual test cases to get a better set of test cases and submit that as the Team result.
Educational goals of this activity - verify that every student can
INSTRUCTIONS:
Please read this page on testing files.
Testing
Read the assignment carefully. Look at how the program is supposed to behave. You do not know what the code looks like yet - that is fine. The assignment gives an example of normal runs. Consider if the user can cause failures. How can the file cause problems?
As the form describes, do some hand work and turn in two text files
also.
"Choose 40 or 50 random numbers in the range 0 to 255. (If you don't want to do that by hand, you can write a little program to do it for you.) Save them in a text file called data.txt.
Choose a 4-5 letter message - any ASCII characters are allowed. ASCII chart
Go through the insertion process as described in the assignment. It is easier to use the description which
uses every number instead of every third number (just so you don't have to make up so many random numbers).
Save the final state of the data - all of it, not just the ones you changed - in another text file, called coded.txt
Submit the two textfiles - the before and the after - for 10 lab points. This also counts as one of
your test cases. You should save the files for use later with the actual program. You can use the same submit link
as for the program - just use Program 4 and Other as the type.
Now extract the message from the coded.txt file using the extraction algorithm. Verify that you get the message back that you inserted."
Make a test plan for this program.
Save this doc file
and fill in the table with test cases.
You should have at least 16 non-redundant cases (that counts
all the ones you make in all tables).
When you are finished with this activity, you should have:
Log off properly - you don't want your account misused by someone else!
Remember NOT to leave files on the local hard drives in this lab or anywhere else on campus! Make sure you save your projects on the Locker drive or onto a portable storage device you take with you!
Submission Deadlines:
Individual Test Cases, Tuesday April 8, midnight
Team Test Cases, Wednesday April 9, deadline given by instructor during
the lab period