Question: This individual assignment has two parts. For Part I, you must generate test case specifications for Bounded Queue class, whose signature is provided below, using

This individual assignment has two parts. For Part I, you must generate test case specifications for Bounded Queue class, whose signature is provided below, using the input space partitioning method. For Part II, you will demonstrate how your test case can be used by implementing them.

Signature

  • public BoundedQueue (int capacity); // The maximum number of elements

  • public void enQueue (Object X);

  • public Object deQueue ();

  • public boolean isEmpty ();

  • public boolean isFull ();

Assume the usual semantics for a queue with a fixed, maximal capacity.

Generate test cases for the class BoundedQueue using the Input Space Partitioning method.

As a suggestion, try to keep your partitioning simplechoose a small number of partitions and blocks.

(a) List of all the input variables, including the state variables.

(b) Characteristics of the input variables (Make sure you cover all input variables)

(c) Blocks that partition the characteristics.

(d) One block in each partition designated as the Base block.

(e) Values for each block.

(f) Test suite that satisfies Base Choice Coverage (BCC)

Remember that a test suite is a set of test cases and a test case contains both the input to be used with that test, but also the expected output or better the test oracle (i.e., what you will be checking with that test case).

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 Databases Questions!