2023 PS02EMCA59 SoftwareTesting Unit2 Unlocked
2023 PS02EMCA59 SoftwareTesting Unit2 Unlocked
S0 C 59 [Software
PS02EMCA59 [[So
So t a e Testing]
Software est g]
g]
Testing
V&V (Verification & Validation)
Verification Validation
Verification addresses the concern: "Are we building Validation addresses the concern: "Are we building the
the product right? right product?
product?"
Ensures that the software system meets all the Ensures that the functionalities meet the intended
functionality. behavior.
Verification takes place first and includes the Validation occurs after verification and mainly
checking for documentation,
documentation code,
code etc.
etc involves the checking of the overall product.
product
Black-Box White-Box
Functional/Behaviour Testing (Focuses on functional Glass-box/Structural Testing (Focuses on the internal
requirements of the software).
software) structure of the program).
program)
Structure of the program is not considered. Structure of the program is considered.
Test cases are decided solely on the basis of the Test cases are decided solely on the basis of internals
requirements or specifications. of the module or the program i.e. from an
examination of the program
program’ss logic.
logic
Types of error : incorrect or missing functions, Types of error : logical error, run-time error, data-flow
interface errors, errors in data structures or external error, looping error , etc.
database access, bahaviour or performance errors,
initialization or termination errors, etc.
Examples : Examples:
Graph-based testing, Equivalence Partitioning, Statement coverage testing, condition testing, data-
Boundary Value analysis, Cause-effect Graphing, flow testing, mutation testing, Basis Path Testing,
Orthogonal Array Testing, pair-wise testing, State- Control Structure Testing, etc.
b
based
d testing,
t ti etc.
t
1 2 3
Decision Table Graph-Based Error
Testing Testing Guessing
Technique
4 5 6
Dr. B. B. Patel (Associate Professor), S P University ( - [email protected] ) 9
Equivalence Class Partitioning
• Equivalence Class Testing, which is also known as Equivalence Class
Partitioning (ECP) and Equivalence Partitioning, is an important software testing
q
technique used by
y the team of testers for g
grouping
p g and p
partitioning
g of the test
input data, which is then used for the purpose of testing the software product
into a number of different classes.
• It is
i a software
ft t ti
testing t h i
technique or black-box
bl k b t ti
testing th t divides
that di id input
i t domain
d i
into classes of data, and with the help of these classes of data, test cases can be
derived.
• An ideal test case identifies class of error that might require many arbitrary test
cases to be executed before general error is observed.
If the range condition is given as an input, then one valid and two invalid equivalence
classes are defined.
If a specific
p value is g
given as input,
p then one valid and two invalid equivalence
q classes
are defined.
If a member of set is g
given as an input,
p , then one valid and one invalid equivalence
q
class is defined.
Stub Entries
C1
Conditions Part-1
C2 Part-3
C3
A1
A2
Actions Part-2
A3
Part-4
A$
Dr. B. B. Patel (Associate Professor), S P University ( - [email protected] ) 27
Decision Table Testing
• Condition Stubs : The conditions are listed in this first upper left part of the
decision table that is used to determine a particular action or set of actions.
• Action Stubs : All the p
possible actions are g
given in the first lower left p
portion ((i.e,,
below condition stub) of the decision table.
• Condition Entries : In the condition entry, the values are inputted in the upper
right
i ht portion
ti off the
th decision
d i i t bl In
table. I the
th condition
diti entries
t i partt off the
th table,
t bl there
th
are multiple rows and columns which are known as Rule.
• Action Entries : In the action entry, every entry has some associated action or
set of actions in the lower right portion of the decision table and these values are
called outputs.
St 3
Step 3: S
Select
l t ttestt paths
th tto cover th
those requirements
i t
White Box
Testing
• So PathCoverage is 4.
Dr. B. B. Patel (Associate Professor), S P University ( - [email protected] ) 58
Path Coverage
Advantages of Path Coverage Testing :
• Path Testing helps reducing redundant tests
• Focus on p
program
g logic
g
• Test cases will execute every statement in a program at least once