4

Is it fine not have any post-condition in a test case? For example, there is an employee information system or module and an employee can login into the system and views his/her profile and logs out. If I write a test case for it, I can't think of any post-condition possible in this test case. Can I write it without post-condition?

2
  • Your example has a clear post-condition. The user must be logged out after the run, which means any stated that you've set while he was logged in must be undone, such as authentication cookies for example. I can't think by heart now of a test-worthy case which doesn't have a post condition. Give us more examples of what you mean, so we can argument and make it clearer for you. – Machado Dec 20 '16 at 12:24
  • You are right, actually, I was not much clear about test cases and its details, but now it's clear. – learner Jan 3 '17 at 11:42
4

Successful logout, for one.

No user data left on the screen (or other, like history).

Ready to login again.

(I assume you are already testing the user got the right info.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.