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
What is the test harness?
how to test a web application manually?can u explain indetail?
Hello again!! wanted to ask you HOW EXACTLY create stubs and driver in integration testing? 2.whats the difference between integration testing and system integration testing? Thanks!!
Hi , Please send me the interview questions which were asked in manual testing mainly the test cases asked to write in interview.
can anyone help me regarding testing patterns?
Which are the different tests for apparel testing?
Pls u can u r mail id to my personal mail id also if they dont want to give u r mail id n comman place
Can you explain the various elements of function points ftr, ilf, eif, ei, eo, eq, and gsc?
Should testing be done only after the build and execution phases are complete?
How do u prepare test environment for ur application?
Hi Friends, This is Chennamsubbaraidu.i Have 2+ Years Realtime Exp in Manual Testing.Am Looking to Shift From My Present Company.Please if u Have Any Openings in Your Company's, Please Let Me Know.Any Location Prefer.Thanks.
How would you test a service oriented architecture (soa) web application?
How is ‘build’ different from ‘release’?
*) Internal review defect gets detected… 1) During peer review. 2) By the own stuff member onsite/offshore. 3) During Informal review process. 4) None of these 5) All of these
Can you explain the elementary process?