When I want to test a method using multiple condition coverage
void someMethod()
{
if(a>0 && (b<4 || c>5)) )
{
}else if(d==4 && e>0)
{
}else{}
if(f!=0 && x>2)
{
}
}
How many truth tables should I create? I know I should create the one like below, but where do I put the else if and else, also the next if? Do I put them together or create another truth table?
Test Case a > 0 b < 4 c > 5
MCC1 F F F
MCC2 F F T
MCC3 F T F
MCC4 F T T
MCC5 T F F
MCC6 T F T
MCC7 T T F
MCC8 T T T
Aucun commentaire:
Enregistrer un commentaire