• Software Testing Dictionary
  • Home

Pre-Condition


Advertisements

What is Pre-Condition?

Pre-condition is a statement or set of statements that outline a condition that should be true when an action is called. The precondition statement indicates what must be true before the function is called.

Example:

To identify the square root of a number, the precondition is that the number should be greater than zero. Upon executing the pre condition, the square root of the number is displayed on the console.

Advertisements