Showing Page:
1/3
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?
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
Solution
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\")
Showing Page:
2/3
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\")
Showing Page:
3/3

### Unformatted Attachment Preview

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. Solution 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\") Name: Description: ...
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4