Char array cause-effect graph

De Software testing
Ir para: navegação, pesquisa

Causes:

  • 1 - positive integer in the range 1 to 20
  • 2 - character to be found in the array
  • 3 - option to search for another character

Effects:

  • 20 - integer out of the range
  • 21 - position of the character in the array
  • 22 - character not found
  • 23 - end of the program

Graph: Char array cause-effect graph.png

Decision table:

Node Test case 1 Test case 2 Test case 3 Test case 4
1 0 1 1
2
1 0
2
1 1 0
20 1 0 0 0
21 0 1 0 0
22 0 0 1 0
23 0 0 1