Connect to Linux terminal Version 1 (Python)
Action group: Processes
Description
The action forms a context - an instance of a Linux terminal session. The context is necessary for connecting other actions to the terminal.
Action forms context, supports connection parameters.
- To connect remotely, you must specify the IP address/Host, User Name and Password of the user account.
- It is necessary to create a new data type - "Linux Context".
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Host | The name or IP address of the terminal host to connect to. | Robin.String | Yes | |
Username | The user name of the account. | Robin.String | Yes | |
Password | The password of the user account. | Robin.Password | Yes | |
Results | ||||
Context | The instance of a Linux terminal session. | Robin.SshSession |
Special conditions of use
None.
Example of use
Task 1
Connect to the terminal by specifying incorrect parameters.
Solution
Set the "Connect to Linux terminal" action to the workspace
Set the parameters without specifying the host address/password.
Launch the robot.
Result
The action generates an error with the description: "Script construction error", "Password not set".
Task 2
Connect to the terminal remotely.
Solution
Move the "Connect to Linux terminal" action to the workspace.
Set the parameters correctly.
Launch the robot.
Result
The action generated a context with the specified connection data. The action did not generate an error.