I have a test case, where I need to test GKE (kubernetes) transition to another pod so a simple HA-test with frequent sequantial or parallel requests to see if the cloud loadbalancer handles its tasks.
Now, the Runner Results and Summary appears to react on Test cases, so that if Runner->service has a connection problem, the Runner Summary report does not show this.
Runner Results does show “An error occurred while running this request. Check Postman Console for more info.” per connection attempt.
This is a little bit hard to find if you have, say, 10,000 attempts and one connection failure.
So my, question is, at Postman Test level, how can I capture a connection failure?
My current test is:
pm.test(“Status code is 200 ad JSON OK”, function () {
pm.response.to.have.status(200);
const jsonData = pm.response.json();
pm.expect(jsonData).to.be.an(“object”);
});
BR, Timo