Figure 154:Test Script Code - Extreme Networks AG200 User Manual

Version 5.0
Table of Contents

Advertisement

3 Examine the code. The comments explain each section of code. The following example shows the
contents of the file.
Figure 154: Test Script Code
#!/usr/bin/python
from checkSoftwareNotAllowed import CheckSoftwareNotAllowed
#
# This allows a script to be tested from the command line.
#
if __name__ == '__main__':
import myCheckSoftwareNotAllowed
t = myCheckSoftwareNotAllowed.MyCheckSoftwareNotAllowed()
t.processCommandLine()
#
# The class definition. MyCheckSofwareNotAllowed is derived
# from the existing test CheckSoftwareNotAllowed and inherits
# all the existing tests functionality.
#
class MyCheckSoftwareNotAllowed(CheckSoftwareNotAllowed):
#
# Override the testId to be unique from all other test ids
#
testId = "MyCheckSoftwareNotAllowed"
#
# Rename your derived test
#
testName = "My check software not allowed"
Sentriant AG Users' Guide, Version 5.0
System Administration
305

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sentriant ag

Table of Contents