安装:

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

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

相关文章:

  • 2021-07-30
  • 2021-07-29
  • 2021-08-01
  • 2022-01-17
  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-18
  • 2021-11-13
  • 2021-09-22
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案