Table Of Contents
Overview
- Ixia has samples Robot scripts to execute High Level APIs
- Robot framework is supported starting with IxNetwork 8.20 patch 1
Python Robot Installation
- In your Python's installation /bin folder
- For example: /usr/local/python3.4.6/lib/python3.4/site-packages
- sudo ./pip install robotframework
Ixia High Level API Installation
- Set up your environment the same way you do for High Level API usage.
- If you need to set up Ixia's High Level API on your Linux environment, click here
- Scroll down to the version that you need
- Download the Linux: All-In-One API tar file
- Follow step 2, step 3 and step 4
Ixia's Robot Plugin File
- Copy the Ixia's Robot plugin file to your Python's installation site-package folder or to a know search path
- Go to your installation path: <Your installation path>/ixia/hlapi/8.20.134.6/library/common/robot_plugin
- Copy the file IxHLRbot.py to either your python's site-packages folder or to a known search path.
How To Create A Python Robot File
- Create a file with an extension .robot
- In the robot file at the top, use the Robot's **Library keyword** for importing.
- For example, this line will call the Class IxHLRobot and pass in the parameter values:
- You could also use absolute path with filenames also
- ngpf at the end means the mode to use: ngpf or classic
- USE DOUBLE SPACING! Everything needs to be double spaced unless it's a function call
For example:
How To Execute a Robot File
- Enter: robot <filename>.robot
How To View The HTML Log File
- Enable HTTPD service on your Linux
- Know where your **Document Root** is configured in the httpd.conf file
- On your web browser, enter: file:////log.html