My tests in k6 are returning a status 400 when run through the index.js file using group to combine all the tests into a single file. When I run each test separately they return the correct status code 200

Hello everyone!

My tests in k6 are returning a status 400 when run through the index.js file using group to combine all the tests into a single file. When I run each test separately they return the correct status code 200. Can anyone help me ?

Hi @guilhermemarinh

Welcome to the community forum :wave: and apologies for the late reply.

Could you share a bit more details?

  • Have you tried debugging the 400 errors? Seeing the difference in the requests might hint at what is different.
  • When you run the tests separately, how do you do it? Do you mean that just removing the group lines from the same default methods works?
    • A sample of the methods Visit, FreeSampleVisits would probably help us reproduce this. If you can share that, it might help us see what is the cause.

Cheers!