I run Cypress UI tests locally and in a GitLab pipeline. I want to put them under performance measuring. I am not very experienced with that. What is the best way to do that?
I tried to launch k6 from my Cypress tests but it seems like Cypress prevented the browsers from delivering the results and deactivated plugins during runtime (separate issue -> How to run Cypress UI and API tests under k6 performance measuring control?). What do I have to do to do it correctly?
Could I do it the other way round – steering Cypress from k6? How? Would that be better?
I tried JMeter also. I set up Thread Groups, HTTP Requests, View Results … , launched my Cypress script with
npm run test:my-test && jmeter -n -t /c/tmp /apache-jmeter-5.6.3/test_plans/My\ Test\ Plan.jmx -l "C:\tmp \apache-jmeter-5.6.3\MyProject\results.jtl" but it did not write out the result files. How shall I do this properly?
test:my-testtask and after it has completed (successfully), it launches jmeter.