For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get Shell Text

This is a pre-built Action located under the Captured Shell Element. The functionality of this Action in Avo Assure is to fetch the complete text available in the shell element and store the result in a dynamic variable.

Syntax

Input Value: N/A

Argument
Description

N/A

Not Applicable

Output Value: <Dynamic Variable>;<Dynamic Variable>(Optional)

Argument
Description

<Dynamic Variable> (Required)

This dynamic variable stores the retrieved shell text.

<Dynamic Variable> (Optional)

This dynamic variable stores the status as True or False.

Example: Retrieving Shell Text

In this example, we explain how to retrieve text displayed in the shell or terminal screen.

  • Action: Get Shell Text

  • Input Value: N/A

    • This action does not require any input value.

    • The action automatically retrieves the text available from the active shell or terminal session.

  • Output Value: {ShellText}

    • The first output variable ({ShellText}) stores the retrieved shell text.

    • If a second output variable is provided, the action returns the status as True or False:

      • True: If the shell text is retrieved successfully.

      • False: If the shell session is not available or no text is found.

  • Logical Explanation: The Get Shell Text action retrieves the text displayed in the active shell or terminal screen without requiring any input value. The action stores the fetched shell text in the {ShellText} variable.

Last updated