Statement Testing and Statement Coverage. ISTQB whitebox techniques with TestCompetence
Upcoming SlideShare
Loading in...5
×
 

Statement Testing and Statement Coverage. ISTQB whitebox techniques with TestCompetence

on

  • 7,873 views

 

Statistics

Views

Total Views
7,873
Views on SlideShare
6,951
Embed Views
922

Actions

Likes
0
Downloads
57
Comments
0

8 Embeds 922

http://testerzy.pl 635
http://www.testerzy.pl 253
http://testerzy.nazwa.pl 20
http://www.nowi.testerzy.pl 5
http://www.linkedin.com 3
http://nowi.testerzy.pl 3
http://webcache.googleusercontent.com 2
http://local.testlacza.testerzy.pl 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Statement Testing and Statement Coverage. ISTQB whitebox techniques with TestCompetence Statement Testing and Statement Coverage. ISTQB whitebox techniques with TestCompetence Presentation Transcript

  • Statement Testing and Statement Coverage withPrepare yourself for the ISTQB exam
  • Dictionarystatement: an entity in a programming language, which is typicallythe smallest indivisible unit of execution.statement testing: a white box test design technique in whichtest cases are designed to execute statements.statement coverage: the percentage of executable statementsthat have been exercised by a test suite.executable statement: a statement which, when compiled, istranslated into object code, and which will be executed procedurallywhen the program is running and may perform an action on data.code coverage: an analysis method that determines which partsof the software have been executed (covered) by the test suite andwhich parts have not been executed, e.g. statement coverage,decision coverage or condition coverage. From „Standard glossary of terms used in Software Testing” Copyright © 2013
  • What is…?Statement coverage is the assessmentof the percentage of executablestatements that have been exercised by atest case suite.Statement testing derives test cases toexecute specific statements, normally toincrease statement coverage. From „Certified Tester Foundation Level Syllabus (version 2011)”Copyright © 2013
  • Rules100% branch coverage implies both 100%decision coverage and 100% statementcoverage. From „Certified Tester Foundation Level Syllabus (version 2011)”Copyright © 2013
  • Examples with sequential codea = b + cd = e * e In order to cover all statements, you need 1 test case.Copyright © 2013
  • Examples with IFIF (wa){ ev = ghd - pkq / cds; In order to cover all} statements, you need 1 test case.Copyright © 2013
  • Examples with IF ELSEIF (weu){ i = o - f; In order to cover all} statements, you needELSE 2 test cases.{ u = gkt * k;}Copyright © 2013
  • Examples with SWITCHSWITCH (yc){ CASE 0: In order to cover all epl = o / c; statements, you need break; 4 test cases. CASE 1: p = wt * bd; break; CASE 2: fbt = xg + ana - cs; break; DEFAULT: qxn = q / ti; break;}Copyright © 2013
  • Examples with WHILEa = 1;WHILE (a < 5){ In order to cover all b = c; statements, you need a++; 1 test case.}Copyright © 2013
  • Examples with DO WHILEDO{ a = a + 1} WHILE (a <= 0) In order to cover all statements, you need 1 test case.Copyright © 2013
  • Examples with FORFOR (a = 5; a > -5; a--){ b = c + 1; In order to cover all} statements, you need 1 test case.Copyright © 2013
  • More examplesIF (a){ b = c + d; In order to cover all} statements, you needELSE 2 test cases.{ IF (e) { b = c - d; }}Copyright © 2013
  • More examplesIF (a){ IF (f) In order to cover all { statements, you need g = h - i; 2 test cases. }}ELSE{ IF (e) { b = c - d; }}Copyright © 2013
  • More examplesSWITCH (a){ CASE 0: IF (b) In order to cover all { statements, you need c; 3 test cases. } break; CASE 1: IF (d) { e; } ELSE { f; } break;}Copyright © 2012
  • More examples with…TestCompetence allows you to generate sample pseudocode to pracitse whiteboxtechniques including statement coverage… Copyright © 2013
  • More examples with…TestCompetence allows you to generate sample pseudocode to pracitse whiteboxtechniques including statement coverage… Choose the maximum number of Choose the instructions level of per level. nested statements. Choose the type of Choose the coverage type of from: statement. statement, decision, codition, multiple condition, GENERATE and modified your exercise. condition. Copyright © 2013
  • More examples with…You get pseudocode and sample answers just like during a regular ISTQB exam.Choose the right answer. Pseudocode Choose an answer. Copyright © 2013
  • More examples with…You get pseudocode and sample answers just like during a regular ISTQB exam.Choose the right answer. Pseudocode Your answer Right answer Copyright © 2013
  • How to get it…Visit TestCompetence.com and get one for only… EURO / USD Unlimited number of exercises during 24 hours!Copyright © 2013
  • Check also examples for…• Decision testing and coverage >>• Condition testing and coverage >>• Multiple condition testing and coverage >>• Modified condition decision combination (MC/CD) coverage >> Copyright © 2013