blob: 9bbb37a80683a09fd5528a70c340adf6f709fcda [file] [log] [blame]
George Keishing0fff68a2017-04-27 22:25:49 -05001*** Settings ***
2Documentation 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
6Resource ../lib/utils.robot
7
8*** Variables ***
9
10*** Keywords ***
11
12Execute 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
20Login 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