Test Case Template for Project Using Agile Methodology


User Story

One template that can be used while writing user stories could be –
“As a (role) I want (functionality) so that (benefit).”

For example –

As a ‘Bank Customer’, wants to ‘Transfer Funds’ to one of their friends / acquaintances online, which is fast and auditable.

Or, the user story could be described as a single line item (2-5 words) as well.
For example – Fund Transfer

Test Cases

Few of the test cases (summary) for above user story could be as follows.  These test cases should be developed with the help of Business analyst.

  1. Transfer fund when fund is in range of acceptable limit and existing balance is sufficient.
Or,
Fund transfer amount less than existing balance

  1. Transfer fund when fund is in range of acceptable limit but existing balance is not sufficient.
Or,
Fund transfer amount more than existing balance

  1. Transfer fund when fund amount is beyond acceptable limit.
Or,
Fund transfer amount more than acceptable limit.

Detail Test Case

The above test cases summary is good / sufficient for business analyst or experienced tester (old timer) but the detail is not enough for new comer or for the automation.  Following template is recommended for detailing the above test cases. It is only a template whereas for actual test cases documentation / authoring either excel can be used or preferably some test case management tool (e.g. XStudio, TestLink) 
  
 Fund transfer amount less than existing balance
Action
Parameters
Prerequisites
Remarks
Login to payer account
xyz@easybank.com, password
Correct user id / password

Retrieve payee current balance
Payee_userid, Payee_password,
{Payee_Current_Balanace}
Payee account should exist

Retrieve current balance
{Payer_Current_Balanace}


Select registered payee by nick name
ABC
ABC should be a registered payee

Schedule Transfer fund with following detail
$1000, Today
a.  Payer existing balance > $1000
b.Fund can be transferred today
Fund transfer limit > $1000

Verify payer current balance
{Payer_Current_Balance}


Logout from payer account



Verify payee current balance
Payee_userid, Payee_password, {Payee_Current_Balance}




With above detail test case template –

  1. The test case steps are listed in a free flow tabular format and can be modified easily.
  2. Step verifications are more robust, as following each step additional checkpoints can be modified easily without breaking the existing flow.
  3. All pre-requisites suggest validating the environment before conducting the test.  During automation, it can be used for setting up the test environment accordingly before conducting the test.
  4. The parameter enclosed in {} is being served as output parameter and can be used later while executing the test case
  5. While automating, the steps can be broken further if required, for example – Retrieve payee current balance can be broken further as –
    1. Login to Payee account
    2. Retrieve current balance
    3. Logout

Comments

Popular posts from this blog

Performance Test Run Report Template

Bugs Management in Agile Project

Understanding Blockchain