Robot Framework自动化测试SSHLibrary简单示例使用

安装:

pip install --upgrade robotframework-sshlibrary

参考:

http://robotframework.org/SSHLibrary/SSHLibrary.html#Importing

*** Settings ***
Library           SSHLibrary

*** Test Cases ***
SSHLogin
    SSHLibrary.Open Connection    10.1.1.1
    SSHLibrary.Login    root    12345678
    ${output}    SSHLibrary.Execute Command    pwd
    Log    ${output}
    SSHLibrary.Close Connection

posted @ 2022-01-06 20:35  船长博客  阅读(436)  评论(0编辑  收藏  举报
永远相信美好的事情即将发生!