Novell ZENWORKS NETWORK ACCESS CONTROL 5.0 - 09-22-2008 User Manual page 348

Table of Contents

Advertisement

TIP: This template file is included on the CD at /sampleScripts/testTemplate.py, so you can edit it
instead of retyping it.
testTemplate.py
#!/usr/bin/python
from BaseClasses.SABase import SABase as SABase
#
# This allows a script to be tested from the command line.
#
if __name__ == '__main__':
import testTemplate
t = testTemplate.TestTemplate()
t.processCommandLine()
_____________________________________________________________________________
#
# The class definition. All classes must be derived from the SABase class.
#
class TestTemplate(SABase):
#
# Make up a test id. Just make sure it doesn't match any existing test ids.
#
testId = "TestId"
#
# Make up test name. Just make sure it doesn't match any existing test names.
#
testName = "Test Name"
_____________________________________________________________________________
#
# Assign the test to an existing group or create a new group.
# Groups are configured and created in the policies.xml file <group>
# section (See the Adding new groups section).
#
testGroupId = "TestGroup"
#
# This is the HTML that will be displayed in the test properties page
# in the policy editor.
#
testConfig = \
"""
<HTML>Test Config HTML</HTML>
"""
#
# These are any default values you want to assign to the input parameters
# in the testConfig HTML.
#
defaultConfigValues = {}
_____________________________________________________________________________
348 Novell ZENworks Network Access Control Users Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Zenworks network access control 5.0

Table of Contents