script_generic_adaptor [TAST DokuWiki ]

User Tools

Site Tools


Sidebar

First steps in TAST

What is UML

Computer setup for TAST use

FAQ

Recognized Issues

TAST tool Menu

TAST Adaptors

Adaptors examples

TAST Integrations

Interesting features

Documentation of technical administration

Modeling recommendations

Training in the TAST tool

script_generic_adaptor

Script Generic Adaptor

Introduction

This Adaptor is used for executing scripts on remote or local machines, doesn't matter the Operative System is running in that machine.

Setup

In the initialization process, it's necessary to provide the information to connect with the machine. That is the Adaptor's information:

Initialization Parameters

  • User: User name 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.
  • Port: Port for the Ip address of the Host machine.
  • Connection_Type: Type of connection to the Host machine. For example: SSH (Secure connection).

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.
  • 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 otherwise. Leave the result in an output file in the execution Log along with the Screenshots if they have 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.
script_generic_adaptor.txt · Last modified: 2019/11/07 14:54 by montse