Also, see this answer in another thread: Question on http.get - #6 by mark
You can generate a HAR file in Chrome, Firefox or other tools, which is a recording of the requests made in a user session of your app, and then use the k6 convert
command to convert the HAR file to a k6 JS script, which can be run as usual.
See the following links for details:
- Using the HAR converter
- Using the HAR converter
- Using the HAR converter
- GitHub - grafana/har-to-k6: JSON config representation of K6 script (an alternative standalone variant of
k6 convert
)