grafana / xk6-browser

The browser module adds support for browser automation and end-to-end web testing via the Chrome Devtools Protocol to k6.
https://grafana.com/docs/k6/latest/javascript-api/k6-browser/
GNU Affero General Public License v3.0
344 stars 41 forks source link

WIP: Experiment working with VU Context to control the iteration lifecycle #1411

Closed ankur22 closed 2 months ago

ankur22 commented 3 months ago

What?

This is WIP

Experiment working with VU Context to control the iteration lifecycle. This change doesn't affect the browser lifecycle which should still be handled by the event system. This avoids working with a new abort event.

Why?

The VU context is easier to work with then a potential new abort event since it was designed to to specifically control the lifecycle of the iteration.

Checklist

Related PR(s)/Issue(s)

Updates: https://github.com/grafana/xk6-browser/issues/1410

ankur22 commented 2 months ago

New PR with tested changes are in https://github.com/grafana/xk6-browser/pull/1420