Skip to main content
4 of 5
edited title
Mate Mrše
  • 4.1k
  • 4
  • 24
  • 51

White-box technique-Statement Coverage : ISTQB Foundation Level

I have found the following questions regarding statement coverage.

Minimum Test Required for Statement Coverage:

  1. Disc = 0
  2. Order-qty = 0
  3. Read Order-qty
  4. If Order-qty >=20 then
    1. Disc = 0.05
    2. If Order-qty >=100 then
      1. Disc =0.1
    3. End if
  5. End if

In my opinion, we need 2 statement coverage. But the correct answer is 1 statement based on many websites.

I don't understand why only one statement coverage is needed.

Raki
  • 11
  • 1