A file upload step can now set more than one file on the same input. Use multi-file upload to test scenarios that require uploading a batch of files in one step, just like a real user might do in your app.
When a page's file input accepts multiple files, the Trainer's file selection modal builds a list from the files you choose. Each entry can come from a different source, so one step can combine a workspace upload, local file, file downloaded earlier in the test, or file variable.
Try it out
On the latest version of the mabl Desktop App:
- In the Trainer, click a file input on your page that accepts multiple files. mabl intercepts the file picker and opens the file selection modal.
- Choose a File source and a file. The file joins the list of files the step will set, and the picker clears so you can choose the next one.
- Repeat for each file you want to upload. To drop one, select the X beside it.
- Click Select to record the step.
To change which files a step sets, click on the pencil to edit the step. The list in the file picker menu arrives pre-filled with the files the step already holds. Add and remove files as needed.
Inputs that accept a single file are unchanged, and so is the form for choosing that file. To upgrade an existing step to upload multiple files, re-click the file input on the page to train a new step.
Note
Multi-file uploads are supported for browser tests only.