Extreme Networks AG200 User Manual page 306

Version 5.0
Table of Contents

Advertisement

System Administration
Figure 154: Test Script Code (continued)
#
# All test classes must define the runTest method with the self and
debug
# parameters
#
def runTest(self,debug=0):
#
# Get the result hash from the CheckSoftwareNotAllowed test
# and modify the result message based on the result code.
#
result = CheckSoftwareNotAllowed.runTest(self,debug)
if result["result_code"] == "fail":
failed."
elif result["result_code"] == "pass":
passed."
return result
4 You can change the
the end-user sees in the access windows. This text also appears in the management console when
you run reports.
5 Every test must return a hash with the following keys:
status_code – 0 test did not run, error occurred, 1 test ran
result_code – pass, fail
result_message – the text to display to the user
NOTE
Do not change the status_code or the result_code for this example.
306
result["result_message"] = "The MyCheckSoftwareNotAllowed test
result["result_message"] = "The MyCheckSoftwareNotAllowed test
result["result_message"]
to whatever text you want. This message is what
Sentriant AG Users' Guide, Version 5.0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sentriant ag

Table of Contents