Skip to content

Research using k6 browser to test the browser extension #638

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
allansson opened this issue Apr 9, 2025 · 0 comments
Open

Research using k6 browser to test the browser extension #638

allansson opened this issue Apr 9, 2025 · 0 comments
Assignees

Comments

@allansson
Copy link
Collaborator

What?

Testing the browser extension is tedious work and as complexity grows, covering every corner-case is going to be impossible. We need to find a way to test that the events captured during recording are correct and don't change unexpectedly during development.

Ideally we could dogfood k6 browser to test the extension. It's already possible to pass custom arguments to chromium so it should be possible to side-load the extension similar to how we do it in k6 Studio.

The bigger problem (aside from k6 browser lacking comforts like test suites) lies in getting the recorded events from the extension. A solution could be to expose a function in the web page that k6 browser could call using eval.

Criteria for considering it done

We should have a good idea if it's possible to do and if not, we should at least have an idea of the alternatives. If it's possible, it would be nice to have a proof of concept running a single test.

@allansson allansson added this to the Browser Recording milestone Apr 9, 2025
@allansson allansson self-assigned this Apr 9, 2025
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

No branches or pull requests

1 participant