George Keishing | 0fff68a | 2017-04-27 22:25:49 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Keywords for system related test. This is a subset of the |
| 3 | ... utils.robot. This resource file keywords is specifically |
| 4 | ... define for system test use cases. |
| 5 | |
| 6 | Resource ../lib/utils.robot |
| 7 | |
| 8 | *** Variables *** |
| 9 | |
| 10 | *** Keywords *** |
| 11 | |
| 12 | Execute Command On OS |
| 13 | [Documentation] Execute given command on OS and return output. |
| 14 | [Arguments] ${command} |
| 15 | ${stdout} ${stderr}= Execute Command ${command} return_stderr=True |
| 16 | Should Be Empty ${stderr} |
| 17 | [Return] ${stdout} |
| 18 | |
| 19 | |
| 20 | Login To OS |
| 21 | [Documentation] Login to OS Host. |
| 22 | [Arguments] ${os_host}=${OS_HOST} ${os_username}=${OS_USERNAME} |
| 23 | ... ${os_password}=${OS_PASSWORD} |
| 24 | # Desription of arguments: |
| 25 | # ${os_host} IP address of the OS Host. |
| 26 | # ${os_username} OS Host Login user name. |
| 27 | # ${os_password} OS Host Login passwrd. |
| 28 | |
| 29 | Open Connection ${os_host} |
| 30 | ${resp}= Login ${os_username} ${os_password} |
| 31 | [Return] ${resp} |
| 32 | |