Skip to content

Instantly share code, notes, and snippets.

@avimehenwal
Created August 31, 2019 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avimehenwal/711f60e76a7aae0947cbacdf17b5e936 to your computer and use it in GitHub Desktop.
Save avimehenwal/711f60e76a7aae0947cbacdf17b5e936 to your computer and use it in GitHub Desktop.
Robot Framework SSH example
*** 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