在使用“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
有人可以帮助解决这个错误。