Default

Sample Pencil Actors and User Stories

Sample Pencil Actors and User Stories

This post is related to writing Test cases for a Pencil. Understanding the system actors and User stories would help to understand the system better and write effective test cases for the system under test.

Sample Actors and User Stories

Feel free, to ask questions like:

  • Who is going to use the system( pencil ?)
  • What is the intended purpose of the system?
  • What are the business goals?
  • Why would the user use the system?

Identify the actors of the system. Primary actors of the system are the users who use the system to achieve some business goal. A Student might use the pencil for writing on a paper. A Cartoonist needs various pencils of colors, hardness to draw a picture and shades. However, a Carpenter might be using a pencil as a wood markers to mark wood. For many actors the main use case is writing or drawing.

Pencil Test Cases

What if there are no requirements for the Pencil. Identify the main intended purpose of the system. What is the main use cases of the system by the actors. What are the user stories?

User Stories

User story is simple informal description of the product feature or system interaction from the end user perspective. For example, a Student user story of the Pencil

As a Student 
Given 2HB Pencil, OMR Sheet, Question Paper 
I want to Bubble the Answers with Pencil
So that I can Pass/Qualify the Entrance Examination 

Explanation

As a <Student> -> Actor and Role
Given 2HB Pencil, OMR Sheet, Question Paper
I want to <Bubble the Answers with Pencil> -> User Action
So that < I can quality the Entrance Exam> -> User Business Goal

The business goals may vary from actor to actor of the same system.

Sample Use case diagram

Sample Use case diagram of how the actors of the system interact or use the system. For example, A Student might use the Pencil to mark bubbles in an OMR sheet to qualify his/her entrance examination.

 

Pencil Use Cases