Skip to content
kelvin-onlab edited this page Feb 5, 2015 · 17 revisions

TestON could be run on Linux platform

###Configuring Linux to run TestON :

Requirements:

  1. A Linux 2.6.26 or greater kernel compiled with network namespace support enabled (see INSTALL for additional information.)

  2. python 2.6 or higher versions.

Install python package configObj. It can be installed by following either of the way:

  1. $ sudo pip install configObj

  2. Provided the local copy of configobj-4.7.2 package in /lib/ directory.

    1. Install this package by running:

    python setup.py install

Note: pox and mininet components must be installed for the drivers to work. It is recommended that you have a openflow Virtual Machine installed as it is easier.

Clone the TestON from https://github.com/OPENNETWORKINGLAB/ONLabTest.git

Please configure mail server details before going to start working with TestON

  • Open core/utilities.py file inside TestON Framework
  • Check def send_mail(self) and configure the mail server and your credentials as mention below:

233: msg['From'] = '[email protected]'

250: smtp = smtplib.SMTP('Hostname/IP')

252: smtp.login('[email protected]','password')

Start the teston command-line by running the cli.py from the TestON/bin directory.

 ./cli.py

Finally, launch the test from the teston command-line.

 run TestName

Get full details about the CLI in TestON Interactive CLI

 openflow@ETH-Tutorial:~/TestON/bin$ ./cli.py
 teston>run PoxTest logdir /home/openflow/ mail [email protected]

You can always start learning by trying out a few examples under ~/examples/ directory. When running an example, use this command

 openflow@ETH-Tutorial:~/TestON/bin$ ./cli.py
 teston>run Topology example 1 mail [email protected]

Check out the how to write a TestOn test to learn more about TestOn

Clone this wiki locally