Design: 09.01.02.02/P02
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 2: Error 53 handled by system
CHARACTERISTICS: ynny
OPERATOR SCRIPT:
See OPERATOR SCRIPT for Program 1.
DESIGN:
Throughout this program, every time an error is signalled, the
system-defined error handler should call <error logging> to write in
error message on the error file.
Also, throughout this program, this is what is meant by
"operator verifies error nmessage":
display next error message in error file to operator
OPQA/according to the error message, which function generated the error?
if (operator response = expected function) then
OPQA/if error message identifies error code, enter it, else "n"
if (operator response = "n") then
display standard error wording(s) to operator
OPQA/does error meaage match standard wording?
pass/fail depending on (operator response = yes)
else
pass/fail depending on (operator response = expected code)
endif
else
fail
informative message on missing/incorrect function
endif
<open workstation> twice with same parameters to test if error 53 is generated:
ignoring function, workstation identifier already is in use.
*** *** *** Generate errors; test absence of side effects *** *** ***
call MULTWS to get number of all accessible workstations : nwkall
call MULTWS to get
workstation identifier: owkid(1:nwkall)
connection identifier: oconid(1:nwkall)
workstation type : owtype(1:nwkall)
for every accessible workstation
for ix = 1, nwkall
<open workstation> with owkid(ix), oconid(ix), owtype(ix)
<open workstation> with owkid(ix), oconid(ix), owtype(ix): signals error
TEST: #SR 3
"If <open workstation> signals an error because the specified
workstation identifier is in use, it should not cause any other
effect."
pass/fail depending on (system state = PHIGS-open and
workstation state = open)
next ix
*** *** *** Results of system-defined error handling *** *** ***
for ix = 1, nwkall
TEST: #SR 3
"If <open workstation> is called and the specified workstation
identifier is in use, it should write an accurate,
self-identifying error message on the error file."
pass/fail depending on (operator verifies error message)
next ix
END PROGRAM 2