References; Changing The Error Messages In A Test Script - Extreme Networks AG200 User Manual

Version 5.0
Table of Contents

Advertisement

System Administration
You need some programming experience to extend and add tests. If you have previously used Perl to
complete these tasks, you might find that Python is a better choice as a programming language for the
tasks described in the following sections.
CAUTION
You should familiarize yourself with Python and with the rest of the Sentriant AG product before attempting to create
custom test scripts.

References

This version of Sentriant AG uses Python v2.4.1.
Python home:
http://www.python.org/
Python 2.4.1 tutorial:
http://www.python.org/doc/2.4.1/tut/tut.html
Python language reference:
http://www.python.org/doc/2.4.1/
Sample test scripts are on the Sentriant AG CD in the

Changing the Error Messages in a Test Script

Using Python, try changing the error messages in an existing test script. This task can help you to
familiarize yourself with the Sentriant AG scripting API. Each Sentriant AG test script defines a test
class. To change an error message, create a new script that derives a new test class from an existing test
class and modify the return hash of the
1 Log in as
root
2 Open the
/sampleTests/myCheckSoftwareNotAllowed.py
editor.
304
runTest
to the Sentriant AG server using SSH.
folder.
/sampleTests
method. For example:
file on the Sentriant AG CD in a text
Sentriant AG Users' Guide, Version 5.0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sentriant ag

Table of Contents