Zack Williams | 821c502 | 2020-01-15 15:11:46 -0700 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Tests for the CORDRobot library |
| 3 | Library OperatingSystem |
| 4 | Library CORDRobot |
| 5 | Library ImportResource resources=CORDRobot |
| 6 | |
| 7 | *** Test Cases *** |
| 8 | Test list resources |
| 9 | [Documentation] Lists all resources loaded |
| 10 | ${res}= ImportResource.external_resources |
| 11 | Log To Console ${res} |
| 12 | |
| 13 | Test loading of CORDRobot Python Functions |
| 14 | [Documentation] Check if __init__.py function work |
| 15 | ${ver}= CR_Version |
| 16 | Log To Console ${ver} |
| 17 | |
| 18 | Test loading of testCaseUtils |
| 19 | [Documentation] Check if testCaseUtils.py functions work |
| 20 | ${fields}= CORDRobot.parse_fields foo,bar , |
| 21 | Log To Console ${fields} |
| 22 | |
| 23 | Test loading of CORDDictUtils |
| 24 | [Documentation] Check if CORDDictUtils functions work |
| 25 | ${json}= CORDRobot.jsonToList ${CURDIR}/test.json test |
| 26 | Log To Console ${json} |
| 27 | |
| 28 | Test loading of restApi |
| 29 | [Documentation] Check if restApi functions work |
| 30 | ${url1}= CORDRobot.getURL CORE_NODES |
| 31 | Log To Console ${url1} |
| 32 | Set Environment Variable CORDROBOT_TEST /cord_robot_test/ |
| 33 | ${url2}= CORDRobot.getURL CORDROBOT_TEST |
| 34 | Log To Console ${url2} |
| 35 | |
| 36 | Test Validate Loading of CORDRobot Resources |
| 37 | [Documentation] Validates that the .resource files distributed by |
| 38 | ... CORDRobot can be invoked |
| 39 | Execute Command Locally echo "Able to run Execute Commnd Locally" |