Setting Up CORD Tester Environment
Configure Automation Framework
Tests can be run directly from your local machine or from a different VM by exporting the configuration file for the target CORD servers.
cord-testerrepo using the following command:
git clone https://gerrit.opencord.org/cord-tester
Before executing any tests, proper modules need to be installed which can be done using the following command:
cd cord-tester/src/test/setup sudo ./prerequisites.sh --cord
Most of the tests in cord-tester framework are written in
RobotFramework. Few examples for test execution are shown below
Export the configuration file(file that was generated during kubernetes/helm installation)
cord-pod1.conffile is present in
Executing a sample test
cd cord-tester/src/test/robot/ pybot SanityK8POD.robot
Executing Control Plane Tests
Each control plane test uses input data in
jsonformat which are present under
Before running control plane tests, a properties file need to be edited as shown below. Update the following attributes accordingly
$ cd cord-tester/src/test/cord-api/Properties $ cat RestApiProperties.py SERVER_IP = 'localhost' SERVER_PORT = '30006' USER = 'firstname.lastname@example.org' PASSWD = ''
To run tests
cd cord-tester/src/test/cord-api/Tests/ pybot <testcase.txt>
For more detailed explanations of the cord-tester options please see Running Tests.