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

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
HostThe name or IP address of the terminal host to connect to.Robin.String
Yes
UsernameThe user name of the account.Robin.String
Yes
PasswordThe password of the user account.Robin.Password
Yes
Results
ContextThe 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

  1. Set the "Connect to Linux terminal" action to the workspace


  2. Set the parameters without specifying the host address/password. 


  3. 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

  1. Move the "Connect to Linux terminal" action to the workspace.


  2. Set the parameters correctly.


  3. Launch the robot.



 


Result

The action generated a context with the specified connection data. The action did not generate an error.


  • Нет меток