I'm trying to get the output of a Telnet.Execute Command
my telnet connection is inside of a SSH connection.
If I try ${saida}= SSHLibrary.Execute Command ls
I can get the output of the ls
command but if I try ${saida}= SSHLibrary.Execute Command Telnet.Execute Command dir
I was expecting that the output of the dir
[on the Telnet.Execute Command
] command was passed to the SSHLibrary.Execute Command
but it is not.
How can I get the output of the Telnet.Execute Command
?
Library SSHLibrary
Library Telnet
Suite Setup Open Connection And Log In
Suite Teardown SSHLibrary.Close All Connections
*** Variables ***
${HOST} OMITTED.70
${Other-Host} OMITTED.1
${OTHER-USERNAME} OMITTED
${OTHER-PASSWORD} OMITTED
${USERNAME} OMITTED
${PASSWORD} OMITTED
*** Test Cases ***
Acessando OLT para testes
SSHLibrary.Execute Command Telnet.Open Connection ${Other-Host}
SSHLibrary.Execute Command Telnet.Login ${OTHER-USERNAME} ${OTHER-PASSWORD} password_prompt=password
Verificando a saída do terminal
${saida}= SSHLibrary.Execute Command Telnet.Execute Command dir
BuiltIn.Log to console ${saida}
*** Keywords ***
Open Connection And Log In
SSHLibrary.Open Connection ${HOST}
SSHLibrary.Login ${USERNAME} ${PASSWORD}