What is meant by preconditions and postconditions in a Test
Case? Can anyone give an example?
Answer Posted / pratik
a postcondition is a condition or predicate that must always
be true just after the execution of some section of code or
after an operation in a formal specification. Postconditions
are sometimes tested using assertions within the code
itself. Often, postconditions are simply included in the
documentation of the affected section of code.
For example: The result of a factorial is always an integer
and greater than or equal to 1. So a program that calculates
the factorial of an input number would have postconditions
that the result after the calculation be an integer and that
it be greater than or equal to 1.
| Is This Answer Correct ? | 12 Yes | 3 No |
Post New Answer View All Answers
Artifacts in design phase of SDLC ?
In what situation would you want to parameterize a text verification check?
Can you explain process areas in cmmi?
how to create automation frame work ?
If there is non reproducible bug which developer is not ready to agree, how you will convince him.
What is sanity?
Explain the sub-genres of performance testing?
What different types of manual testing are there?
Write a Test scenario for Outlook Search functionality.
Hi Friends, I have completed 3 rounds of an Interview with HR discussion also and got Offer letter from Cognizant, but after in 30 min they send one more email like Offer is on Hold, and its not valid... Could you please guide me any one , Can i expect Offer again from Cognizant or Can i drop the hopes ?.
What is the term ‘quality’ mean when testing?
What is junit & api?
On what basis you are fixing up the time for project completion?
What are the main key components in web applications?
HI can i know who is taking real time testing classes in banglore? i am preparing to put 3+year experience in testing if possible anybody give suggestions for preparing 3+exp