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
1.what promted you to become involved in QA/Testing?
What are the main key components in web applications and client and server applications?
Can you explain process areas in cmmi?
Can anybody give me some tips on how to face telephonic interview and Write some expected telephonic questions as a 2+yr exp. in testing. Try to give Ques. that u already hv faced in telephone. Plz Help me out friends.
IF ASCII_CODE_OF_ENTERED_CHAR is less than 44 THEN reject it ELSE IF ASCII_CODE_OF_ENTERED_CHAR is greater than 56 THEN reject it ELSE it's a digit, so accept it Which one of the following sets of ASCII codes do you use to test the sample code above WITHOUT redundant coverage?
What is big bang approach?
What is meant by Boundary value analisis and Equalence partitioning? Can give derive this using these methods? In a system designed to work out the tax to be paid: An employee has £4000 of salary tax free. The next £1500 is taxed at 10% The next £28000 is taxed at 22% Any further amount is taxed at 40% Which of these groups of numbers would fall into the same equivalence class? a) £4800; £14000; £28000 b) £5200; £5500; £28000 c) £28001; £32000; £35000 d) £5800; £28000; £32000
What types of software testing are available?
Define what is a critical bug.
can anybody tell me what is release process of company? release note?
What exactly you do as a Configuration controller?
what is the common in all s.o.p (standaed operating procedure)?
Explain Operational Acceptance Testing with example ?
When have you had to focus on data integrity?
What processes/methodologies are you familiar with?