A) How many tests are required to test all the combinations of inputs? B) How ma
ID: 3847852 • Letter: A
Question
A) How many tests are required to test all the combinations of inputs?
B) How many different pairs of input values can be generated?
C) What is the optimal number of tests required for complete pairwise testing?
Please provide detailed calculation for your answer
170 (6 marks A campus information system for small university generates customized landing pages for students based on four input criteria: student status, and Student status has 4 possible values, degree has 4 possible values, faculty has 3 year. possible values, and year has 5 possible values. Answer each of the following questions, showing your work.Explanation / Answer
A)
There are 4 possible values of student status. So, we will need 4 tests for identifying student status.
Let s1, s2, s3 and s4 are the 4 types of possible student status.
We will check student status as follows
If(current student status == s1):
Print("current student has status s1")
else if(current student status == s2):
Print("current student has status s2")
else if(current student status == s3):
Print("current student has status s3")
else if(current student status == s4):
Print("current student has status s4")
Similary ,we will need 4 tests for checking degree, 3 tests for checking faculty, 5 tests for checking year.
So in total we will need 4+4+3+5 = 16 tests for checking one student.
B)
There can be 4*4*3*5 = 240 types of inputs possible.
C)
If you want to test a pair of students, we will need 4 tests as follows:
If( status(Student1) == status(Student2) ):
print("Both students have same status")
If( degree(Student1) == degree(Student2) ):
print("Both students have same degree")
If( faculty(Student1) == faculty(Student2) ):
print("Both students have same faculty")
If( year(Student1) == year(Student2) ):
print("Both students have same year")