Basic structure of an Use case template for software testing.

| | 2 min read

Use case lists the steps involved in the interaction between the actor and the system. Here actor refers to the users who are interacting with the system. The main objective of the use case is to co-ordinate the functional requirement, user roles and basic flow of actions into a single document. Like SRS, 'use case' template is prepared at the beginning of the SDLC. The use cases are often prepared by the Business Analysts. The main difference between use case and test case is that, use case focuses on the requirement of the site (business requirement) while test cases include different scenarios (positive and negative) for ensuring the correctness of the application. Use case can be used as a reference for writing test cases, for getting a basic work flow of the site. Since use cases focuses on the customer requirement, the document plays an important role in ensuring the quality of the product. Here is a use case template, you can refer while preparing Use cases for your projects.

Template:

Feature Name: (Header, Login etc..)

Use Case ID: <Enter the use case ID for eg: UC1, UC2...>
Use Case Name: <Give a brief title for the functionality>
Use case Description: <Brief note on further description of the functionality>
Primary Actor: <Specify the users like authenticated, unauthorized user..etc>
Pre Condition: <List any conditions that must be true, before the use case can be started (test conditions)>
Basic Flow: <Give outline of the work flow>
Alternative Flow (if any): <Give the alternate flow other than the main/basic flow>
Post Condition: <Here give a brief conclusion on the outcome of the functionality>
Assumptions: <List the assumption that were made in the analysis>
Notes and Issues: <If you have any additional comments about the issue, add here>

You can modify the fields on the template thereby making it more user friendly and information conveying. Hope this template helps. Your valuable suggestions are always welcome. Feel free to comment via comments or social networking. Enjoy testing:)