我在这个ISTQB练习问题上有问题。我不明白答案(A)是怎么得出的。
问题482:分析以下高度简化的程序:
Ask: "What type of ticket do you require, single or return?"
IF the customer wants "return"
Ask: "What rate, Standard or Cheap-day?"
IF the customer replies "Cheap-day"
Say: "That will be "11:20""
ELSE
Say: "That will be "19:50""
ENDIF
ELSE
Say: "That will be "9:75"
ENDIF现在,确定所需测试的最小数量,以确保所有的问题都已被问到,所有的组合都已发生,所有的答复都已给出。
A. 3
B. 4
C. 5
D. 6发布于 2017-04-08 18:59:37

为了达到100%的陈述覆盖率,有3条路要走。
你的问题没有最好的格式。
Ask Single or Return
IF the customer wants RETURN
Ask Standard or Cheap-day
IF the customer replies Cheap-day
Say 11:20
ELSE
Say 19:50
ENDIF
ELSE
Say 9:75 // whatever time this is
ENDIFhttps://sqa.stackexchange.com/questions/26681
复制相似问题