What is Negative Testing

https://www.youtube.com/watch?v=9isF5oZP_hA

From the software testers point of view it is very important to verify that the software performs its basic functions as per the requirements, but it is equally important to verify that the software is able to gracefully handle any abnormal situations or invalid data input which helps to determine stability of the software. Negative Testing is performed to find the situation where there is possibility of software to crash. Last thing you want to see is software crashing at end user hand. so Negative testing plays an important role in testing software.  It is a negative approach, where testers try to design test cases to find the negative aspects of the application and validating against invalid input.

Example:

Phone number: User can enter alpha numeric characters in phone number field. so system should display error message like " Phone number should be numeric"

Another example can be :

Age: User can enter negative numbers or alphanumeric characters so system should show error message "Age should be greater than 0 or Age should be numeric: depending on specifications.

Zip Code is another example. Zip Code is different in different countries. You have to consider which country your software will be used. USA has number format zip codes, Countries like UK, Canada had alphanumeric characters in zip code.

Negative testing, is also referred to as error path testing or failure testing. The application or software’s functional reliability can be measured only with effectively designed negative scenarios. Negative testing not only aims to bring out any potential flaws that could cause serious impact on the working of the software, but can be helpful in determining the conditions under which the application can crash.

Typical Negative Testing Scenarios

  • Populating required fields: Skip the Required Data Entry and try to proceed

  • Allowed number of characters: Enter more number of characters than allowed

  • Allowed data bounds and limits: Enter large values to test the size of the fields

  • Reasonable data: Verify Data validity and format Ex Date

Comments

Popular posts from this blog

What is unit testing

Regression Testing