grafana / xk6-browser

k6 extension that adds support for browser automation and end-to-end web testing via the Chrome Devtools Protocol

Home Page:https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parameterise the HTTP request for uploading screenshots to a remote location

ankur22 opened this issue · comments

What?

At the moment we can setup almost everything required to upload a screenshot to a remote location:

  1. presignedURLGetter (used to retrieve the)
  2. the folder name (base path)
  3. Headers

What we do not have is the HTTP request method. It would be good if the http request was parameterised too (for both the presignedURLGetter and the presignedURL).

Why?

This will avoid having to make a change to k6 browser and wait for a release to change the screenshot upload remote URL characteristics.

How?

  1. The http request method will need to be added to an env var, maybe just append it to the existing env var (K6_BROWSER_SCREENSHOTS_OUTPUT).
  2. For the presignedURL itself, it would be good to have the request method type returned with the presigned url.

Tasks

Tasks

Related PR(s)/Issue(s)

No response