- Request a signed upload URL from the QA Wolf API
- Upload your file directly to that URL
Prerequisites
- Your
QAWOLF_API_KEY— available underWorkspace Name→ Workspace Settings → Integrations → API Access
Step 1: Generate a signed URL
Make aGET request with the filename (including extension) as the file query parameter.
signedUrl — you’ll use it in the next step.
The signed URL is temporary. Upload your file promptly after generating it.
Step 2: Upload the file
Use thesignedUrl from Step 1 to upload your file via a PUT request.
Use an uploaded file in a flow
Mobile apps
Reference the uploaded file using theRUN_INPUT_PATH environment variable, which is set automatically when a file is uploaded via the API.
For mobile testing, the best approach is to upload new builds automatically as part of your CI/CD pipeline rather than uploading manually. See Integrating your mobile CI pipeline for how to set this up.
Web file upload
Use Playwright’sfilechooser event to intercept the file dialog and set the uploaded file programmatically.
Use
page.once rather than page.on. page.once registers a one-time event listener that automatically unregisters after the first use. Using page.on adds a persistent listener that may interfere with subsequent file uploads in the same flow.PDF viewing
Use the internal PDF viewer to open an uploaded PDF file in a flow.Supported file types
Mobile apps (.apk, .aab, .ipa)
Mobile apps (.apk, .aab, .ipa)
Use a static filename based on the environment (e.g.,
app-staging.ipa) so tests always reference the latest build. See Integrating your mobile CI pipeline for how to automate this as part of your build process.ZIP archives (.zip)
ZIP archives (.zip)
ZIP files can be used to bundle multiple assets for a single upload. Ensure the contents follow any structure expected by the tests that will consume them.
CSV files (.csv)
CSV files (.csv)
CSV files are typically used as test data inputs. Use a consistent filename so flows always pick up the latest version.
PDF files (.pdf)
PDF files (.pdf)
PDF files can be uploaded for use in test flows that involve document handling or validation.