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 to test an application if it was already developed and it is in the state of changing the functionality according to the customer requirement How to start testing in this situation. I got an application to test.It is a desktop application.It is still developing and started 8 months back.how can i start to test this application? Is it the right way to test it in "Random testing"? or writing the testcases from page one and executing them.i have an another responsibility that is I have to automate that application. can anyone tell me what is the process to test this application.
what is conditional testing? explain and examples
what are all the possible Test Cases for VoIP based applications
How do you scope,organise and execute a test project.
What is the difference between system testing and integration testing?
Write UI Test case, Integration Test case, Functional Test case & Performance Test case for the File Menu for MS-Word?
what is the technical challange you faced in your module.please ans me the question i just want example can me any example please very important
what is configuration management tool - send to thanu_santo@rediffmail.com. what is testing senarios
How to write testcases for unread/read mails for gamil inbox? and what are the types of testing you do on them?
Inwhat basis the time is allocated for testing the application?
what will be verification and validation test cases for yahoo login page (only functional test cases)? Please explain in details.
What r the domain for pharma, interview if they ask about phrma application, what need to tell, is there anybody have screens or any information please tell me and if have URL let me know please.
what technical problem u face in your module please tell what is it mean its any bug or anything else i want ans give any example which ever modul u r working for u can give me any example
Could some one tell me test cases for multi line text boxes like Notes field?
Can you explain boundary value analysis?