/opt/cord/test
directory$ git clone https://gerrit.opencord.org/cord-tester
cd /opt/cord/test/cord-tester/src/test/setup sudo ./prerequisites.sh --cord
Most of the tests in cord-tester framework are written in python
and RobotFramework
. Few examples for test execution are shown below
cd /opt/cord/test/cord-tester/src/test/robot/ pybot SanityPhyPOD.robot
json
format which are present under /opt/cord/test/cord-tester/src/test/cord-api/Tests/data
cd /opt/cord/test/cord-tester/src/test/cord-api/Properties $ cat RestApiProperties.py SERVER_IP = 'localhost' SERVER_PORT = '9101' USER = 'xosadmin@opencord.org' PASSWD = ''
$ cd /opt/cord/test/cord-tester/src/test/cord-api/ $ pybot <testcase.txt>
test container
and sets up the environment in the container to run tests.cd /opt/cord/test/cord-tester/src/test/setup/ sudo ./cord-test.py setup -m manifest-cord.json
sudo ./cord-test.py run -t dhcp:dhcp_exchange.test_dhcp_1request
For more detailed explanations of the cord-tester options please check https://github.com/opencord/cord-tester/blob/master/docs/running.md