In computer science and engineering, a test vector is a set of inputs provided to a system in order to test that system. In software development, test vectors are a methodology of software testing and software verification and validation.
In computer science and engineering, a system acts as a computable function. An example of a specific function could be
y=f(x)
y
x
y=f(x1,x2,...)
Y=C(X)
Y
C
X
For example, consider a login page with two input fields: a username field and a password field. In that case, the login system can be described as:
y=L(u,p)
with
y\in\{true,false\}
u,p\in\{String\}
true
false
Making things more generic, we can suggest that the function
L
Y=L(X)
with
X=[x1,x2]=[u,p] ; Y=[y1]
In this case,
X
Y
In order to test the login page, it is necessary to pass some sample input vectors
\{X1,X2,X3,...\}
Xi