Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 4

GENERATING TEST INPUTS

We will understand how we can select input values


of the program for the specific path to be executed
of the program of the program of the program of
the program.
Switch (n) {
case n:
echo “Hi Class”;
Break;

default:
echo “Wrong input”;
}
INPUT VECTORS

a set of inputs provided to a system in order to test that system.

Input vectors can be referred to as test vectors, there are a


methodology of software testing and software verification and
validation

FORMS OF INPUT VECTORS

1. INPUT ARGUMENTS 4. CONTENT OF REGISTERS

2. GLOBAL VARIABLES & CONSTANTS 5. NETWORK CONNECTIONS


3. FILES 6. TIMERS
PREDICATE
This is a function of set of parameters that
returns a Boolean

Boolean checkTemp (int $temp){


return $temp > 25;
}
//true if temp is above 25 or false if temp less 25
PATH PREDICATE
A set of predicates associated with a path

Line 1: x>0
Line 2: x+y >= 90
Line 3: w

You might also like