Negative Testing

This Article is on Negative Testing, I volition assay to explicate hither all nearly Negative Testing amongst approximately practical examples as well as sample examine cases.Negative testing agency testing the application for those status for which application non meant to be. Like if at that topographic point is a hollo text plain as well as that text plain should solely bring the grapheme equally per the requirement as well as thence negative testing for this requirement would last entering the digit, exceptional symbols etc.detail negative examine cases are given downwards the article.

We receive got set out of testing types similar functional testing, integration testing, smoke & sanity as well as many more, piece writing the examine cases for mentioned testing type nosotros involve to take in both positive equally good equally negative aspect of the testing for Application.

So what is the principal deviation betwixt the positive as well as negative testing? The answer of this is positive testing agency testing the application for positive flow, expected flow, lets bring the to a higher house mentioned requirement if the requirement is that the hollo text plain solely bring the char as well as thence positive testing would last entering solely grapheme as well as the negative testing for the same requirement would last entering digit , exceptional symbol, proceed it blank etc. I promise y'all got the deviation betwixt both the testing if non past times looking below mentioned illustration y'all volition larn improve idea..

If nosotros perform solely positive testing as well as application may constitute working equally expected as well as thence nonetheless why produce nosotros involve to perform negative testing? Many of y'all powerfulness receive got this question. Consider a scenario where nosotros launched our application inwards the market. And a novel user visited our site as well as laid out registering inwards our application as well as at that topographic point is a mobile set out plain which is designed to bring solely 10 digit but user does non know this thence he may locomote inwards set out similar +91-9185205xxx this ,so he may larn next shown error.this mistake page came because user entered + as well as - which is non allowed equally it is symbols non digits. To brand certain that our application is capable to grip unexpected information as well as unaccepted steps properly nosotros involve to perform negative testing, moreover this next mistake page exposes many details which may last useful for hacker to hack the site.

Negative testing too helpful to forestall such a hack endeavor on the application.

Error on Negative testing

Let bring approximately practical examples later looking below given illustration y'all all volition last able to write the negative examine cases.

Example 1: Mobile Number Field. 

Negative testing on mobile set out field

Requirements :
  • Mobile Number filed should solely bring 10 digits.
  • Mobile Number plain is mandatory.
Positive as well as Negative examine cases would last equally shown follow.

Positive Test Cases :
  • Check the response of the organisation when user enters 10 digits.

Negative Test Cases :
  • Check the response when nosotros locomote inwards ix digits.
  • Check the response when nosotros locomote inwards eleven digits.
  • Check the response when nosotros locomote inwards grapheme inwards it.
  • Check the response when nosotros locomote inwards exceptional symbol.
  • Check the response when nosotros proceed mobile set out plain empty as well as click on salve button.
  • Check the response when nosotros locomote inwards 10 zeros.

These form of Negative Test Cases y'all tin write. Requirements plays an of import role to write positive equally good equally negative examine cases. So assay to sympathise requirement inwards depth first.

Example 2 : Email Id field.

Negative testing on electronic mail field

Requirements :
  • Email id plain should last mandatory.
  • Email id plain should bring valid format (e.g. xxx@domain.com).
  • Email id plain should bring electronic mail id amongst sub-domain (xxx@subdomain.domain.com).
  • Email id plain should allow electronic mail id amongst point as well as , dash(e.g xxx_xxx@Domain.com).
  • Email id amongst char as well as digit should last allowed.
  • Email id amongst whatever extension should last allowed.(e.g xxx@domain.extension) Etc.
Positive Test Cases :
  • Check the response when nosotros enters “xxx@domain.com”.
  • Check the response when nosotros enters “xxx.xxx@domain.com”
  • Check the response when nosotros enters “xxx@subdomain.domain.com”
  • Check the response when nosotros enters “xxx@domain.org”
  • Check the response when nosotros enters “xxx@domain.co.in”
  • Check the response when nosotros enters “xxx@domain.party”
  • Check the response when nosotros enters “xxx@domain.science”
  • Check the response when nosotros enters “xxx@domain.party”
  • Check the response when nosotros enters “xxx-vvv@domain.com”
  • Check the response when nosotros enters “123456789@domain.com”
You tin write many to a greater extent than examine cases.

Negative Test Cases :
  • Check the response when nosotros enters “.xxx@domain.com”.
  • Check the response when nosotros enters “xxx@4444.55555”. 
  • Check the response when nosotros enters “xxx@domain…com”.
  • Check the response when nosotros enters “xx@#$$%%^^:”{}/?><x@domain.com”.
  • Check the response when nosotros enters “xxx@--domain.com”.
  • Check the response when nosotros enters “..xxx@domain.com”.
  • Check the response when nosotros enters “うえ@domain.com”.
  • Check the response when nosotros enters “@domain.com”.
  • Check the response when nosotros enters “xxx@domain”
  • Check the response when nosotros enters “ddd@xxx@domain”
There form of negative examine cases y'all tin write To evaluate electronic mail address field.

More interesting articles here :Generation Enggelmundus Internet Marketing Tool here :Zeageat IM http://www.software-testing-tutorials-automation.com/
Post a Comment (0)
Previous Post Next Post