Upload File

This is a pre-built Action located under the captured button element. The functionality of this Action in Avo Assure is to upload the specified file. The result is stored in a dynamic variable for further use during test execution.

Syntax

Input Value: <FolderPath>;<FileName>;<Wait(in seconds)>

Argument
Description

<FolderPath>

Provide the path of the file you want to upload.

<FileName>

Provide the name of the file you want to upload.

<Wait (in seconds)>

Provide the time (in seconds) to wait before uploading the file.

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

Argument
Description

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

Both dynamic variable stores the status as True or False.

Note: When uploading a file to the application, specify the wait time in seconds. The upload starts automatically after the specified wait time.

Example: Uploading a File to a Specified Location

In this example, we explain how to perform a file upload operation at a specified location using the Upload File action.

  • Action: Upload File

  • Input Value: C:\Users\Documents;Sample.pdf;2

    • The file path (C:\Users\Documents) specifies the folder path where the file is located.

    • The file name (Sample.pdf) represents the name of the file to be uploaded.

    • The wait (2) defines the wait time (in seconds) before initiating the upload operation.

  • Output Value: {Status}

    • The result of the double click operation is stored in this {Status} dynamic variable with the following possible values:

      • True: If the file is uploaded successfully.

      • False: If the file is not uploaded successfully.

  • Logical Explanation: The Upload File action takes the value from the Input Value column (C:\Users\Documents;Sample.pdf;2) and uploads the specified file (Sample.pdf) from the given path after waiting for the defined duration (2 seconds). The outcome of this operation is stored in the {Status} variable as true.

Last updated

Was this helpful?