Negative Test Cases

Some testers separate their test cases into distinct groups: positive test cases (tests of the functionality as specified by requirements), negative test cases (deliberately entering bad data or using other techniques to try to break the functionality), security test cases, etc. In general, I’ve usually found it more useful to create test cases based on requirements that include both positive and negative tests, as well as security or other tests as appropriate. But what works best really depends on your project and your style.

Last month, Steve Miller published a good, concise list of the top 10 negative test cases in his monthly newsletter. It’s a nice reminder of things to look for when creating test cases or even doing exploratory testing and coming up with exploratory test charters. For instance, I always remember to touch on number 2, required data entry, but I usually forget number 1, embedded single quotes. I need to post this list in my cube, I guess. 😉

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: