Handling File Uploads in Functionize

Overview

Functionize Architect allows you to test workflows that involve uploading files. When you record a test, Architect captures the upload action, but it does not store the actual file within the test case. For this reason, you must associate the desired file with the test step before execution.

How It Works

The 'Upload' action is not a tool you select from the Architect menu. Instead, it is automatically recorded when you interact with a file input element on your application during a recording session. Architect captures this as an 'Upload' action, which behaves similarly to an 'Input' action.

To record and configure a file upload:

  1. During a recording session, click the 'Upload' button or file input field on the web page.
  2. Select a file from your local system when the file selection dialog appears. Architect will automatically capture this interaction.
  3. After recording, open the test case and navigate to the 'Upload' step.
  4. Edit the step to open its details. While the name of the originally uploaded file is saved, the file content is not.
  5. Use the provided option to upload and attach the file you want to use for test execution.
  6. Save the changes to the step. The file is now associated with the step for test runs.

Limitations

The key limitation is that files are not permanently stored with the test case. You will need to re-attach the file to the 'Upload' step if you copy the test or before subsequent test runs if the file is no longer associated.

Related Information

The Functionize File Viewer is a separate tool found in the Advanced Actions sidebar. It is used for scenarios where you need to upload and view file content for verification.