What Are Post Condition And Pre-condition ?
Post-Condition:- This is a group of declarations or a declaration defining the result of an activity if true, when the performance has accomplished own job or task. The Post Condition declaration demonstrates what will be the true when activity completed its task.
OR
In other word we can say, post condition means surrounding and state situations, and that must have accomplished after the performance of a test or test approach.
Pre-Condition:- This is a group of declarations or a declaration that abstract a situation that should be true when an activity is called. The precondition declaration demonstrates what must be true ahead the function is called.
OR
In other word we can say, precondition means surrounding and state situations that must have accomplished ahead the element or system can be implemented with a specific test or test approach.
Example:- To distinguish the square root of any number, precondition for that, the number should be more than zero. The post condition for that, the value of square root should be demonstrate on the console.
0 Comment(s)