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
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.