Print Page | Close Window

Statement Coverage and Decision Coverage

Printed From: One Stop Testing
Category: Software Testing @ OneStopTesting
Forum Name: Beginners @ OneStopTesting
Forum Discription: New to the Club...!!! Don't Worry, We are here for you...!!! Learn the very basics of Software Testing and other pertinent Informations.
URL: http://forum.onestoptesting.com/forum_posts.asp?TID=6495
Printed Date: 01Apr2025 at 2:41pm


Topic: Statement Coverage and Decision Coverage
Posted By: anju083
Subject: Statement Coverage and Decision Coverage
Date Posted: 19Jun2009 at 3:10am
1.Calculate Statement and Decision Coverage (Please Explain in detail)

(1.1) Read A
       Read B
          IF A > 0 THEN
           IF B = 0 THEN
            Print “No values”
           ELSE
             Print B
          IF A > 21 THEN
             Print A
           ENDIF
        ENDIF
        ENDIF
(1.2) Read A
        Read B
        IF A < 0 THEN
           Print “A negative”
           ELSE
           Print “A positive”
           ENDIF
              IF B < 0 THEN
                 Print “B negative”
              ELSE
                 Print “B positive”
           ENDIF
Thanks in Advance



Print Page | Close Window