Executing tests in k6 Cloud which will upload a data file to the System Under Test (SUT).
In order to upload a file needed for your test to execute you will need to install k6 locally which will act as a CLI between your machine and the k6 Cloud.
For detailed instructions and the different options, read more on running cloud tests from the CLI.
first option would be to Use the open() scripting API to open a CSV/JSON/TXT file:
more info here: open
another possibility is to Put the data in a JS file and import it as a module:
For more information on data uploads in k6 read data uploads.