Design: 02.01.02.02/P01
This is an abstract, language-independent design. Grim
details may be found in the
corresponding source code.
You may return to the
documentation
for the module containing this program design, or to the
entire hierarchical table of
topics covered by the PVT.
PROGRAM 1: Deletion of a structure network using
a non-existent structure identifier
CHARACTERISTICS: nnnn
OPERATOR SCRIPT: passive test
DESIGN:
Use <open structure> and <execute structure> to set up the CSS
as follows:
100
/ \
1/ \2
/ \
103 104 102
| | \ / \
1| |2 1\ 1/ \2
| | \ / \
105 106 109
/ \ / \
1/ \2 1/ \2
/ \ / \
107 108 110
The nodes of the graph (100 and above) represent structures, and the
labelled edges are references to invoke (lower) structures. The
labels (1-2) represent the element position of the <execute structure>
function within the calling structure.
TEST: #SR 9
"<Delete structure network> with a non-existent structure
identifier and the reference handling flag set to delete
should have no effect on the contents of the CSS."
nostid = 25
reffg = DELETE
<delete structure network> using nostid, reffg
pass/fail depending on (CSS contents =
100
/ \
1/ \2
/ \
103 104 102
| | \ / \
1| |2 1\ 1/ \2
| | \ / \
105 106 109
/ \ / \
1/ \2 1/ \2
/ \ / \
107 108 110 )
TEST: #SR 9
"<Delete structure network> with a non-existent structure
identifier and the reference handling flag set to keep
should have no effect on the contents of the CSS."
nostid = 40
reffg = KEEP
<delete structure network> using nostid, reffg
pass/fail depending on (CSS contents =
100
/ \
1/ \2
/ \
103 104 102
| | \ / \
1| |2 1\ 1/ \2
| | \ / \
105 106 109
/ \ / \
1/ \2 1/ \2
/ \ / \
107 108 110 )
END PROGRAM 1