Positive test cases and negative test cases

a Learner picture a Learner · Oct 14, 2013 · Viewed 52.8k times · Source

what are positive test cases and negative test cases?

Upon googling about it i have found answers that are very confusing. Can anyone explain with example?

Answer

Scott Helme picture Scott Helme · Oct 14, 2013

A positive test case tests that a system does what it is supposed to. Example: will allow you to login when valid credentials are supplied.

A negative test case tests that a system does not do things it shouldn't. Example: should not allow you to login when invalid credentials are supplied.