{"id":1570,"date":"2018-10-31T14:19:17","date_gmt":"2018-10-31T14:19:17","guid":{"rendered":"https:\/\/www.h2kinfosys.com\/blog\/?p=1570"},"modified":"2024-11-16T19:02:42","modified_gmt":"2024-11-16T13:32:42","slug":"positive-and-negative-testing","status":"publish","type":"post","link":"https:\/\/www.h2kinfosys.com\/blog\/positive-and-negative-testing\/","title":{"rendered":"Positive and Negative Testing in Software Testing"},"content":{"rendered":"<p>The software testing can also be classified as two types of testing one is positive testing and <a href=\"https:\/\/www.h2kinfosys.com\/blog\/negative-testing\/\">negative testing<\/a>. Positive testing is the application functions as expected valid data sets. If\u00a0 an error occurs during positive testing the test fails. In the <a href=\"https:\/\/www.h2kinfosys.com\/blog\/negative-testing\/\">Negative Testing<\/a>, the application handles the unexpected\u00a0 behaviour or invalid input. For example if a user tries to type a wrong data in the field it would display a correct message for incorrect data. The quality of the application improves due to the <a href=\"https:\/\/www.h2kinfosys.com\/blog\/negative-testing-2\/\">negative testing<\/a>.<\/p>\n<p><a href=\"https:\/\/www.h2kinfosys.com\/blog\/negative-testing-2\/\">Negative testing<\/a> is detecting the possible software crashes in different situations,\u00a0 such as<\/p>\n<ol>\n<li>Populating required fields<\/li>\n<li>Correspondence between data and field types<\/li>\n<li>Allowed number of characters<\/li>\n<li>Allowed data bounds and limits<\/li>\n<li>Reasonable data<\/li>\n<\/ol>\n<p>For example\u00a0 the functioning of a lift in real life. When the people enter and press the floor button automatically the lift is made to move to the required floor. If the number of people exceed in the lift, if a power failure happens during the lift functions &#8211; all these cases are included in negative testing. Negative testing is important in the organisation\u2019s perspective because it is the responsibility of every organisation to build\u00a0 a good quality product to the customer. To achieve this we conduct the negative testing<\/p>\n<p>Negative testing characteristics are:<\/p>\n<ul>\n<li>It is carried to point out the faults which can lead to major failures<\/li>\n<li>It is performed to find the software weakness and its potential\u00a0 for exploitation<\/li>\n<li>It is conducted to identify how the security breaches can occur.<\/li>\n<\/ul>\n<p>Negative testing techniques are<\/p>\n<ol>\n<li>Skipping the data and proceeding<\/li>\n<li>Verifying each field type<\/li>\n<li>Verifying numeric data size and boundary tests.<\/li>\n<\/ol>\n<p>The equivalence partition between negative testing and positive testing is<\/p>\n<figure id=\"attachment_1571\" aria-describedby=\"caption-attachment-1571\" style=\"width: 514px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.h2kinfosys.com\/blog\/negative-testing-3\/nt\/\" rel=\"attachment wp-att-1571\"><img fetchpriority=\"high\" decoding=\"async\" class=\"size-full wp-image-1571\" src=\"https:\/\/www.h2kinfosys.com\/blog\/wp-content\/uploads\/2018\/10\/NT.jpg\" alt=\"NEGATIVE TESTING\" width=\"514\" height=\"222\" title=\"\" srcset=\"https:\/\/www.h2kinfosys.com\/blog\/wp-content\/uploads\/2018\/10\/NT.jpg 514w, https:\/\/www.h2kinfosys.com\/blog\/wp-content\/uploads\/2018\/10\/NT-300x130.jpg 300w\" sizes=\"(max-width: 514px) 100vw, 514px\" \/><\/a><figcaption id=\"caption-attachment-1571\" class=\"wp-caption-text\">NEGATIVE TESTING<\/figcaption><\/figure>\n<p>The different types of negative testing situations are:<\/p>\n<ol>\n<li>Filling the values in required fields: The applications behaviour is checked when the test leaves the required fields empty and analyse the response of the application.<\/li>\n<li>Data and field types correspondences: The forms that contain controls can be tested by entering the invalid values to know the proper function of the application.<\/li>\n<li>The number of characters which are allowed: Some fields allow limited characters to be entered. For example: the user name or password field has a specific number of characters<\/li>\n<li>Allowing data bounds and limits: Applications can accept the input value in a certain range of data. For example of negative test: Enter the data in an application that exceeds the data type limit.<\/li>\n<li>Reasonable data values: some applications have reasonable data limit. For example: Enter data limit in the age field in any application.<\/li>\n<li>Web &#8211; based testing: some websites have condition to log in or use captcha before opening the first webpage to check whether the application behaves properly.<\/li>\n<\/ol>\n<p>In positive testing it always proves that the product always meets the requirement specifications.In negative testing the main intention is to test whether the software is not showing the error when it is supposed to show or showing error when it shouldn\u2019t show. Negative testing is a procedure to identify the inputs where system is not designed. The reason behind the negative testing is to check the stability of any software under the influences of various types of incorrect\u00a0 data set.<\/p>\n<h2>Check your understanding:<\/h2>\n<ol>\n<li>What is Negative Testing?<\/li>\n<li>Mention the difference between Positive and negative testing?<\/li>\n<li>What are the advantages of Negative testing?<\/li>\n<li>Explain the characteristics of Negative testing?<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>The software testing can also be classified as two types of testing one is positive testing and negative testing. Positive testing is the application functions as expected valid data sets. If\u00a0 an error occurs during positive testing the test fails. In the Negative Testing, the application handles the unexpected\u00a0 behaviour or invalid input. For example [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":7492,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[229,295,51],"class_list":["post-1570","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-qa-tutorials","tag-negative-testing","tag-positive-testing","tag-software-testing"],"_links":{"self":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/posts\/1570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/comments?post=1570"}],"version-history":[{"count":0,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/posts\/1570\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/media\/7492"}],"wp:attachment":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/media?parent=1570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/categories?post=1570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/tags?post=1570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}