Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

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.

2093


what is conditional testing? explain and examples

1646


what are all the possible Test Cases for VoIP based applications

1816


How do you scope,organise and execute a test project.

2206


What is the difference between system testing and integration testing?

1234


Write UI Test case, Integration Test case, Functional Test case & Performance Test case for the File Menu for MS-Word?

2734


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

1992


what is configuration management tool - send to thanu_santo@rediffmail.com. what is testing senarios

2416


How to write testcases for unread/read mails for gamil inbox? and what are the types of testing you do on them?

4618


Inwhat basis the time is allocated for testing the application?

1930


what will be verification and validation test cases for yahoo login page (only functional test cases)? Please explain in details.

14794


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.

4497


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

2369


Could some one tell me test cases for multi line text boxes like Notes field?

2238


Can you explain boundary value analysis?

1190