robotframework
以下一段很正常代码总出现问题
SSH
登录防火墙
Switch Connection firewall
Set Client Configuration prompt=xxxxx> height=9999 timeout=30s
Comment Read Until Prompt
Write show xxxxx
${log} Read Until Prompt
Starting test: Myprogram.DNP test.SSH
20190719 17:57:13.125 : INFO : Logging into '172.xx.xx.xx:22' as 'admin'.
20190719 17:57:15.402 : INFO : Read output:
20190719 17:57:15.464 : INFO : show xxxxx
20190719 17:57:15.930 : INFO : xxxx>
20190719 17:57:15.930 : INFO :
${log} =
xxxx>
Ending test: Myprogram.DNP test.SSH
上述没有输出,就找到了Prompt值退出了
原因不明确,只能猜测,是进入防火墙,立刻就写,立刻Read Until Prompt
某种原因,由于write未下发成功,未下发成功可能是因为太快了,和设备见的连接未完全成功
没看代码,怀疑