Upload a file in a web test
Upload a file in a web test: give the step the URL of the file, and the platform attaches it as if a user had picked it.
Use it to test any form that takes a file: a profile picture, an ID document, an import. Point the step at the upload field, or at its visible upload button. Instead of a file on your computer, you give the URL of the file: the platform downloads it, then attaches it to the field.
Parameters
| Parameter | Required | Description |
|---|---|---|
| Target element | Yes, unless a manual selector is set | The file input (or its visible upload control). The AI uses the description to find it. |
| File url path | Yes | URL of the file to upload. The file must be reachable from the agent running the test. Supports variables. |
| Manual selector | No | XPath or CSS selector, used when AI is disabled or as the saved selector. |
| AI usage | No | inherit (default, follows the test strategy), smart, or always. |
| Ignore error on this step | No | The run continues with the next step if this one fails. Default: off. |
Results and metrics
- Timing: start, end, and duration (in seconds), including the time to fetch and submit the file.
- Status: success, warning, or failed, with the error message on failure.
- Screenshot: captured after the upload.
- AI usage: if the AI located the element, the healed selector is saved on the test and the AI cost is added to the run.
What's next?
Last updated on