Negative Testing in Software Engineering
Every software development process follows Software Development Life Cycle(SDLC) finally to develop a quality software product. In which Software testing is one of the important phase as it only ensures the quality of the product. So, for that different types of software testing are performed to check different parameters or test cases.
In this article we will discuss about Negative testing and will know about it like what is this testing actually, how it is performed , why it is performed and finally advantages and disadvantages of performing this testing. So, let’s start exploring the topic.
Negative Testing :
Negative Testing is performed to ensure that the software application or the product does not fail or behave abnormally whenever a user gives any unintentional or unexpected input to the software application. Means the main motto of doing negative testing is to check how the software behaves when some unexpected input is given to the software. When this testing is performed to break the system and verify the response of application during unwanted inputs.
Negative Test Cases :
Some components of Negative testing are called Negative test cases. The team creates it to test the application. The team uses following testing efforts:
- Data Bound Test –
Here the team tests all the upper and lower bounds of data fields. - Field Size Test –
It prevents users from facing more characters before getting error message that they have crossed the limit. - Necessary Data Test –
The test ensures that it every data on screen is verified before critical data is entered. - Numeric Bound Test –
This test ensures that test cases of negative test are accurate where the team analyzes both lower and upper bounds. - Implanted Quote –
Software systems face some issues when end-users store information with single quote. So for all the screens, the team should provide more than one single quotes. - Modification in Performance –
This test contains test cases which compares previous and current release performance statistics which can help to identify potential performance problems. - Web Session Testing –
Here the testing builds test cases to release web pages within the application only which doesn’t involve user log in.
How to perform Negative Testing ?
- Initially it is important to think about the possible scenarios that could affect your application negatively.
- While exploring scenarios we need to prioritize some testing parameters where it is ensured there is no wastage of time or money.
- Now we build a test case which includes testing of data input where the application may be crashed. That is exactly what we don’t want to happen when a client uses the product.
- The security pitfalls should be eradicated while forming priorities of test case.
- It is very helpful to think about the unwanted and unexpected data that could enter our program which includes simple mistakes which gives frustration to users.
Benefits of Negative Testing :
Some of the significant benefits in Negative testing are:
- It gives more benefit to client before going live.
- It covers all bases and enhances the possibility by covering each type of error.
- Implementation of negative testing ensures a product to be of good quality with zero or negligible vulnerabilities.
- To ensure all test cases are covered, one round of negative test is performed before positive testing.
Real-world example of Negative Testing :
Let’s assume that there are two boxes in login screen of an application one is “username” and other is “password” which has following requirements to be valid:
- Username can’t be blank, will have characters only.
- Username can contain maximum 10 characters.
- Password can contain only combination of alpha-numeric values and further no other type of character is allowed.
- Password must contain maximum 10 characters.
- Some of the positive test scenarios can include:
- Username: Satyabrata Password: qwerty123
- Verify if user login with valid credentials
- Some of the negative test scenarios can include:
- Username: 9876=) Password: /*-+
- Then verify username and password. The purpose to enter such content is to check how the application responds to unexpected input and hence ensures quality assurance.
Disadvantages of Negative Testing :
For enhancement of application Negative testing is helpful but has certain drawbacks:
- The execution of it requires investment of time, money and effort.
- Customers have to extreme delays as they have to wait till the product released.
- In some cases there is no need to execute excessive negative testing.
- There has to be a trained and professional engineer in order to implement Negative testing.
Finally, Negative testing ensures that the product or application delivered to customer has no bugs. To build effective negative testing scenario we require creative and intelligent test engineers. Each software company aims to be capable to undertake negative testing. So by implementing Negative testing we can improve the quality of software.


Please Login to comment...