{"id":561,"date":"2016-07-24T07:08:12","date_gmt":"2016-07-24T07:08:12","guid":{"rendered":"http:\/\/www.inspirenignite.com\/jntuk\/?p=561"},"modified":"2016-08-07T12:26:10","modified_gmt":"2016-08-07T12:26:10","slug":"jntuk-b-tech-software-testing-lab-for-r13-batch","status":"publish","type":"post","link":"https:\/\/www.inspirenignite.com\/jntuk\/jntuk-b-tech-software-testing-lab-for-r13-batch\/","title":{"rendered":"JNTUK B.Tech Software Testing Lab for R13 Batch."},"content":{"rendered":"<p>JNTUK B.Tech Software Testing Lab gives you detail information of Software Testing Lab R13 syllabus It will be help full to understand you complete curriculum of the year.<\/p><div class=\"a9916ad81d5189659b0bfae0b37c143c\" data-index=\"1\" style=\"float: none; margin:10px 0 10px 0; text-align:center;\">\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block; text-align:center;\"\r\n     data-ad-layout=\"in-article\"\r\n     data-ad-format=\"fluid\"\r\n     data-ad-client=\"ca-pub-1181153414625576\"\r\n     data-ad-slot=\"9648548092\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\n<\/div>\n\n<p><strong>Lab Assignments<\/strong><\/p>\n<p>Problem Statement 01<br \/>\nConsider an automated banking application. The user can dial the bank from a personal computer, provide a six-digit password, and follow with a series of keyword commands that activate the banking function. The software for the application accepts data in the following form:<\/p>\n<table>\n<tbody>\n<tr>\n<th>Area Code<\/th>\n<th>Blank or three-digit number<\/th>\n<\/tr>\n<tr>\n<td>Prefix<\/td>\n<td>Three-digit number, not beginning with 0 or 1<\/td>\n<\/tr>\n<tr>\n<td>Suffix<\/td>\n<td>Four-digit number<\/td>\n<\/tr>\n<tr>\n<td>Password<\/td>\n<td>Six-character alphanumeric<\/td>\n<\/tr>\n<tr>\n<td>Commands<\/td>\n<td>&#8220;Check status&#8221;, &#8220;Deposit&#8221;, &#8220;Withdrawal&#8221;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Design adhoc test cases to test the system<\/p>\n<p><strong>Problem Statement 02<\/strong><br \/>\nConsider an automated banking application. The user can dial the bank from a personal computer, provide a six-digit password, and follow with a series of keyword commands that activate the banking function. The software for the application accepts data in the following form:<\/p>\n<table>\n<tbody>\n<tr>\n<th>Area Code<\/th>\n<th>Blank or three-digit number<\/th>\n<\/tr>\n<tr>\n<td>Prefix<\/td>\n<td>Three-digit number, not beginning with 0 or 1<\/td>\n<\/tr>\n<tr>\n<td>Suffix<\/td>\n<td>Four-digit number<\/td>\n<\/tr>\n<tr>\n<td>Password<\/td>\n<td>Six-character alphanumeric<\/td>\n<\/tr>\n<tr>\n<td>Commands<\/td>\n<td>&#8220;Check status&#8221;, &#8220;Deposit&#8221;, &#8220;Withdrawal&#8221;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Design the test cases to test the system using following Black Box testing technique:\u00a0BVA, Worst BVA, Robust BVA, Robust Worst BVA Equivalence class testing (Input\/Output domain)<\/p>\n<p><strong>Problem Statement 03<\/strong><br \/>\nConsider an application that is required to validate a number according to the following simple rules:<\/p>\n<ul>\n<li>A number can start with an optional sign.<\/li>\n<li>The optional sign can be followed by any number of digits.<\/li>\n<li>The digits can be optionally followed by a decimal point, represented by a period.<\/li>\n<li>If there is a decimal point, then there should be two digits after the decimal.<\/li>\n<li>Any number-whether or not it has a decimal point, should be terminated a blank.<\/li>\n<li>A number can start with an optional sign.<\/li>\n<li>The optional sign can be followed by any number of digits.<\/li>\n<li>The digits can be optionally followed by a decimal point, represented by a period.<\/li>\n<li>If there is a decimal point, then there should be two digits after the decimal.<\/li>\n<\/ul>\n<p>Any number-whether or not it has a decimal point, should be terminated a blank. Generate test cases to test valid and invalid numbers.<br \/>\n(HINT) Use Decision table and cause-effect graph to generate test cases.<\/p>\n<p><strong>Problem Statement 04<\/strong><br \/>\nGenerate test cases using Black box testing technique to Calculate Standard Deduction on Taxable Income. The standard deduction is higher for tax payers who are 65 or older or blind. Use the method given below to calculate tax.<\/p>\n<p>1. The first factor that determines the standard deduction is the filing status. The basic standard deduction for the<br \/>\nvarious filing status are:<br \/>\nSingle $4,750<br \/>\nMarried, filing a joint return $9,500<br \/>\nMarried, filing a separate return $7,000<\/p>\n<p>2. If a married couple is filing separate returns and one spouse is not taking standard Deduction, the other spouse also is not eligible for standard deduction.<\/p>\n<p>3. An additional $1,000 is allowed as standard deduction, if either the filer is 65 yrs or the spouse is 65 yrs or older (the latter case applicable when the filing status is \u201cMarried\u201d and filing \u201cjoint\u201d).<\/p>\n<p>4. An additional $1,000 is allowed as standard deduction, if either the filer is blind or the spouse is blind (the latter case applicable when the filing status is \u201cmarried\u201d and filing \u201cjoint\u201d).<\/p>\n<p>(HINT):<br \/>\nFrom the above description, it is clear that the calculation of standard deduction depends on the following 3 factors:<br \/>\n1. Status of filing of the filer<br \/>\n2. Age of the filer<br \/>\n3. Whether the filer is blind or not<\/p>\n<p>In addition, in certain cases, the following additional factors also come into play in calculating the standard deduction.<br \/>\n1. Whether spouse has claimed standard deduction<br \/>\n2. Whether spouse is blind<br \/>\n3. Whether the spouse is more than 65 years old<\/p>\n<p><strong>Problem Statement 05<\/strong><br \/>\nConsider the following program segment:<br \/>\n1. int max (int i, int j, int k)<br \/>\n2. {<br \/>\n3. int max;<br \/>\n4. if (i&gt;j) then<br \/>\n5. if (i&gt;k) then max=i;<br \/>\n6. else max=k;<br \/>\n7. else if (j &gt; k) max=j<br \/>\n8. else max=k<br \/>\n9. return (max);<br \/>\n10. }<\/p>\n<p>a) Draw the control flow graph for this program segment<br \/>\nb) Determine the cyclomatic complexity for this program<br \/>\nc) Determine the independent paths<\/p>\n<p><strong>Problem Statement 06<\/strong><br \/>\nSource code of simple insertion sort implementation using array in ascending order in c programming<br \/>\nlanguage<br \/>\n#include<br \/>\nint main(){<br \/>\nint i,j,s,temp,a[20];<\/p>\n<p>Printf (&#8220;Enter total elements: &#8220;); Scanf (&#8220;%d&#8221;,&amp;s);<br \/>\nprintf(&#8220;Enter %d elements: &#8220;,s); for(i=0;i&lt;s;i++) scanf(&#8220;%d&#8221;,&amp;a[i]); for(i=1;i&lt;s;i++){<br \/>\ntemp=a[i]; j=i-1; while((temp&lt;a[j])&amp;&amp;(j&gt;=0)){ a[j+1]=a[j];<br \/>\nj=j-1;<br \/>\n}<br \/>\na[j+1]=temp;<br \/>\n}<br \/>\nprintf(&#8220;After sorting: &#8220;);<br \/>\nfor(i=0;i&lt;s;i++) printf(&#8221; %d&#8221;,a[i]); return 0; } HINT: for loop is represented as while loop a) Draw the program graph for given program segment b) Determine the DD path graph c) Determine the independent paths d) Generate the test cases for each independent path<\/p>\n<p><strong>Problem Statement 07 <\/strong><br \/>\nConsider a system having an FSM for a stack having the following states and transitions: States Initial: Before creation Empty: Number of elements = 0 Holding: Number of elements &gt; 0, but less than the maximum capacity<br \/>\nFull: Number elements = maximum<br \/>\nFinal: After destruction<br \/>\nInitial to Empty: Create<br \/>\nEmpty to Holding, Empty to Full, Holding to Holding, Holding to Full: Add<br \/>\nEmpty to Final, Full to Final, Holding to Final: Destroy<br \/>\nHolding to Empty, Full to Holding, Full to Empty: Delete<br \/>\nDesign test cases for this FSM using state table-based testing.<\/p>\n<p><strong>Problem Statement 08<\/strong><br \/>\nGiven the following fragment of code, how many tests are required for 100% decision coverage? Give the test cases.<br \/>\nif width &gt; length<br \/>\nthen biggest_dimension = width if height &gt; width<br \/>\nthen biggest dimension = height end_if<br \/>\nelse if biggest dimension = length then if height &gt; length<br \/>\nthen biggest_dimension = height end_if<br \/>\nend_if end_if<\/p>\n<p><strong>Hint<\/strong> 04 test cases<\/p>\n<p><strong>Problem Statement 09<\/strong><br \/>\nGiven the following code, how much minimum number of test cases is required for full statement and branch<br \/>\ncoverage?<\/p>\n<p>read p read q<br \/>\nif p+q&gt; 100<br \/>\nthen print &#8220;Large&#8221; endif<br \/>\nif p &gt; 50<br \/>\nthen print &#8220;p Large&#8221; endif<\/p>\n<p><strong>Hint<\/strong> 1 test for statement coverage, 2 for branch coverage<\/p>\n<p><strong>Problem Statement 10<\/strong><br \/>\nConsider a program to input two numbers and print them in ascending order given below. Find all du paths and identify those du-paths that are not feasible. Also find all dc paths and generate the test cases for all paths (dc paths and non dc paths).<\/p>\n<p>#include<br \/>\n#include<br \/>\n1. void main ()<br \/>\n2. {<br \/>\n3 int a, b, t;<br \/>\n4. Clrscr ();<br \/>\n5. Printf (\u201cEnter first number\u201d);<br \/>\n6. scanf (\u201c%d\u201d,&amp;a);<br \/>\n7. printf(\u201cEnter second number\u201d);<br \/>\n8. scanf(\u201c%d\u201d,&amp;b);<br \/>\n9. if (a&lt;b){<br \/>\n10. t=a;<br \/>\n11a=b;<br \/>\n12 b=t;<br \/>\n13}<br \/>\n14. printf (\u201c%d %d\u201d, a, b);<br \/>\n15 getch ();<br \/>\n}<\/p>\n<p><strong>Problem Statement 11<\/strong><br \/>\nConsider the above program and generate possible program slices for all variables. Design at least one test case from<br \/>\nevery slice.<\/p>\n<p><strong>Problem Statement 12<\/strong><br \/>\nConsider the code to arrange the nos. in ascending order. Generate the test cases for relational coverage, loop coverage and path testing. Check the adequacy of the test cases through mutation testing and also compute the mutation score<br \/>\nfor each.<br \/>\ni = 0;<br \/>\nn=4; \/\/N-Number of nodes present in the graph<br \/>\nWhile (i&lt;n-1) do j = i + 1;<br \/>\nWhile (j&lt;n) do<br \/>\nif A[i]&lt;A[j] then swap (A[i], A[j]); end do;<br \/>\ni=i+1;<br \/>\nend do<\/p>\n<p>For more information about all JNTU updates please stay connected to us on FB and don\u2019t hesitate to ask any questions in the comment.<\/p>\n<div class=\"a9916ad81d5189659b0bfae0b37c143c\" data-index=\"2\" style=\"float: none; margin:10px 0 10px 0; text-align:center;\">\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block; text-align:center;\"\r\n     data-ad-layout=\"in-article\"\r\n     data-ad-format=\"fluid\"\r\n     data-ad-client=\"ca-pub-1181153414625576\"\r\n     data-ad-slot=\"8060844699\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\n<\/div>\n\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>JNTUK B.Tech Software Testing Lab gives you detail information of Software Testing Lab R13 syllabus It will be help full to understand you complete curriculum of the year. Lab Assignments [&hellip;]<\/p>\n","protected":false},"author":2259,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-561","post","type-post","status-publish","format-standard","hentry","category-syllabus"],"_links":{"self":[{"href":"https:\/\/www.inspirenignite.com\/jntuk\/wp-json\/wp\/v2\/posts\/561","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inspirenignite.com\/jntuk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inspirenignite.com\/jntuk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inspirenignite.com\/jntuk\/wp-json\/wp\/v2\/users\/2259"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inspirenignite.com\/jntuk\/wp-json\/wp\/v2\/comments?post=561"}],"version-history":[{"count":1,"href":"https:\/\/www.inspirenignite.com\/jntuk\/wp-json\/wp\/v2\/posts\/561\/revisions"}],"predecessor-version":[{"id":562,"href":"https:\/\/www.inspirenignite.com\/jntuk\/wp-json\/wp\/v2\/posts\/561\/revisions\/562"}],"wp:attachment":[{"href":"https:\/\/www.inspirenignite.com\/jntuk\/wp-json\/wp\/v2\/media?parent=561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inspirenignite.com\/jntuk\/wp-json\/wp\/v2\/categories?post=561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inspirenignite.com\/jntuk\/wp-json\/wp\/v2\/tags?post=561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}