Hi
I have some troubles with the pm.sendRequest. I read thats not supported by the k6 but I have no idea how can I change that part of a code. How can I do that to make it work ? Here it is:
Which version of the converter are you using? I’m not very familiar with how it handles these scenarios. Does everything else work except that you get an error when calling pm.sendRequest()?
Since pm.sendRequest() is unsupported, you can use the k6 http module instead. See the documentation, specifically for http.post() and http.request(). You can use whichever is more comfortable.
Hey, imiric, I am just curious about one thing, if I use this method then it would be added in K6-Scripts.js manually, is there any workaround to send a request other than pm.sendRequest()? you will write in the postman test and after converting in k6 scripts, additional work will not be needed.
Are there any plans to update the converter to support pm.sendrequest() ? Since most postman requests / scenarios use pm.sendRequest to fetch a token before starting a collection.
Also, did anyone find a viable alternative that works for automatic conversion (so not using k6 http request inside K6 configuration)