Creating a Regression Package
SNMP Agent Tester provides you an option to package the configurations and run the validation from anywhere in the network. You can also make the SNMP Agent Tester to mail you the URL of the reports after successful validation. To package the configurations, please follow the steps given below:
Create a project.
Provide the agent information.
Load the MIBs.
Add users for V3 security validation.
Select the V3 compliance groups.
Define and select the behavior test cases.
Select the request types for inopportune validation.
Specify the inputs for performance validation.
Specify the inputs for stress validation.
Select Operation --> Automation Wizard from the menu bar to open the Automation Wizard.
Specify the validation options and click Next. Trap Wait Time represents the specific time allotted for trap validation.
Note: 1. Steps four to nine are optional. These steps, if not performed, will not validate V3 Security, Compliance, Behavior, Inopportune, Performance, and Stress test cases respectively.
2. Trial users are prevented from creating Regression package.
Running the Regression Package
Once you have packaged the configurations,
a zip file will be created in the name of the project at the following
<AgentTester Home>/ snmpprojects directory. Thus, the package created can be run either in the same host or in a different host in the network.
From the Same Host
Unzip this into a directory of your choice.
Execute the run.sh/bat to start validation.
From a Different Host
Copy the zip from file to a different host and extract it.
Copy the following jar files from <AgentTester Home>/ jars directory to the remote machine:
Edit the run.sh/bat and change the following configurations
JAVA_HOME variable to point to JRE1.4.2 or above (in your local host)
JARS_HOME to point the location of the copied jar files.
Save the changes and execute the run.sh/bat to begin validation.
Viewing the Validation Reports
The validation reports will be stored in a directory named with the date and time of the validation under testreports directory. Open the index.html to view the reports.
Viewing the Validation Reports from a Remote Host
If you have enabled mailing validation reports, an e-mail will be sent to the address specified in the mailing options. For viewing the validation reports from a remote machine, you have to start the Web server at the port number specified in the mailing options. Follow the steps given below:
Open a command prompt. Change directory to <AgentTester Home>/snmpprojects/<Project_Name>.
Execute the startServer.sh/bat
to start the Web server as shown below:
startServer -<port number>
where, <port number> is the port at which the Web server should be started. Please note that the port number should be same as specified in the mail settings.
Note: Executing the startServer.sh/bat will start a Web server at the port mentioned in the mailing options, which will be read from Regression.xml located under <AgentTester Home>/snmpprojects/<Project_Name> directory.
Modifying the Configuration
The details of the configuration of the regression package are stored in the Regression.xml. You can enable or disable the individual validations or change the mail configurations from here.
For example, if you do not want the Agent Tester to perform behavior validation, edit the Regression.xml and set behavior as false as shown below:
Similarly, you can enable or disable any of the validations as required by changing the tag value of that particular test.