Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I assume that negative testing is an approach to design the test cases and so is equivalence partitioning. But I am not sure if NT is a part of ET.

An example:
A field can accept a numeric value from the range 0-10.

So I have three partitions: to 0, from 0-10 and more than 10. Another invalid partitions would represent letters which is also negative testing, isn't it?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I would not classify equivalence partitioning as a negative test. Equivalence partitioning is about reducing the cost of testing, while achieving the same coverage. In your example above, equivalence partitioning allows you to test just 1 number in the 0-10 range, and use that test to stand for the whole range. Exhaustive testing, you would test the full range (11 tests), verses a single sample (1 test). It's more about being more efficient.

Boundary testing could be considered negative testing. In your example, testing behavior at -1, 0, 10, 11 is an example of boundary testing. Also, other input types (floating point, characters, etc.) are considered negative tests.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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