100% found this document useful (1 vote)
533 views7 pages

Test Design Specification

This document provides a test design specification for withdrawal functionality from an account. It identifies two techniques for designing tests: 1) Equivalence Partitioning and 2) Boundary Value Analysis. It then applies both techniques to define test conditions, test coverage, and example test data for validating the account type and cash amount parameters of the withdrawal feature. The tests cover valid, invalid, and boundary value scenarios to help ensure comprehensive testing of the functionality.

Uploaded by

Amira Eira
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
533 views7 pages

Test Design Specification

This document provides a test design specification for withdrawal functionality from an account. It identifies two techniques for designing tests: 1) Equivalence Partitioning and 2) Boundary Value Analysis. It then applies both techniques to define test conditions, test coverage, and example test data for validating the account type and cash amount parameters of the withdrawal feature. The tests cover valid, invalid, and boundary value scenarios to help ensure comprehensive testing of the functionality.

Uploaded by

Amira Eira
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Faculty of Computer Systems & Software Engineering

Universiti Malaysia Pahang

MCS2034 SOFTWARE TESTING AND VERIFICATION


Semester 2 2016/2017

TEST DESIGN SPECIFICATION


F005 WITHDRAWAL

AMIRA FATIHA BINTI BAHARUDIN


KCT15005

Lecturers Name:
DR. ABDULRAHMAN AHMED AL-SEWARI
MCS2034 SOFTWARE TESTING AND VERIFICATION 1

F005 Withdrawal
Two techniques are identified for designing test for this feature, including:
i. Equivalence Partitioning (EP)
ii. Boundary Value Analysis (BVA)

1) Type of account to withdraw from:


a) 1 - saving
b) 2 - checking
c) 3 - money market

EP BVA
INPUT
Valid
Valid
1>=ACCOUNT TYPE<=3

Input Invalid

ACCOUNT TYPE<1
Invalid
Invalid

ACCOUNT TYPE>3

OUTPUT 1 3
Valid
Valid
1>=ACCOUNT TYPE<=3

Output 0 0
Invalid

ACCOUNT TYPE<1
Invalid
4 9
Invalid

ACCOUNT TYPE>3
MCS2034 SOFTWARE TESTING AND VERIFICATION 2

i) Equivalence Partitioning (EP)

0 1 3 9
Invalid Valid Invalid

ACCOUNT TYPE<1 1>=ACCOUNT TYPE<=3 ACCOUNT TYPE>3

Test Condition Test Condition Test Coverage Test Coverage Example of


ID ID Test Data

TCON-05-001 ACCOUNT TYPE<1 TCOV-05-001 (ACCOUNT TYPE<1) 0


Invalid
TCON-05-002 1>=ACCOUNT TCOV-05-002 (1>=ACCOUNT 1
TYPE<=3 TYPE<=3)
Valid
TCON-05-003 ACCOUNT TYPE>3 TCOV-05-003 (ACCOUNT TYPE>3) 5
Invalid
TCON-05-004 VALID ACCOUNT TCOV-05-004 (VALID ACCOUNT 2
TYPE TYPE)
Valid Output
TCON-05-005 INVALID TCOV-05-005 (INVALID ACCOUNT 8
ACCOUNT TYPE TYPE)
Invalid Output
MCS2034 SOFTWARE TESTING AND VERIFICATION 3

ii) Boundary Value Analysis (BVA)

0 01 34 9
Invalid Valid Invalid

ACCOUNT TYPE<1 1>=ACCOUNT TYPE<=3 ACCOUNT TYPE>3

Test Condition Test Condition Test Coverage Test Coverage Example of


ID ID Test Data

TCON-05-006 ACCOUNT TYPE=0 TCOV-05-006 (ACCOUNT TYPE=0) 0


Invalid
TCON-05-002 ACCOUNT TYPE=1 TCOV-05-002 (ACCOUNT TYPE=1) 1
Valid
TCON-05-007 ACCOUNT TYPE=3 TCOV-05-007 (ACCOUNT TYPE=3) 3
Valid
TCON-05-008 ACCOUNT TYPE=4 TCOV-05-008 (ACCOUNT TYPE=4) 4
Invalid
TCON-05-009 ACCOUNT TYPE=9 TCOV-05-009 (ACCOUNT TYPE=9) 9
Invalid
TCON-05-004 VALID ACCOUNT TCOV-05-004 (VALID ACCOUNT 2
TYPE TYPE)
Valid Output
TCON-05-005 INVALID TCOV-05-005 (INVALID ACCOUNT 8
ACCOUNT TYPE TYPE)
Invalid Output
MCS2034 SOFTWARE TESTING AND VERIFICATION 4

2) Amount of cash to withdraw:


a) 1 RM20
b) 2 RM40
c) 3 RM60
d) 4 RM100
e) 5 RM200

EP BVA
INPUT
Valid
Valid
1>=CASH AMOUNT<=5

Input Invalid

CASH AMOUNT<1
Invalid
Invalid

CASH AMOUNT>5

OUTPUT 1 5
Valid
Valid
1>=CASH AMOUNT<=5

Output 0 0
Invalid

CASH AMOUNT<1
Invalid
6 9
Invalid

CASH AMOUNT>5
MCS2034 SOFTWARE TESTING AND VERIFICATION 5

j) Equivalence Partitioning (EP)

0 1 5 9
Invalid Valid Invalid

CASH AMOUNT<1 1>=CASH AMOUNT<=5 CASH AMOUNT>5

Test Condition Test Condition Test Coverage Test Coverage Example of


ID ID Test Data

TCON-05-010 CASH AMOUNT<1 TCOV-05-010 (CASH AMOUNT<1) 0


Invalid
TCON-05-011 1>=CASH TCOV-05-011 (1>=CASH 1
AMOUNT<=5 AMOUNT<=5)
Valid
TCON-05-012 CASH AMOUNT>5 TCOV-05-012 (CASH AMOUNT >5) 7
Invalid
TCON-05-013 VALID CASH TCOV-05-013 (VALID CASH 4
AMOUNT AMOUNT)
Valid Output
TCON-05-014 INVALID CASH TCOV-05-014 (INVALID CASH 8
AMOUNT AMOUNT)
Invalid Output
MCS2034 SOFTWARE TESTING AND VERIFICATION 6

ii) Boundary Value Analysis (BVA)

0 01 56 9
Invalid Valid Invalid

CASH AMOUNT <1 1>= CASH AMOUNT <=5 CASH AMOUNT >5

Test Condition Test Condition Test Coverage Test Coverage Example of


ID ID Test Data

TCON-05-015 CASH AMOUNT =0 TCOV-05-015 (CASH AMOUNT =0) 0


Invalid
TCON-05-011 CASH AMOUNT =1 TCOV-05-011 (CASH AMOUNT =1) 1
Valid
TCON-05-016 CASH AMOUNT =5 TCOV-05-016 (CASH AMOUNT =5) 5
Valid
TCON-05-017 CASH AMOUNT =6 TCOV-05-017 (CASH AMOUNT =6) 6
Invalid
TCON-05-018 CASH AMOUNT =9 TCOV-05-018 (CASH AMOUNT =9) 9
Invalid
TCON-05-013 VALID CASH TCOV-05-013 (VALID CASH 4
AMOUNT AMOUNT)
Valid Output
TCON-05-014 INVALID CASH TCOV-05-014 (INVALID CASH 8
AMOUNT AMOUNT)
Invalid Output

You might also like