Starting from:

$30

CS1632-Assignment 1 Solved

For this assignment, your will determine a test plan for the simple game
Coffee Maker Quest, based on the requirements listed.  There are several known
defects in the software; you will need to find and report on at least three.
Additionally, a traceability matrix showing the mapping of test cases to
requirements is required.

There should be two and only two members in a group.  You may choose to work on
the assignment alone if that's what you prefer.

There should be at least one test case per requirement, although I would
normally expect several test cases per requirement.  

Each requirement should have AT LEAST one test case associated with it in order
to have good test coverage.  Each test case should have AT LEAST one
requirement associated with it (no orphaned test cases).  One test case may
happen to test more than one requirement using a single set of inputs, and that
is fine.  The above can easily be checked via a traceability matrix (which you
should also deliver). 

Test cases should mention all necessary preconditions, execution steps, and postconditions.

I expect you to test several edge and corner cases as part of the test plan.
If you do this, I'd estimate that the number of test cases is at least 2x the
number of requirements.  If the number of test cases is more than 3x the number
of requirements, you are probably overtesting.

You are expected to execute the test plan in order to find the defects.  There
are AT LEAST three.  Full credit will be given only to those who properly find
and describe at least three.  While you are not expected to find all of the
defects, a reasonable test plan should definitely find at least three.  This is
an intentionally target-rich environment.

## Format
The report should start with a cover page with:
* The name of the project under test
* The names of the people in the group
* The title "CS 1632 - DELIVERABLE 1: Test Plan and Traceability Matrix"

There should be a short introduction (a few paragraphs) in which you may note
any concerns or difficulties you may have had or anticipate with the testing
process.  You should also note why you considered certain test cases, how you
came up with edge cases, etc.

ON A NEW PAGE, a traceability matrix should be provided mapping the test cases
with their associated requirements.  Remember that all requirements should map
to AT LEAST ONE test case, and all test cases should map to AT LEAST ONE
requirement.  

ON A NEW PAGE, a list of the actual test cases should follow.  You may name
them any way you wish, but please be consistent.  Please write them out in this
format -

     IDENTIFIER:
     TEST CASE: 
     PRECONDITIONS:
     EXECUTION STEPS:
     POSTCONDITIONS:

ON A NEW PAGE, list at least three defects found.  The defects should follow
the defect reporting template:

      IDENTIFIER:
      SUMMARY:
      DESCRIPTION:
      REPRODUCTION STEPS:
      EXPECTED BEHAVIOR:
      OBSERVED BEHAVIOR:

Please apply all the things you learned through **Exercise 1** to this
deliverable.  For example, don't forget to include any preconditions at the
beginning of the REPRODUCTION STEPS.

There are a few things that are different from Exercise 1 though:

1. Execution Steps: Exercise 1 had just one execution step (launching the
   program).  You will have multiple steps for most test cases in this
deliverable.  All steps must numbered and clearly delineated.  It should not
say "Go north".  Instead it should say "Type N and press [Enter]".

2. Preconditions: Unlike Exercise 1, now preconditions can include program
   state as well as other system state.  For example, you might want express a
precondition that the player has sugar in possession.  Now you have two
options: 1) Just straight up say "The player has sugar" or 2) List the input
steps that led to the program state where the player has sugar.  Which do you
prefer?

   The former has brevity on its side, but if you really want your test case to
be reproducible you should really do the latter.  Because depending on the
steps you took the acquire the sugar, the program could be internally in a
different state.  For example, suppose the program has an internal counter that
counts the number of rooms visited by the player.  Depending on the route you
took to get to the sugar, that counter value would be different and that value
may impact the final outcome of your program!

   So in summary, always describe preconditions as a series of performed
actions rather than the external visible program state.  This also applies to
defect reporting.  Then you may ask, wouldn't that make the preconditions
harder to read?  It's much easier to understand "the player has sugar" rather
than trying to decypher the series of steps that leads to that precondition.
Well, you can describe the preconditions you are trying to achieve at the
beginning of the PRECONDITIONS item and then list the steps that get you there.
Phew!

## Coffee Maker Quest

Coffee Maker Quest is a simple game.  The goal is get coffee, sugar, and cream,
and then drink it so that you can stay up and study.  In order to do so, you
need to visit several rooms in a house and look around.  Once you have obtained
all the necessary elements, you win.  If you decide to drink before getting all
of the necessary elements, you lose.

You can run it downloading the coffeemaker.jar file and running:
```bash
java -jar coffeemaker.jar
```

The requirements are listed in the file [requirements.txt](requirements.txt).

More products