Extreme Networks AG200 User Manual page 313

Version 5.0
Table of Contents

Advertisement

Figure 156: testTemplate.py (continued)
#
# Always use the doReturn function; this allows superclass to add or
modify
# any items in the returnHash as necessary.
#
return(self.doReturn(returnHash))
1 Use the template, as shown in
script is called
checkOpenPorts.py,
host being tested. Before examining the code, consider the following information about the test
scripts:
All test scripts contain a
through the policy properties HTML. For example, if the
to:
<input id="myparam" name="myparam" value="">
Then, the self
inputParams
element set in the policy editor.
All test scripts contain a
class is instantiated. It contains a reference to a Session object, which is a built-in Python class
defined by Sentriant AG and is used internally by the
section. However, to retrieve the host name or IP address, use
self.session.host()
when developing scripts.
All tests contain a reference to the
access to commonly used functions for testing endpoints including registry operations and
service operations. See "BasicTests API" on page 319 for more information on the
API. This example does not use this API.
Sentriant AG Users' Guide, Version 5.0
Figure
156, to create a new test script. As an example, the new test
and it fails if any of the specified ports are open on the target
hash table that has all input parameters configured
self.inputParams
contains a
key that is set to the value of the HTML input
myparams
member variable that is set by Sentriant AG when the test
self.session
class called
BasicTests
System Administration
variable for the test is set
testConfig
class described later in this
BasicTests
method:
host()
. The
self.bt
self.bt
class gives you
BasicTests
313

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sentriant ag

Table of Contents