User Tools

Site Tools


script_generic_adaptor

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

script_generic_adaptor [2019/11/07 14:54]
montse
script_generic_adaptor [2025/03/07 10:07] (current)
ale
Line 13: Line 13:
 ===== Initialization Parameters ===== ===== Initialization Parameters =====
  
-        * **User:​** ​User name authorized to access to the Host machine. +        * **User:​** ​user name authorized to access to the Host machine. 
-        * **Password:​** ​Password ​of a user authorized to access to the Host machine. +        * **Password:​** ​password ​of a user authorized to access to the Host machine. 
-        * **Host:​** ​Ip address of the Host machine. +        * **Host:​** ​IP address of the Host machine. 
- * **Port:​** ​Port for the Ip address of the Host machine. + * **Port:​** ​port for the IP address of the Host machine. 
- * **Connection_Type:​** ​Type of connection to the Host machine. For example: SSH (Secure connection).+ * **Connection_Type:​** ​type of connection to the Host machine. For example: SSH (Secure connection).
   
 ===== Functions ===== ===== Functions =====
  
-  * **connect_Script():​** ​Makes an attempt to connect to the SSH server. Returns true if it succeeds or false otherwise. It does no requires parameters as it utilizes the adaptor ones.+  * **connect_Script():​** ​makes an attempt to connect to the SSH server. Returns true if it succeeds or false otherwise. It does no requires parameters as it utilizes the adaptor ones.
   ​   ​
-  * **disconnect_Script():​** ​Performs ​disconnection of the SSH server. Returns true if it succeeds or false otherwise. It does no requires parameters. ​+  * **disconnect_Script():​** ​performs ​disconnection of the SSH server. Returns true if it succeeds or false otherwise. It does no requires parameters. ​
  
-  * **execute_Script(Script):​** ​Picks up the command that allows you to execute the script. Returns ​true if the execution ​was successful or false otherwiseLeave the result in an output ​file in the execution Log along with the Screenshots ​if they have been requested.+  * **execute_Script(Script):​** ​gets the command that allows you to execute the script. Returns ​a String with the result of the script ​execution. ​It generates a file “ScriptResultsStep.txt” ​in the same directory as the logs, if evidence has been requested.
  
-  * **newConnect_Script(Username,​ Password, Host, Port, Connection_Type):​** ​Allows ​defining a new connection with a different SSH server, using the same parameters that are used in the initialization of the Adapter. Returns true if successful or false otherwise.+  * **newConnect_Script(Username,​ Password, Host, Port, Connection_Type):​** ​allows ​defining a new connection with a different SSH server, using the same parameters that are used in the initialization of the Adapter. Returns true if successful or false otherwise.
  
  
  
script_generic_adaptor.1573138461.txt.gz · Last modified: 2019/11/07 14:54 by montse