A) How many tests are required to test all the combinations of inputs? B) How ma
ID: 3865706 • 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
17) (6 marks) A campus information system for a university generates customized landing pages for students based on four input criteria: student status, degree, faculty, and year. Student status has 4 possible values, degree has 4 possible values, faculty has 3 possible values, and year has 5 possible values. Answer each of the following questions, showing your work. smallExplanation / Answer
By the given question we know that every input having some values with them as 4 possible values for student status,4 possible values for degree, 3 possible values for faculty and 5 possible values for year.
A. How many tests are required to test all the combinations of inputs?
16
Select any input criteria from student status, degree, year and faculty.
If we select degree for testing degree has 4 possible values, so we will need 4 tests for identifying degree of a student.
Let d1,d2,d3 and d4 are the 4 types of possible degrees of a student.
The degree of a student will be checked as follows:
if(Current students degree = = d1):
Print ("Current student has degree d1")
else if(Current students degree = = d2):
Print ("Current student has degree d2")
else if(Current students degree = = d3):
Print ("Current student has degree d3")
else if(Current students degree = = d4):
Print ("Current student has degree d4")
Here, we perform 4 tests for checking degree of a student. Similarly we will need 4 tests for checking student status, 3 for faculty and 5 for year.
From this it clearly says that we need perform 4+4+3+5 = 16 tests for checking one students with all combination of inputs.
B. How many different pairs of input values can be generated?
240 Types of inputs
The pair of input values are generated based on the combination number of tests we can perform on every input. Here we have four inputs.
The possible types of inputs can be 4*4*3*5 =240.
C. What is the optimal number of tests required for complete pairwise testing?
We require minimum 4 tests for complete pairwise testing. They are as follows
If (status (First_student) = = status (Second_student)):
Print("Both are having same status")
if (degree(First_student) = = degree(Second_student)):
Print("Both are having same degree")
if (faculty(First_student) = = faculty(Second_student)):
Print("Both are having same faculty")
If (year(First_student) = = year(Second_student)):
Print("Both are having same year")
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.