【发布时间】:2021-02-22 04:05:24
【问题描述】:
在使用“GetPreLoginBanner”关键字时,我遇到了错误
*** Settings ***
Library SSHLibrary
Testcase
${RemoteServer}= openconnection 127.0.0.1 port=2424
Login ubuntu ubuntu
${banner} = GetPreLoginBanner
Log ${banner}
错误:
FAIL : AttributeError: 'NoneType' object has no attribute 'decode'
Traceback (most recent call last):
File "c:\python27\lib\site-packages\SSHLibrary\library.py", line 1005, in get_pre_login_banner
return banner.decode(self.DEFAULT_ENCODING)
Ending test: Hits.Builtkeys.SSHLibrary.LoginBanner
谁能帮忙解决这个错误。
【问题讨论】:
标签: robotframework robotframework-sshlibrary