Skip to main content Accessibility help
×
Hostname: page-component-76fb5796d-skm99 Total loading time: 0 Render date: 2024-04-28T15:38:00.092Z Has data issue: false hasContentIssue false

6 - Creating Test Cases from Requirements and Use Cases

Published online by Cambridge University Press:  05 November 2012

Yogesh Singh
Affiliation:
Guru Gobind Singh Indraprastha University, Delhi
Get access

Summary

We prepare ‘Software requirements and specifications’ document to define and specify user requirements. In the initial years of software development, requirement writers used to write stories to explain the expected behaviour of the system and its interactions with the external world. Ivar Jacobson and his team [JACO99] gave a new dimension and direction to this area and developed a Unified Modeling Language (UML) for software development. They introduced use case approach for requirements elicitation and modeling. This is a more formal way to write requirements. The customer knows what to expect, the developer understands what to code, the technical writer comprehends what to document and the tester gets what to test. The use cases address primarily the functional requirements, meaning thereby, the perspective of the users sitting outside the system. Use cases capture the expectations in terms of achieving goals and interactions of the users with the system.

The IEEE Std 830-1998 requires us to follow a systematic approach which may include the design of use cases, various forms for interaction with the user, data validations, reports, error handling and response to unexpected situations. This is an important document designed in the initial phases of the software development. In this chapter, techniques have been discussed to design test cases from requirements. Database testing has also been introduced to design test cases using interface forms.

USE CASE DIAGRAM AND USE CASES

Use case diagram is also used along with use cases to explain the functionality of the system. This is a graphical representation and gives the top view of the system along with its users and use cases. Use case diagram may be decomposed into a further level of abstraction. Use cases and use case diagrams are normally used together to define the behaviour of a system.

Type
Chapter
Information
Software Testing , pp. 285 - 334
Publisher: Cambridge University Press
Print publication year: 2011

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×