Test Plan for a Help System: Functionality and Behavior Tests, Study notes of Computer Science

Various tests for a help system, including tests for handling task instructions out of range, adding and removing steps, and retrieving task information from a help repository. It also includes tests for a guide system, such as finding tasks based on keywords and getting task information.

Typology: Study notes

Pre 2010

Uploaded on 08/04/2009

koofers-user-ih9
koofers-user-ih9 ๐Ÿ‡บ๐Ÿ‡ธ

10 documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Test Plans
M1
Item
Number
Context Test Expected Result Actual Result
1 A TaskInstruction
with n steps
Get step instruction that is
out of range.
Displays error to
transcript and
returns nil
True
2 โ€œ Put a new step at an index
less than 1
Causes an array out
of bounds
exception
True
3 โ€œ Insert a new step inside
the current range of steps
Shifts all steps
down by one and
adds the new step at
the given index
True
3 โ€œ Replace a step inside the
current range of steps
Replaces the step at
a given index with
the new step
True
4 โ€œ Put a new step at an index
greater than n
Add the new step to
the end of the array
True
5 โ€œ File out the task
instruction to an invalid
file name
Displays error to
transcript and
returns false
True
6 โ€œ File out the task
instruction to a valid file
name
Outs the task to the
specified file and
returns true
True
7 โ€œ File in a task instruction
where the file is non-
existent
Displays error to
transcript and
returns false
True
8 โ€œ File in a task instruction
where the file exist
Takes the task from
the specified file
and returns true
True
9 A HelpRepository
with n tasks
Get all of the names of the
tasks
Returns a set of
strings representing
the names of tasks
True
10 โ€œ Get all of the names and
descriptions of the tasks
Returns a set of
two-element arrays
representing tasks
True
11 โ€œ Add a new task instruction
to the repository with a
new name, description,
and steps
Adds the new task
and returns true
True
12 โ€œ Add a new task instruction
to the repository with an
old name
Displays error to
transcript and
returns false
True
pf3
pf4
pf5

Partial preview of the text

Download Test Plan for a Help System: Functionality and Behavior Tests and more Study notes Computer Science in PDF only on Docsity!

Test Plans M Item Number Context Test Expected Result Actual Result 1 A TaskInstruction with n steps Get step instruction that is out of range. Displays error to transcript and returns nil True 2 โ€œ Put a new step at an index less than 1 Causes an array out of bounds exception True 3 โ€œ Insert a new step inside the current range of steps Shifts all steps down by one and adds the new step at the given index True 3 โ€œ Replace a step inside the current range of steps Replaces the step at a given index with the new step True 4 โ€œ Put a new step at an index greater than n Add the new step to the end of the array True 5 โ€œ File out the task instruction to an invalid file name Displays error to transcript and returns false True 6 โ€œ File out the task instruction to a valid file name Outs the task to the specified file and returns true True 7 โ€œ File in a task instruction where the file is non- existent Displays error to transcript and returns false True 8 โ€œ File in a task instruction where the file exist Takes the task from the specified file and returns true True 9 A HelpRepository with n tasks Get all of the names of the tasks Returns a set of strings representing the names of tasks True 10 โ€œ Get all of the names and descriptions of the tasks Returns a set of two-element arrays representing tasks True 11 โ€œ Add a new task instruction to the repository with a new name, description, and steps Adds the new task and returns true True 12 โ€œ Add a new task instruction to the repository with an old name Displays error to transcript and returns false True

13 โ€œ Remove an instruction from the repository with an invalid name Displays error to transcript and returns false True 14 โ€œ Remove an instruction form the repository with a valid name Removes and returns the specified task True 15 โ€œ Find an instruction given a bad task name Returns nil True 16 โ€œ Find an instruction given a valid task name Returns specified task True M Item Number Context Test Expected Result Actual Result 1 A guide containing a help repository with n task instructions Get all of the names of the tasks Returns a set of two-element arrays with names and descriptions representing tasks True 2 โ€œ Find a task given a collection of keywords which match a task Return a collection of tasks which match the given keywords True but points taken off, so not currently sure until meeting with TA 3 โ€œ Find a task given a collection of keywords which do not match any tasks Return an empty collection Return collection of tasks with match results of 0 4 โ€œ Get a task given a valid task name Return the task True 5 โ€œ Get a task given an invalid task name Display an error to the transcript and return nil True 6 A guide where the user has not selected a task Get the next step of a task Display an error to the transcript and return nil True 7 A guide where the user has selected a task Get the next step of a task given that the next step is not the last step Return the next step of the task True 8 โ€œ Get the next step of a task given that it is the last step Display an error to the transcript and return the final task True 9 A guide where the user has not selected Get the previous step of a task Display an error to the transcript and True

macro menu show the user how to open and close a menu M Item Number Context Test Expected Result Actual Result 1 A demo engine with n macros Add a new macro with a new macroID Add the new macro to the demo engine True 2 โ€œ Add a new macro with an existing macroID Ignore the new macro, keep the old one. True 3 โ€œ Remove a macro with a valid macroID Remove the macro from the demo engine True 4 โ€œ Remove a macro with an invalid macroID Display an error message True 5 A guide with n task instructions Save a task into a file in xml format given a valid file name Save the task into that file in xml format True 6 โ€œ Save a task into a file in xml format given an invalid file name Display an error message and prompt for a new file name True 7 โ€œ Load a task from a file given a valid file name Add the new task to the list of available tasks in the guide True 8 โ€œ Load a task from a file given an invalid file name Display an error message and prompt for a new file name True 9 A completed system of between the guide and the demo engine The user selects a task instruction and is at the last step of learning to play sound files but chooses for the guide to do it The animation plays the sound. True M Item Number Context Test Expected Result Actual Result 1 A completed guide with all 10 tasks User enters free form text to find a task (i.e. How to open a workspace) Guide should extract main words (open, workspace) True

to use as keywords and return relevant results 2 โ€œ User searches for all available tasks and selects one to perform Guide return all possible tasks and return the first step of the task that was selected True 3 โ€œ User moves on to next step without completing the necessary dependency of a previous step (i.e. opening a workspace without opening the world menu) Guide should recognize that the world menu was not open and open the world menu for the user before displaying the next step True 4 โ€œ User tries to exit the animation while the DemoEngine is performing this demonstration. The buttons should not be displayed while in animation. True 5 โ€œ User types instructions in workspace as instructed, and executes it. The user should be able to continue on to the next step. True 6 โ€œ User clicked on the โ€˜Animateโ€™ button, then tries to click on it again. The user should not be able to click the button a second time during animation, since the button is hidden from view. True.