Software Testing: ©ian Sommerville 2004
Software Testing: ©ian Sommerville 2004
A student in Scotland is studying American History and has been asked to write a paper
on ‘Frontier mentality in the American West from 1840 to 1880’. To do this, she needs to
find sources from a range of libraries. She logs on to the LIBSYS system and uses the
search facility to discover if she can access original documents from that time. She
discovers sources in various US university libraries and downloads copies of some of
these. However, for one document, she needs to have confirmation from her university
that she is a genuine student and that use is for non-commercial purposes. The student
then uses the facility in LIBSYS that can request such permission and registers her
request. If granted, the document will be downloaded to the registered library’s server
and printed for her. She receives a message from LIBSYS telling her that she will receive
an e-mail message when the printed document is available for collection.
1 . Test the login mechanism using correct and incorrect logins to check
that valid users are accepted and invalid users are rejected.
2 . Test the search facility using different queries against known sources to
check that the search mechanism is actually finding documents.
3 . Test the system presentation facility to check that information about
documents is displayed properly.
4. Test the mechanism to request permission for downloading.
5 . Test the e-mail response indicating that the downloaded document is
available.
The user shall be able to search either all of the initial set of databases or select a
subset from it.
The system shall provide appropriate viewers for the user to read documents in the
document store.
Every order shall be allocated a unique identifier (ORDER_ID) that the user shall
be able to copy to the account’s permanent storage area.
• Initiate user search for searches for items that are known to
be present and known not to be present, where the set of
databases includes 1 database.
• Initiate user searches for items that are known to be present
and known not to be present, where the set of databases
includes 2 databases
• Initiate user searches for items that are known to be present
and known not to be present where the set of databases
includes more than 2 databases.
• Select one database from the set of databases and initiate
user searches for items that are known to be present and
known not to be present.
• Select more than one database from the set of databases
and initiate searches for items that are known to be present
and known not to be present.
Pre-condition
-- the sequence has at least one element
T’FIRST <= T’LAST
Post-condition
-- the element is found and is referenced by L
( Found and T (L) = Key)
or
-- the element is not in the array
( not Found and
not (exists i, T’FIRST >= i <= T’LAST, T (i) = Key ))
Sequence Element
Single value In sequence
Single value Not in sequence
More than 1 value First element in sequence
More than 1 value Last element in sequence
More than 1 value Middle element in sequence
More than 1 value Not in sequence