Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Image Databases Towards Advanced Image Retrieval

Authors: Yihong Gong

1st Edition

1461375037, 978-1461375036

More Books

Students also viewed these Databases questions

Question

What potential obstacles stand in my way?

Answered: 1 week ago

Question

Language in Context?

Answered: 1 week ago