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
How should your staff be managed? How about your overtime?
What is deferred status in defect life cycle?
Write the 10 high test cases for making video call/face time?? Write the test cases for credit card accessing the money transfer?? Write the test cases for file transfer from one user to other from Google Drive/drop box?
How to overcome pesticide paradox?
write a testing stratgy \ approach for a product that you are use every day (e.g gmail, out look etc)
hello there, can anyone tell me what type of question does lg soft company ask in written test especially for a quant part? Thanku
when do you escalte issue to your manager?
what is the impact analysis?
What are the qualities needed by a software tester?
what is the common in all s.o.p (standaed operating procedure)?
Please let me know how to test labels in web application manually and how the testcases would be. Please provide me a sample testcase
How quickly we need to fix the bug? Or how soon the bug should get fixed?
Does an increase in testing always improve the project?
What is bottom-up approach?
9.Data – driver automation typically includes?