Tuesday, February 23, 2016

Negative Testing

| Tuesday, February 23, 2016
This Article is on Negative Testing, I volition attempt to explicate hither all near Negative Testing amongst about practical examples as well as sample attempt out cases.Negative testing agency testing the application for those status for which application non meant to be. Like if in that place is a scream text plain as well as that text plain should exclusively bring the graphic symbol every bit per the requirement as well as therefore negative testing for this requirement would survive entering the digit, especial symbols etc.detail negative attempt out cases are given downwards the article.

We receive got give away of testing types similar functional testing, integration testing, smoke & sanity as well as many more, spell writing the attempt out cases for mentioned testing type nosotros involve to reckon both positive every bit good every bit negative aspect of the testing for Application.

So what is the primary divergence 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 scream text plain exclusively bring the char as well as therefore positive testing would survive entering exclusively graphic symbol as well as the negative testing for the same requirement would survive entering digit , especial symbol, popular off on it blank etc. I promise yous got the divergence betwixt both the testing if non past times looking below mentioned instance yous volition instruct ameliorate idea..

If nosotros perform exclusively positive testing as well as application may flora working every bit expected as well as therefore withal why produce nosotros involve to perform negative testing? Many of yous mightiness 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 get registering inwards our application as well as in that place is a mobile give away plain which is designed to bring exclusively 10 digit but user does non know this therefore he may travel into give away similar +91-9185205xxx this ,so he may instruct next shown error.this mistake page came because user entered + as well as - which is non allowed every bit it is symbols non digits. To brand certain that our application is capable to lead maintain unexpected information as well as unaccepted steps properly nosotros involve to perform negative testing, moreover this next mistake page exposes many details which may survive useful for hacker to hack the site.

Negative testing likewise helpful to foreclose such a hack endeavour on the application.

 I volition attempt to explicate hither all near Negative Testing amongst about practical examples as well as sa Negative Testing

Let bring about practical examples later looking below given instance yous all volition survive able to write the negative attempt out cases.

Example 1: Mobile Number Field. 

 I volition attempt to explicate hither all near Negative Testing amongst about practical examples as well as sa Negative Testing

Requirements :
  • Mobile Number filed should exclusively bring 10 digits.
  • Mobile Number plain is mandatory.
Positive as well as Negative attempt out cases would survive every bit shown follow.

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

Negative Test Cases :
  • Check the response when nosotros travel into ix digits.
  • Check the response when nosotros travel into xi digits.
  • Check the response when nosotros travel into graphic symbol inwards it.
  • Check the response when nosotros travel into especial symbol.
  • Check the response when nosotros popular off on mobile give away plain empty as well as click on salvage button.
  • Check the response when nosotros travel into 10 zeros.

These sort of Negative Test Cases yous tin write. Requirements plays an of import role to write positive every bit good every bit negative attempt out cases. So attempt to empathize requirement inwards depth first.

Example 2 : Email Id field.

 I volition attempt to explicate hither all near Negative Testing amongst about practical examples as well as sa Negative Testing

Requirements :
  • Email id plain should survive mandatory.
  • Email id plain should bring valid format (e.g. xxx@domain.com).
  • Email id plain should bring e-mail id amongst sub-domain (xxx@subdomain.domain.com).
  • Email id plain should allow e-mail id amongst point as well as , dash(e.g xxx_xxx@Domain.com).
  • Email id amongst char as well as digit should survive allowed.
  • Email id amongst whatever extension should survive 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 attempt out 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 sort of negative attempt out cases yous tin write To evaluate e-mail address field.

Related Posts