Professional Documents
Culture Documents
Experiment 07
Experiment 07
return 0; }
Test cases:
Test priority: High Test Designed Date: 2/8/2020
Test Title: To test odd even program Test Execution Date: 1/8/2020
Sr. Test Test data Test steps Expected Actual Result Status
description Result
3. Program:
#include <stdio.h>
int main () {
printf(“Tuesday”);
break; case 'C' :
printf(“Wednesday”);
break; case ‘D' :
printf("Thrusday \n" );
break; case 'D' :
printf("Friday \n" );
break; case 'F' :
printf("Saturday \n" );
break; case ‘G' :
printf(“Sunday");
break; default :
printf("Invalid \n" );
}
return 0;
}
Test priority: High Test Designed Date: 2/8/2020
Sr. Test Test data Test steps Expected Actual Result Status
description Result
4. Expected outcome
2. Decision coverage covers all possible outcomes of each and every Boolean condition
of the code by using control flow graph or chart. ... Generally, a decision point has
two decision values one is true, and another is false that's why most of the times the
total number of outcomes is two.
3. Relation operator testing is stronger than branch testing. For a compound predicate C,
relational operator testing for each relational expression in C does not guarantee the
detection of boolean operator faults. The binary relational and equality operators
compare their first operand to their second operand to test the validity of the specified
relationship. The result of a relational expression is 1 if the tested relationship is true
and 0 if it is false. The type of the result is int .