Question: Task 1 Black Box Testing ( 1 0 marks ) Given the function specification as below, can you design test cases by applying each of

Task 1 Black Box Testing (10 marks)
Given the function specification as below, can you design test cases by applying each of the following black box testing methods?
Input Partitioning (4 marks)
Output Partitioning (3 marks)
Boundary Value Robustness Testing (3 marks)
Marking criteria for task 1 is:
Criteria Ratings Pts
Input Partitioning 4 Pts
Full marks
Test cases do not miss any important input partition; Test cases do not include redundant input partitions. 0 Pts
No marks
Each missing or redundant input partition (or relevant test case) causes a loss of 1 mark.
4 pts
Output Partitioning 3 Pts
Full marks
Test cases do not miss any important output partition; Test cases do not include redundant output partitions. 0 Pts
No marks
Each missing or redundant output partition (or relevant test case) causes a loss of 1 mark.
3 pts
Boundary Value Robustness Testing 3 Pts
Full marks
Test cases do not miss any important boundary value; Test cases do not include redundant boundary values. 0 Pts
No marks
Each missing or redundant boundary value (or relevant test case) causes a loss of 1 mark.
3 pts Use the template provided in the images of the question. Task 1 Black Box Testing (10 marks)
Given the function specification as below, can you design test cases by applying each of the following black box testing methods?
Input Partitioning (4 marks)
Output Partitioning (3 marks)
Boundary Value Robustness Testing (3 marks)
Given an array of no more than 100 unique integers sorted in ascending order, arr, and an integer x, the function returns an integer that meets the following conditions:
If there is no such a value of j that arr[j] equals x, then return -1.
Otherwise, return the value of j that arr[j] equals x.
The function throws an Exception for any invalid input, e.g., arr is null, or x is not an integer.
Marking criteria for task 1 is:
\table[[Criteria,Ratings,Pts],[\table[[Input],[Partitioning]],,,4 pts],[\table[[4 Pts],[Full marks],[Test cases do not miss any important],[input partition; Test cases do not],[include redundant input partitions.]],\table[[0 Pts],[No marks],[Each missing or redundant input],[partition (or relevant test case)],[causes a loss of 1 mark.]]],[\table[[Output],[Partitioning]],,,3 pts],[\table[[3 Pts],[Full marks],[Test cases do not miss any important],[output partition; Test cases do not],[include redundant output partitions.]],\table[[0 Pts],[No marks],[Each missing or redundant output],[partition (or relevant test case)],[causes a loss of 1 mark.]]],[\table[[Boundary],[Value],[Robustness],[Testing]],,,3 pts],[3 Pts,0 Pts],[Full marks,No marks],[\table[[Test cases do not miss any important],[boundary value; Test cases do not],[include redundant boundary values.]],\table[[Each missing or redundant],[boundary value (or relevant test],[case) causes a loss of 1 mark.]]]]
Complete task 1 using the following template: Input Partitioning
List all the combinations of the equivalence classes for input parameters (arr and x ):
\table[[Partition,Equivalence Class for arr,Equivalence Class for x],[P1,,],[P2,,],[dots,,],[,,],[,,],[,,],[,,],[,,],[,,]]
List the test cases you designed to cover all the identified partitions. Test cases might be fewer than the partitions.
\table[[Test,Partitions covered,arr input,x input,output],[T1,P1,,,],[T2,P2, P3,,,],[dots,,,,],[,,,,],[,,,,],[,,,,],[,,,,],[,,,,],[,,,,]] Output Partitioning
List all the partitions, i.e., equivalence classes for the output domain.
PartitionEquivalenceClassforoutputP1?P2?dots?????????????
List the test cases you designed to cover all the identified partitions. The test cases might be fewer than the partitions.
\table[[Test,Partitions covered,arr input,x input,output],[T1,P1,,,],[T2,P2, P3,,,],[dots,,,,],[,,,,],[,,,,],[,,,,],[,,,,],[,,,,],[,,,,]] Boundary Value Robustness Testing
Test cases designed based on all combinations of boundary values for arr and x.
\table[[Test,arr input,x input,output],[T1,,,],[T2,,,],[dots,,,],[,,,],[,,,],[,,,],[,,,],[,,,],[,,,],[,,,]]Boundary Value Robustness Testing
Test cases designed based on all combinations of boundary values for arr and x.
\table[[Test,arr input,x input,output],[T1,,,],[T2,,,],[dots,,,],[,,,],[,,,],[,,,],[,,,],[,,,],[,,,],[,,,]]
Task 1 Black Box Testing ( 1 0 marks ) Given the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!