Uploading files while training a test

You can now test applications that involve uploading files by training tests that capture this action, exactly as an end user would do.

File Upload training must be done outside of InCognito mode

Tests containing file upload steps need to be trained in a regular browser window. File uploads in Incognito are not currently supported.

File Upload Size Limit

File upload is limited to a maximum size of 15 megabytes.

How to upload a file while training a test:

  1. Start by creating a test, load the trainer, and navigate to the page where the file upload needs to occur.
  2. Select your file normally (either by clicking a submit button on your webpage or by kicking off automatically via Javascript to upload the file after it is selected) and submit the form.
  3. You'll see that the trainer will have two new steps: one step to indicate that the file input field has been set to your file, and another step after the form submission to wait for the files to finish uploading before moving onto new steps.

Confirming that files have been uploaded

In order to view and manage the files that have been uploaded in appropriate tests, you can visit the "File Uploads" tab of the Configurations menubar. You can delete files at any time if they're unused in your tests.

FAQ's

Why are my files stored here?

We need to store these uploads for later test runs so that mabl will be able to perform these uploads during tests. The file capture is happening automatically in the background as you are training the test. Sometimes, it might take a few seconds for larger files to upload.

Are my files secure?

Yes, mabl automatically captures the files used during training and stores them in your workspace-encrypted bucket for use while running tests. You can read more about encryption details here.

Do file upload steps appear in replay mode?

Yes, when you go to edit a test to replay it, the trainer will download the file to your local computer. Then, during replay, it will access that file to complete the upload replay steps.

Under which browsers can I test file uploads in tests?

File uploads are available in all supported browsers, including Safari and Internet Explorer.

Will file upload work for drag-and-drop selection?

No, this functionality is not currently supported.

Can I select multiple files at the same time during training?

No, mabl is not able to pick up multiple files selected simultaneously as of now. You need to select the files one at a time to ensure that they are properly selected.

Are there any obvious edge cases to watch out for?

mabl has trouble working with certain types of automatic uploads, such as those involved with multiple API calls. We are working to close this gap!

How large of a file can I upload?

Uploads are supported up to 15 megabytes.

Uploading files while training a test


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.