Bigsun Technologies logo

Bigsun Udaan › Business analysis guides › Practice Test-Case Template

Template and worked examples

A practice test-case template

A test case is a set of steps with a clear expected result. Use this template, study the worked examples, then write your own.

The template

Test IDRequirementScenarioPre-conditionStepsTest dataExpected resultActual resultPass / Fail
TC-001        
TC-002        
TC-003        

Worked example 1 — sign in

Requirement FR-01: An employee shall be able to sign in with a personal account.

Test IDScenarioStepsTest dataExpected result
TC-001Sign in with correct details1. Open the sign-in page. 2. Enter email and password. 3. Press Sign in.A valid test accountThe employee’s home page opens and shows their name.
TC-002Wrong password1. Open the sign-in page. 2. Enter a valid email and a wrong password. 3. Press Sign in.Valid email, wrong passwordAn error message appears. The employee is not signed in. The message does not say which part was wrong.
TC-003Empty fields1. Open the sign-in page. 2. Leave both fields empty. 3. Press Sign in.NoneBoth fields are highlighted with a message asking the user to fill them in.

Worked example 2 — apply for leave

Requirements FR-02 and FR-04 from the sample requirements document.

Test IDScenarioPre-conditionStepsExpected result
TC-010Valid request within balanceEmployee has 5 days of balance1. Open “Apply for leave”. 2. Choose leave type, start date and a 2-day end date. 3. Add a reason. 4. Press Submit.Request is saved as “Pending”. A confirmation is shown. Manager is notified.
TC-011Request exceeds balanceEmployee has 1 day of balanceSubmit a 3-day paid leave request.Request is not submitted. A message says the balance is not enough.
TC-012End date before start dateEmployee is signed inChoose an end date earlier than the start date. Press Submit.An error appears next to the date. Nothing is submitted.
TC-013Unpaid leave beyond balanceEmployee has 0 days of balanceSubmit a 2-day request with type “Unpaid”.Request is accepted (as allowed by FR-04).

Tips for good test cases

Defect report template

If a test fails, record the problem clearly so it can be fixed.

Defect IDDEF-001
TitleShort summary, e.g. “Request is accepted when end date is before start date”
Related test caseTC-012
Steps to reproduce1. … 2. … 3. …
Expected resultWhat should have happened
Actual resultWhat really happened
SeverityHigh / Medium / Low
EvidenceScreenshot or note
Date and tester 

Practice

Write four test cases for FR-06 (a manager approves or rejects a request). Include one case where the manager leaves no comment and one where the request has already been cancelled by the employee.

Original educational material created by Bigsun Technologies for the Bigsun Udaan initiative. The people, companies and figures in the examples are fictional. This is a learning aid, not an accredited course or a guarantee of employment.