What is Use Case

The set of Use Case descriptions specifies the complete functional requirements of a system. Describe Business process. It can be written only for functional requirements. Not good for specifying user interfaces, data formats, business rules, non-functional requirements.

Use Case are

  • easy to read.
  • It written in language of the user.
  • Can be visually represented as diagrams.
  • Used for creating acceptance test cases in coordination with customers.

Use Case Testing | softwaretestingbooks.com

Actors in UseCase

  • Actors are entities that interact with the system.
  • Actors live outside the boundary of the system.
  • Actors can be human beings, hardware device, software service or other organization.

Type of Actors

Primary Actor

  • Primary actor triggers the execution of use case in process.
  • Primary actor is one who calls the system to deliver a service.

Ex:

  • User – Insert ATM card to initiate withdrawal of money.

Supporting Actor

Supporting actor provides service to the system and helps primary actor to achieve the goal.

Helps in identifying external interfaces to the system.

Ex :

  • Printer Drivers
  • Web Service

Pre Conditions

  • It is state of the application which needs to be set prior to the execution.
  • It should always be true before beginning.
  • Is assumed to be true and it is not tested.

Post Conditions

  • It must be true on successful completion, either the main success scenario or some alternate path.
  • A post condition should be true regardless of which alternative flows were executed.

Paths / Flows

  • Normal Path
  • Alternate path
  • Exceptional Path
  • Error Path

Note :  

  • Use common template.
  • Crate a list of primary actors and their goals.
  • Make the it is clear, short and easy to read. Use active voice, present tense, make sure actor and actor’s intent are visible in each step.
  • Every use case has two possible endings success or failure. Don’t forgot to gather both.
  • It restrict to capture system behavior.

Leave a Reply

Your email address will not be published. Required fields are marked *