You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, according to your instructions when implementing this in my GitHub Actions workflow I get some strange output. It doesn't show which URL is being targeted and I think it's targeting the base URL since I have setup the base URL to produce a 404 error because I don't use a rendering engine. But the API paths should be targeted and produce 200 and be tested, but that doesn't seem to work. I use Express as the framework.
This is the output I get until it timeouts:
> node server.js
npm WARN exec The following package was not found and will be installed: wait-on
Server started on http://localhost:3000
Press Ctrl-C to terminate...
HEAD / 404 6.135 ms - 19
HEAD / 404 1.606 ms - 19
HEAD / 404 1.269 ms - 19
HEAD / 404 1.325 ms - 19
HEAD / 404 1.148 ms - 19.
HEAD / 404 1.458 ms - 19
HEAD / 404 1.066 ms - 19
Perhaps I might have misunderstanding the usage of this test JS file that I built, but I used examples of https://k6.io/docs/using-k6/thresholds/ to test different ones with same result.
The text was updated successfully, but these errors were encountered:
@mstoykov I have maybe a somewhat related question about the wait-on recipe that you may be able to help with.
I have something running along the lines of: npm start-server & wait-on http://localhost:8080 && k6 run src/load-testing/test.js
The server starts, wait-on eventually kicks in and starts k6, and my tests finish. However, nothing is telling the server to stop at this point and the action runs indefinitely. Is there some clever way I can stop the server once my k6 tests are finished? I'd really rather not pull out the kitchen sink here with a process manager of sorts or write a script to spawn a child process.
Hi, according to your instructions when implementing this in my GitHub Actions workflow I get some strange output. It doesn't show which URL is being targeted and I think it's targeting the base URL since I have setup the base URL to produce a 404 error because I don't use a rendering engine. But the API paths should be targeted and produce 200 and be tested, but that doesn't seem to work. I use Express as the framework.
This is the output I get until it timeouts:
My loadTest.js file:
This is my GitHub workflow:
Perhaps I might have misunderstanding the usage of this test JS file that I built, but I used examples of https://k6.io/docs/using-k6/thresholds/ to test different ones with same result.
The text was updated successfully, but these errors were encountered: