Background:
Manual testing originally relied on the habit of testing only those scenarios that met the requirements and expected behavior of the system (so-called "positive scenarios"). Over time, it became clear that software often fails under unexpected or erroneous conditions that were not anticipated.
Problem:
Only positive scenarios do not guarantee the stability and reliability of the application. If negative scenarios (for example, incorrect input, invalid actions) are not tested, serious defects that may arise with real users can be overlooked.
Solution:
Conduct both types of testing:
Key features:
Can negative testing be neglected if the product passes a complete set of positive scenarios?
No. Errors occurring in negative scenarios often have a critical impact on the safety and reliability of the product.
Must negative tests necessarily lead to program errors?
No, a well-implemented program should correctly handle erroneous data in negative scenarios, not "crash" and not produce incorrect results.
Is it equally important to write positive and negative tests for all parts of the system?
No, sometimes for non-critical or established parts of systems, the volume of negative scenarios can be reduced, but for vulnerable and critical areas, it is a necessity.
In the company testing the registration form on the website, only correct values were checked (valid email, passwords, etc.), ignoring erroneous options.
Pros:
Cons:
The tester added tests for entering invalid emails, passwords that were too short and too long, and special characters in all fields.
Pros:
Cons: