Exit codes 127 and 255 in Robot Framework

1.5k views Asked by At

Exit Code: 255, 127 returned when ssh is used to execute a command in a remote server in RobotFramework. The command is not inbuilt command but the absolute path is provided.

*** Test Cases ***
open_connection_and_login
    Open Connection  ${HOST}
    Login  ${USERNAME}  ${PASSWORD}
    ${res}=  Execute Commmand  cmd test.qoc
    log to console  ${res}
    Close All Connections

cmd is a command which is not built-in shell command

1

There are 1 answers

0
Sai Vikhyath On BEST ANSWER

To execute commands that are not built-in. Directly write them to the terminal using "Write" keyword.

Use Write keyword in SSHLibrary. It pastes the command on the terminal and the command gets executed.