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.
Contents
Rationale
In computer science and engineering, a system acts as a computable function. An example of a specific function could be
Example
For an 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:
with
Making things more generic, we can suggest that the function
with
In this case,
In order to test the login page, it is necessary to pass some sample input vectors