What is meant by preconditions and postconditions in a Test
Case? Can anyone give an example?
Answers were Sorted based on User's Feedback
Answer / vinu
Precondition is nothing but the settings/conditions
required to execute the test case.
Ex:Precondition for pen is as follows
1.Pen should have sufficient ink
Steps:
1.Write on white paper using same pen
Expected out put:
1.All the letters should be properly visible
Note:Precondition is different from expected output
I can tell post condition is nothing but the expected out
put.
| Is This Answer Correct ? | 72 Yes | 9 No |
Answer / s saritha
We will take an eg. of Login Page
Precondition (prerequsite) : S/w should be install on
system,login page should be available on desktop
postcondition : login successful.
| Is This Answer Correct ? | 61 Yes | 8 No |
Answer / madan
u r totally wrong Nag...Please verify ur answer!!
| Is This Answer Correct ? | 17 Yes | 7 No |
Answer / 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 |
Answer / chahal
Precondion is pre setting that tester needs to run that
test case for example a registered user needs to activate
by administrator (from back end) before he/she use his/her
account. so when tester will write test cases for login
then he/she will mention it in pre condition "User has
activated by administrator". one thing more Pre-condition
is always written with prefect tense
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / ganesh ram j
Iḿ making it simple, preconditions is the state or
environment that should be active to execute the test
scenario for example take a login screen - here
preconditions is Launch the app, after splash screen, wait
till login screen loads. So from here actual test scenario
begins.
Post conditions is nothing but expected result after test
scenario executed end result.
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / rohit
Pre-Condition the term iteself indicates the Pre existign
set of the condition that should be satisfied to perform a
particular task.
You can write the testcase saying the what is the step that
needs to be performed before executing the testcase.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / harini
Can anybody give an example to justift the above answer?
| Is This Answer Correct ? | 12 Yes | 11 No |
Pre-condition whatever there is inside or outside of the
system, that will affect how the system will handle the
test. The current state of the system and/or environment
before you run the test case.
Post-condition – anything you expect to happen as a result
of running the test case.
Changes in the state of the system and/or environment as a
result of running the test case.
| Is This Answer Correct ? | 2 Yes | 1 No |
hi iam geetha, i know what are all points will come in the test plan, but i want the sample test plan
How do u prepare test environment for ur application?
SAY I HAVE A GMAIL PAGE OPENED IN IE 8 NOW WHAT WOULD BE YOUR COMPATABILITY TEST CASES FOR THAT>?
can u write negative test cases on google search form?
can any body tell me vat is the status of the bug when it is going for retesting and where we write the bugs in case of retesting
Which test cases are first written white boxes or black box?
what are all the possible Test Cases for VoIP based applications
Hi Please tell me about ERP for hr module what all function u found in hr model .
1.How can you Pick Integration Test Cases? 2.When will you start Regression Testing? 3.What is the difference between QA & QC? 4.When Will you Exit In Testing? 5.Test Deliverable's 6.What is the difference between windows based appln and web based appln? 7.What are the types of regression testing?
Please explain software release process in detail.
Tell me the situation where sanity test cases should pass and smoke test cases fail...?
I know the set of test cases is the TEST SUIT. I have a doubt that practically which test cases are under test suit. Suppose I m creating test cases for User. User - Create, Edit, Delete, Refresh etc. User window have fields - First Name, Last Name, Address, Phone, User Code, User Id, Password and Role. So Create User - [All Positive+ All Negative] Test cases has single TEST SUIT id? Please guide me properly.