Save To Clipboard

This is a pre-built Action located under the @Generic Element. The functionality of this action in Avo Assure is to extract the data provided in the input value and copy it to the clipboard. The result is stored in the given dynamic variable for further use during test execution.

Syntax

Input Value: <Data to save on clipboard>

Argument
Description

<Data to save on clipboard> (Required)

Provide the value which you want to save in the clipboard.

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

Argument
Description

<Dynamic Variable>;<Dynamic Variable>(Optional)

Both dynamic variable stores the status as True or False.

Example 1: Saving Data to the System Clipboard

In this example, we explain how to save a specified value to the system clipboard for later use during test execution.

  • Action: Save To Clipboard

  • Input Value: Invoice 3457

    • The argument (Invoice 3457) specifies the exact data that will be copied to the system clipboard using this action.

  • Output Value: {Status}

    • The result of the save clipboard operation is stored in the {Status} dynamic variable with the following possible values:

      • True: If the data is saved to the system clipboard successfully.

      • False: If the data is not saved to the system clipboard successfully.

  • Logical Explanation: The Save To Clipboard action reads the value from the Input Value column (Invoice 3457). It copies this value to the system clipboard, making it available for use in subsequent steps during execution. The outcome of this operation (True) is stored in the {Status} variable.

Example 2: Copying a Dynamic Variable Value to the Clipboard

In this example, we explain how to copy the value stored in a dynamic variable to the system clipboard for later use during execution.

  • Action: Save To Clipboard

  • Input Value: {Order No}

    • The argument ({Order No}) specifies the dynamic variable whose value needs to be copied to the system clipboard.

  • Output Value: {Status}

    • The execution status of this action is stored in the {Status} dynamic variable, with the following possible values:

      • True: If the value is copied successfully.

      • False: If the value is not copied successfully.

  • Logical Explanation: The Save To Clipboard action reads the value from the Input Value column ({Order No}). It copies this value to the system clipboard, making it available for use in subsequent steps during execution. The result of this operation (True) is stored in the {Status} variable.

Note: In this example, a test step with the Create Dynamic Variable action is used to verify that the dynamic variable contains a value before copying it to the clipboard.

Last updated

Was this helpful?