{"id":1434,"date":"2018-06-26T16:35:45","date_gmt":"2018-06-26T16:35:45","guid":{"rendered":"https:\/\/www.h2kinfosys.com\/blog\/?p=1434"},"modified":"2025-03-07T07:42:02","modified_gmt":"2025-03-07T12:42:02","slug":"decision-testing","status":"publish","type":"post","link":"https:\/\/www.h2kinfosys.com\/blog\/decision-testing\/","title":{"rendered":"Decision Testing"},"content":{"rendered":"\n<p>Decision testing is also called branch testing. It is test design technique for white box testing. The white box testing is performed by the developers using the development tools. The programs and interfaces between the programs are tested. The <a href=\"https:\/\/www.h2kinfosys.com\/blog\/white-box-testing\/\">white box testing<\/a> is also called structural testing. There are two types of white box <a href=\"https:\/\/www.h2kinfosys.com\/blog\/software-testing-technique\/\">testing techniques<\/a>:<br>statement testing or statement coverage<br>decision testing or decision coverage<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Decision Testing:<\/h2>\n\n\n\n<p>The decision testing is a process which checks the behaviour of the application by providing different combinations of input and obtains various results. It is also called as Branch Testing where the different types of inputs are supplied to check a particular condition.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Example 1:<\/h3>\n\n\n\n<p>To check if a number is greater than 50<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">algorithm:<\/h3>\n\n\n\n<p>int a<br>read a<\/p>\n\n\n\n<p>if a &gt; 50 then<br>print: a is greater than 50<br>end if<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">flowchart:<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter is-resized\"><a href=\"https:\/\/www.h2kinfosys.com\/blog\/decision-testing\/dectest\/\" rel=\"attachment wp-att-1435\"><img fetchpriority=\"high\" decoding=\"async\" width=\"512\" height=\"474\" src=\"https:\/\/www.h2kinfosys.com\/blog\/wp-content\/uploads\/2018\/06\/dectest.jpg\" alt=\"decision testing flowchart\" class=\"wp-image-1435\" style=\"width:572px;height:auto\" title=\"\" srcset=\"https:\/\/www.h2kinfosys.com\/blog\/wp-content\/uploads\/2018\/06\/dectest.jpg 512w, https:\/\/www.h2kinfosys.com\/blog\/wp-content\/uploads\/2018\/06\/dectest-300x278.jpg 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/a><figcaption class=\"wp-element-caption\">decision testing flowchart<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Refer to the above flowchart, there are two paths: TRUE &amp; FALSE. As per decision testing, 100% decision coverage can be achieved when all the possible paths between start to end are covered. To cover the two possible paths below data sets can be considered for testing:<\/p>\n\n\n\n<p>a = 60 (TRUE path) , a = 50 (FALSE path)<br>a = 60 (TRUE path) , a = 40 (FALSE path)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Check your understanding:<\/h2>\n\n\n\n<p>1. List down the different symbols used in flowchart &amp; their purpose<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Decision testing is also called branch testing. It is test design technique for white box testing. The white box testing is performed by the developers using the development tools. The programs and interfaces between the programs are tested. The white box testing is also called structural testing. There are two types of white box testing [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":7490,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[205,51,108],"class_list":["post-1434","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-qa-tutorials","tag-decision-testing","tag-software-testing","tag-white-box-testing"],"_links":{"self":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/posts\/1434","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=1434"}],"version-history":[{"count":0,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/posts\/1434\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/media\/7490"}],"wp:attachment":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/media?parent=1434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/categories?post=1434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/tags?post=1434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}