Skip to content

[MPC-293] Clarify test data file access in k6 scripts#403

Merged
tsobe merged 1 commit intomasterfrom
feature/MPC-293-fix-k6-testdata-docs
Jan 9, 2026
Merged

[MPC-293] Clarify test data file access in k6 scripts#403
tsobe merged 1 commit intomasterfrom
feature/MPC-293-fix-k6-testdata-docs

Conversation

@tsobe
Copy link
Contributor

@tsobe tsobe commented Jan 8, 2026

Adds clarification that test data files uploaded via testData field are accessible in k6 scripts using the hardcoded filename testdata, not the original uploaded filename.

@tsobe tsobe marked this pull request as ready for review January 8, 2026 17:29
1. Prepare your test data in a `.csv` file
2. Configure test script accordingly. See [the k6 data parameterization from a CSV file example](https://k6.io/docs/examples/data-parameterization/#from-a-csv-file).
* **Important**: _"k6 doesn't parse CSV files natively, but you can use an external library, [Papa Parse](https://www.papaparse.com/)."_
* **Important**: When accessing the test data file in your k6 script, use the hardcoded filename `testdata` (e.g., `open('testdata')`), not the original filename you uploaded.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tsobe tsobe merged commit 458693a into master Jan 9, 2026
6 checks passed
@tsobe tsobe deleted the feature/MPC-293-fix-k6-testdata-docs branch January 9, 2026 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants