Software Testing by Rajiv Chopra

Software Testing by Rajiv Chopra

Author:Rajiv Chopra [Rajiv Chopra]
Language: eng
Format: epub, mobi, pdf
Publisher: Mercury Learning and Information
Published: 2018-02-03T16:00:00+00:00


So, there are 8 possible conditional variants. And we are able to exercise all 8 with only 4 test cases.

Impossible Conditions and Paths

Some predicate domains or programming structures may render a path impossible. There are at least four causes of impossible conditions and paths.

1.Boolean short circuits, as discussed earlier.

2.Contradictory or constraining domains.

Given:

if (x > 2) && (x < 10) then ....

Only three conditions can be obtained. x cannot be simultaneously less than 3 and greater than 9, so the false-false case is impossible.

3.Redundant Predicates.

if (x) <A>

else<B>

endif

if not (x)<C>

else<D>

endif



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.