Created
August 31, 2019 16:04
-
-
Save avimehenwal/711f60e76a7aae0947cbacdf17b5e936 to your computer and use it in GitHub Desktop.
Robot Framework SSH example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** Settings *** | |
Documentation Robot Framework test script | |
Library SSHLibrary | |
*** Variables *** | |
${host} 192.168.120.141 | |
${username} root | |
${password} ${EMPTY} | |
${alias} remote_host_1 | |
*** Test Cases *** | |
Test SSH Connection | |
Open Connection ${host} alias=${alias} | |
Login ${username} ${password} delay=1 | |
Execute Command hostname | |
Close All Connections |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment