Skip to navigation

Test files

Give a session a file to upload, and download what the app produces.

Some tests need a file: an image to upload, a document to import. Add it to the environment as a file variable, then name it in the brief.

  • A file can be up to 50 MB.
  • Files are for test data only. Never put a secret in a file.
  • When the app produces a file, such as an export, the session downloads it and checks it.

Steps

  1. Open your environment and its Variables tab, and add the file.
  2. Name it in the brief, for example “Upload $SAMPLE_INVOICE on the import page”.
  3. Read what the session did with it in the report.

Your coding agent can also give a session a file it needs, such as a requirements document or an image.

Next