Sai Vikhyath
Sai Vikhyath

Reputation: 31

Exit codes 127 and 255 in Robot Framework

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

Upvotes: 1

Views: 1763

Answers (1)

Sai Vikhyath
Sai Vikhyath

Reputation: 31

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.

Upvotes: 1

Related Questions