Professional Documents
Culture Documents
DAY 04
What you will learn Today
2
SQA
Table of Content
►Introduction To Dynamic Test Techniques
Introduction
3
Test Design Technique - DYNAMIC
Informal
Inspection
Reviews
Technical
Walkthroughs
Coed Metric
Static
Control Flow
Static Analysis
Data Flow
Statement
Branch/Decision
Structured Based
Condition
Error Guessing
Based
Exploratory
Experienced
BVA
ECP
Dynamic
Test Design Techniques
State Transition
Use Case
4
Specification Based
Decision Table
SQA
Experienced Based
Techniques
5
SQA
Experienced Based
►In experience-based techniques, people’s knowledge, skills and background
are of prime importance.
Introduction
►This may be the only type of technique used for low-risk systems, but this
approach may be particularly useful under extreme time pressure – in fact this
is one of the factors leading to exploratory testing.
6
When to Use?
Experienced Based
7
Experienced Based Types
Experience Based
8
Error Guessing
Experienced Based
►These lists can be built based on the tester’s own experience or that of
other people experience.
EXAMPLES:
Divide by ZERO
Null inputs
Negative Numbers
Check fields on Maximum limits
Check by inserting special characters
9
Exploratory Testing
Experienced Based
11
White Box Types
White Box Testing
12
White Box Types
White Box Testing
(P=52, Q=01)
Branch Coverage 02 (P=01, Q=01)
13
White Box Testing - Activity
White Box Techniques
int Test_Function()
{
int i = 0;
static int x, int y, int z;
if(x > z)
{
i = x + z;
}
else
{
if (x > 200)
{
i = x - z;
}
else
{
i = z;
}
}
return i;
} 15
SQA
16
Black Box Types
Black Box Testing
Boundary State
Equivalence Decision Use Case
Value Transition
Partitioning Tables Testing
Analysis Testing
17
Type of Need: Progr
ammers can
Black Box Techniques
Black Box
or mistake ar m a k e s er r o r s
Technique ounds the bo
when using undaries;
= , <, >, >= ,
the number o
f times a loop
<= or
should be
r un.
All
BVA
Applies in
range of
Test numbers,
li c e n s e a pplication
dates, & driving ld be
Levels time. Example: Athat age of applicant shouense.
having a ca
se
l to 1 8 fo r driving lic
n or equa 18 for a
greater tha s te a d o f > =
e v e lo pe r u sing >18 in
(d
condition).
o s t li k ely errors
m
Extension
e a b o v e e xample, the ie s : ages equal
In th n d a r
of EP
u ld b e a ro und the bou
wo
9.
to 17, 18, 1
18
How to Perform Boundary Value
Analysis (BVA)
Black Box Technoqies
Age:
17 18 35 36
19
SQA
Now Concentrate on the Valid Partition, which ranges from 18-35 Age:
If 1 decimal allowed
20
Problem: One of the fields on a form contains a text box that accepts numeric values in the range of 18
to 30. What are boundary values and Equivalence class partitions?
Three Classes
• 1 Valid Class
• 2 Invalid Classes Range: 18 - 30
Invalid Valid Invalid
< 18 18 - 30 > 30
Invalid Valid Invalid
21
Exercise 1
Order numbers on a stock control system can range between 10000 and
99999 inclusive. Which of the following inputs might be a result of
designing tests for only valid equivalence classes and valid boundaries:
22
Exercise 2
In a system designed to work out the tax to be paid:
An employee has £4000 of salary tax free.
The next £1500 is taxed at 10%
The next £28000 is taxed at 22%
Any further amount is taxed at 40%
To the nearest whole pound, which of these is a valid Boundary Value Analysis test
case?
0000 – 4000 0%
a) £1500
b) £32001 4001 – 5500 10%
c) £33501
d) £28000
5501 – 33500 22%
33501 – infi 40 %
23
Exercise 3
A thermometer measures temperature in whole degrees only. If the temperature falls
below 18 degrees, the heating is switched off. It is switched on again when the
temperature reaches 21 degrees. What are the best values in degrees to cover all
equivalence partitions?
24
Exercise 4
In a system designed to work out the tax to be paid:
An employee has £4000 of salary tax free.
The next £1500 is taxed at 10%
The next £28000 is taxed at 22%
Any further amount is taxed at 40%
Which of these groups of numbers would fall into the same equivalence class?
A bank account process a loan to a person if he/she is more than 18 years old. Loan processing
policy also include a condition, candidate must be a job holder. But if, a job holder candidate is
less than or equal to 18 years old, in specific case, he/she is eligible for a loan application. Loan
approval or rejection will depend on bank decision
26
Use Case Testing
Black Box Testing
27
Use Case Testing
Steps Description
Black Box Testing
1 A: Inserts card
28
State Transition
Black Box Testing
29
State Transition
Given the following state transition diagram Which of the following series of state transitions contains an
INVALID transition which may indicate a fault in the system design?
A B D F G
C E
A. Login Browse Basket Checkout Basket Checkout Pay Logout.
B. Login Browse Basket Checkout Pay Logout.
C. Login Browse Basket Checkout Basket Logout.
D. Login Browse Basket Browse Basket Checkout Pay Logout.
30
SQA
End of Day 04
Reading Exercises
Exercises of Dynamic Testing
Test Case Writing using Test Design Techniques
31
SQA
Lab Exercise
32
SQA
Q&A
Instructor Notes
33