Hi there,I LOVED the k6 Musicaa demo at GrafanaCON. So much so that I’m trying to replicate it on my side however I’m hitting a blocker and wondering if anyone can give me guidance.
If it helps I’m on Linux, Pop!_OS 22.04 with Chrome installed.
I built a bundle with xk6 build --with github.com/grafana/xk6-browser
Created basic test.js script using the provided examples:
I’m not familiar with Pop!_OS, but from what I understand it uses Flatpak by default. Did you install Chromium via Flatpak?
If so, that might be the issue. We only officially support browsers running natively, and not under any sort of container layer like Flatpak, snapd or Docker.
Try installing Chromium as a native APT package. This Reddit thread might be helpful.
If you didn’t use Flatpak, then we might need to troubleshoot further. What does ls -al $(which chromium) and echo $PATH output?
After git cloning the repo and run ./update-and-run.sh was the latest chromium downloaded into latest dir.
alex@alex-tuxedoinfinitybooks1517gen7 on 27/09/2024 at 22:14:49_CEST /datadisk/git-repos/chromium-latest-linux $
ls -larth /datadisk/git-repos/chromium-latest-linux
total 56K
drwxr-xr-x 159 alex autologin 12K Sep 27 22:14 ..
-rwxrwxr-x 1 alex alex 694 Sep 27 22:14 update.sh
-rwxrwxr-x 1 alex alex 54 Sep 27 22:14 update-and-run.sh
-rwxrwxr-x 1 alex alex 119 Sep 27 22:14 run.sh
-rw-rw-r-- 1 alex alex 88 Sep 27 22:14 README.md
-rw-rw-r-- 1 alex alex 12K Sep 27 22:14 LICENSE
drwxrwxr-x 8 alex alex 4,0K Sep 27 22:14 .git
drwxrwxr-x 3 alex alex 4,0K Sep 27 22:14 1361320
lrwxrwxrwx 1 alex alex 21 Sep 27 22:14 latest -> 1361320/chrome-linux/
drwxrwxr-x 5 alex alex 4,0K Sep 27 22:14 .
drwx------ 32 alex alex 4,0K Sep 27 22:14 user-data-dir
Now was it possible to cal k6 with this the Environment variables as documented /docs/k6/latest/using-k6-browser/options/#environment-variable-options
The browser-test.js is the content of /docs/k6/latest/using-k6-browser/running-browser-tests/#run-a-test