4.9.2 Automation Wizard



 

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:

  1. Create a project.

  2. Provide the agent information.

  3. Load the MIBs.

  4. Add users for V3 security validation.

  5. Select the V3 compliance groups.

  6. Define and select the behavior test cases.

  7. Select the request types for inopportune validation.

  8. Specify the inputs for performance validation.

  9. Specify the inputs for stress validation.

  10. Select Operation --> Automation Wizard from the menu bar to open the Automation Wizard.

  11. Specify the validation options and click Next. Trap Wait Time represents the specific time allotted for trap validation.

  12. This screen lets you to specify the mailing options. Select the Enable mailing validation report check box and specify the following options:
    1. WebServer Port for viewing reports: Specifies the port number at which a Web server will be started for viewing the reports from remote hosts.
    2. To, CC, Bcc: E-mail addresses to which the mail has to be sent.
    3. Subject: Subject of the mail.
    4. Content: The content of the mail. Here <URL> will be replaced with the actual URL of the report. For viewing reports through this URL, you should start the Web server in the port number specified above (12.1).  
    5. Mail Server: Name of the mail server.
  13. If e-mail option is not required, you can deselect the Enable mailing validation report check box and click Next.
  14. Click Finish when the packaging is complete.

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 location:
<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

    1. Unzip this into a directory of your choice.

    2. Execute the run.sh/bat to start validation.

 

From a Different Host

    1. Copy the zip from file to a different host and extract it.

    2. Copy the following jar files from <AgentTester Home>/ jars directory to the remote machine:

      1. AdventNetRuntimeUtilities.jar

      2. AdventNetAgentTestServer.jar

      3. AdventNetSnmp.jar

      4. crimson.jar

      5. jaxp.jar

      6. xalan.jar

      7. QEngineAPITestServer.jar

      8. QEngineServerFramework.jar

      9. org.mortbay.jetty.jar

      10. javax.servlet.jar

      11. activation.jar

      12. Mail.jar

      13. AdventNetLogging.jar

    3. Edit the run.sh/bat and change the following configurations

      1. JAVA_HOME variable to point to JRE1.4.2 or above (in your local host)

      2. JARS_HOME to point the location of the copied jar files.

    4. 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:

  1. Open a command prompt. Change directory to <AgentTester Home>/snmpprojects/<Project_Name>.

  2. 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:

 

<Behavior>false</Behavior>

 

Similarly, you can enable or disable any of the validations as required by changing the tag value of that particular test.



Copyright © 2009, ZOHO Corp. All Rights Reserved.