Upload File to Application

This is a pre-built Action located under the captured image element. The functionality of this action in Avo Assure is to upload a file from the specified local system path to the application. The result is stored in the given dynamic variable for further use during test execution

Syntax

Input Value: <File path>;<File name>;<Wait (in seconds)>

Argument
Description

<File path> (Required)

Provide the path or location of the file you want to access from the local system.

<File name> (Required)

Provide the name of the specific file you want to upload.

<Wait (in seconds)> (Optional)

Provide the time in seconds you want to wait before the action is performed.

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.

Example: Uploading a File to the Target Application Window

In this example, we explain how to perform a file upload operation in the target application window by providing the required file path, file name, and wait time.

  • Action: Upload File to Application

  • Input Value: C:\Documents;report.pdf;5

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

    • The second argument (report.pdf) specifies the name of the file to be uploaded.

    • The third argument (5) specifies the wait time (in seconds) allowed for the upload operation to complete.

  • Output Value: {Status}

    • The result of the upload operation is stored in the {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 to Application action reads the folder path, file name, and wait time from the Input Value column (e.g., C:\Documents;report.pdf;5). The action locates the specified file in the provided folder path and attempts to upload it to the target application during execution. The wait time determines how long the action should wait for the upload process to complete. The result of the upload operation (True) is stored in the {Status} variable.

Last updated

Was this helpful?