Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are expected to derive the requirement based test cases for a program that displays the contents of memory locations, by using Cause Effect Graphing

You are expected to derive the requirement based test cases for a program
that displays the contents of memory locations, by using Cause Effect Graphing
technique. Here is the requirement specification for the program to be tested:
The SHOWMEM command is to observe the contents of memory locations from a
terminal window. The command syntax is provided below. Brackets denote optional
operands, and the various alternative values that can be provided for those optionaloperands. Uppercase letters signify operand keywords, while lowercase letters stand
for operand values (which are to be replaced with actual values). Underlined operands
indicate default values (i.e., the value used when the operand is omitted).
The initial operand (hexloc1) determines the address of the first byte whose contents
are to be shown. This address can be one to six hexadecimal digits (09, AF) long. If
not specified, the address defaults to 0. The address must fall within the actual
memory range of the machine.
The second operand specifies the amount of memory to be displayed. If hexloc2 is
specified, it defines the address of the last byte in the range of locations to be
displayed. It may be one to six hexadecimal digits in length. The address must be
greater than or equal to the starting address (hexloc1). Also, hexloc2 must be within
the actual memory range of the machine. If END is specified, memory is displayed
up through the last actual byte in the machine. If bytecount is specified, it defines the
number of bytes of memory to be displayed (starting with the location specified in
hexloc1). The operand bytecount is a hexadecimal integer (one to six digits). The sum
of bytecount and hexloc1 must not exceed the actual memory size plus 1, and
bytecount must have a value of at least 1. When the second operand is omitted, it is
assumed to be 1 by default.
When memory contents are displayed, the output format on the screen is one or
more lines of the format
xxxxxx = byte1byte2 byte3 byte4
where xxxxxx is the hexadecimal address of byte1. All output lines will always contain
four bytes, regardless of the value of hexloc1 or the amount of memory to be
displayed.
The error messages that can be produced are:
E1 is invalid command syntax.E2 memory requested is beyond actual memory limit.
E3 memory requested is a zero or negative range.
Some examples of the command usage are:
SHOWMEM displays the first byte in memory (default starting address
of 0, default byte count of 1),
SHOWMEM 88F displays the byte at address 88F,
SHOWMEM 88F-429A displays the bytes in the address range 88F-429A;
After analysis of the specification, following causes and effects have been identified:
Causes:
1. First operand is present.
2. The first operand contains only hexadecimal digits.
3. The first operand contains one to six characters.
4. The first operand is within the actual memory range of the machine.
5. Second operand is END.
6. Second operand is hexloc.
7. Second operand is bytecount.
8. Second operand is omitted.
9. The hexloc2 operand contains only hexadecimal digits.
10. The hexloc2 operand contains one to six characters.
11. The hexloc2 operand is within the actual memory range of the machine.
12. The hexloc2 operand is greater than or equal to the hexloc1 operand.
13. The bytecount operand contains only hexadecimal digits.
14. The bytecount operand contains one to six characters.
15. bytecount + hexloc1<= memory size +1.
16. bytecount >=1.
17. Specified range is large enough to require multiple output lines.
Effects:
61. Message E1 is displayed.
62. Message E2 is displayed.
63. Message E3 is displayed.
64. Memory is displayed on one line.
65. Memory is displayed on multiple lines.
>>>> Convert the Cause Effect Graph you constructed in (a) above toa limited entry
decision table, by following the technique and rules we have seen during our lecture
(Week08).

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

More Books

Students also viewed these Databases questions

Question

Explain how to reward individual and team performance.

Answered: 1 week ago