++++++++++++++++++ netconf automation ++++++++++++++++++
Installation:
Make sure to run "sudo apt-get update" before installing the packages.
- Install python(atleast Python 2.7.6)
- Install python-nose(apt-get install python-nose)
- Install git(apt-get install git)
- Install python-paramiko(apt-get install python-paramiko)
- Install python-lxml(apt-get install python-lxml)
- Install libffi-dev(apt-get install libffi-dev)
- Install libssl-dev(apt-get install libssl-dev)
- Install cryptography(apt-get install python-crypto)
Commnds to invoke automation:
- Clone the testsuite from git - https://github.com/terafastnetworks/netconf
- Go to the directory - ~/netconf/
- Modify the config.txt file as per your switch type(eg: IP, login username, password, OXC ports, etc)
- Use python nosetests to run automation testsuites
nosetests command:
- nosetests -s python_file.py
- nosetests -s python_file.py:class_name
- nosetests -s python_file.py:class_name.function_name python_file_2.py:class_name.function_name