In the collection the first request uploads photo, then the second one should take some data from the firs request’s response.
So when I run the collection via Runner it fails to upload photo and consequently the second request fails again as the photo is not uploaded.
The screenshot of console log is attached
No. I upload photo (.jpg) in body as file from computer.
When I send the request manually I receive the expected response. - photo uploads correctly but when I run the collection I am receiving the response that showed above.
I don’t think the issue is linked with environment.
Same issue here. When I send the requests manually it works. When I run them through Collection Runner, I don’t get the same result. What does Collection Runner do differently?
I’m having the exact same issue described above. In the builder I can manually send a request which POSTs an image. To do so, I went to the body of the request, changed the key type to “file” and then clicked “select file”. Manually sending this request works flawlessly.
If I run the same request in the runner, it fails (presumably because the image is not being sent) Do I need to do anything special for the runner to use the image that I chose in the builder?
You need to make sure your file is in the working directory. You can look at where that is by going to settings (ctrl+,) and referencing the configuration.
Perhaps a timing problem. I’m not sure what capabilities the Runner had in Dec '19, however now there is a Delay (ms) field that waits after each call.
I had the same issue running it by itself worked, but running it in the runner I got that same error. Putting the files in the working directory worked running in the Runner
I am having the same problem, but I’m not trying to add a file. I am just trying to validate the 200 status error code. It works when running manually, but does not work when I run as a collection.
pm.test(“Status code is 200”, function () {
pm.response.to.have.status(200);
});
When I run as a collection, I receive …
“Status code is 200 | AssertionError: expected response to have status code 200 but got 500”
At one time this test worked, I know I exported the test results, but not sure if that changed anything.
I am also facing the same issue, when I send the get requests manually it works. When I run them through Collection Runner I am getting an error “TypeError: Cannot read properties of undefined (reading ‘quotes’)”. I am storing the values in environment variable from previous request and passing the same variable in this request.