Welcome to Test-ON TestON tutorial!
By completing this tutorial, you will understand how to:
- Install Test-ONTestON.
- Create appropriate files to run test on Test-ONTestON.
- Create and run Test-ON TestON script.
- Create a Test-ON TestON driver.
Important Command Prompt Notes
In this tutorial, commands are shown along with a command prompt to indicate the subsystem for which they are intended.
indicates that you are in the TestON command line, whereas
Configuring Linux to run
- A Linux 2.6.26 or greater kernel compiled with network namespace support enabled (see INSTALL for additional information.)
python Python 2.6 or higher versions.
Install python package configObj using:
$ sudo pip install configObj
- Properly installed ONOS.
- Dependencies - ONOS, Python packages, Pox, Mininet, STS, etc. (Check out the Dependencies section in the Github wiki for more information)
- Prior knowledge of ONOS and Mininet
- Two or more VMs running Ubuntu Server
- Ssh log in without password
Stuck? Found a bug? Questions?
Clone the Test-ON from TestON from https://githubgerrit.onosproject.com/OPENNETWORKINGLAB/ONLabTest.git
Please configure mail server details before going to start working with Test-ON
- Open core/utilities.py file inside Test-ON Framework
- Check def send_mail(self) and configure the mail server and your credentials as mention below:
git clone https://gerrit.onosproject.org/OnosSystemTest
Run the install.sh script:
cd OnosSystemTest/TestON/ ./install.sh
Having installation problem? visit TestON FAQ for more information.
In the /TestON/bin folder run the cli.py :
You can execute help command for the to show the list of command in TestON :
Running the test on TestON:
teston> run PingallExample
or simply run your test when you execute cli.py:
$ ./cli.py run PingallExample
NOTE: Every time you run your test make sure you disconnect Mininet entirely by doing "sudo mn -c" command.