SS ZG 552 Software Testing Methodologies: BITS Pilani
SS ZG 552 Software Testing Methodologies: BITS Pilani
SS ZG 552 Software Testing Methodologies: BITS Pilani
Software Testing
Methodologies
BITS Pilani Dr. Ritu Arora
rituarora@pilani.bits-pilani.ac.in
Pilani|Dubai|Goa|Hyderabad
Example – BVA –
Image Processing
An image can be represented in the form of pixels. Each
pixel has a [RGB] value which represents the Red,
Green and Blue color components of the pixel. Each of
the [RGB] values lie in the range 0-255 (end points
included). A program takes the [RGB] value of a pixel
and returns the most dominant color of the pixel (which
ever component has the highest value is the dominant
color).
b) Write all the test cases for Robust BVA for the pixel program.
Specification-based Testing:
Equivalence Class Partitioning
Equivalence Class Testing
• Equivalence Classes form a partition of a set, where
partition refers to a collection of mutually disjoint
subsets, the union of which is the entire set.
• Disjointedness ensures redundancy
• Union provides completeness
[ - closed interval
) – open interval
g
t2
x2
f
t1 t3
a b c d
x1
g
t2
t4 t3
x2
f
t1 t5 t6
a b c d
x1
t5
g
t2
t4
x2
f
t1 t3
t6
e
t7
a b c d
x1
t7 t8 t9 t10 t11
g
t2 t12
t20 t4 t3
x2
f
t1 t5 t6 t13
t19
a b c d
x1
40 < Age <= 50 3 Lacs <= Income <= 5 Lacs Rs. 75,000
40 < Age <= 50 5 Lacs < Income <= 10 Lacs Rs. 1 Lac
40 < Age <= 50 10 Lacs < Income <= 15 Lacs Rs. 2 Lac
40 < Age <= 50 Income > 15 Lacs Rs. 3 Lacs
Agenda: Lecture 4
• Module 5: Code Based Testing