I dont know but I was somewhat dissatisfied with above answers. So here are my views upon this topic:
- Positive testing is the testing for something that should happen, does happen.
- Negative testing is the testing for something that should not happen, does not happen.
Lets have a scenario where we have two requirements:
Requirements:
- A text box to enter some characters.
- A button to submit entered text to the server.
- A message to be displayed when number of characters is less than 5. "Less than 5 characters".
- A message to be displayed when server accepts text submitted. "Text accepted".
Now, a positive scenario would be:
- Enter "abcdef" in the text box.
- Click on submit button.
- "Text Accepted" must be displayed.
On the other hand, a negative scenario would be:
- Enter "abcd" in the text box.
- Click on submit button.
- "Text Accepted" must not be displayed.