The Problem:
When using a flow to automate testing, some requests specific tests are being missed. The missed tests are consistent and get in the way of making sure things work. Does anyone know why this happens?
No, I never found a solution. Ultimately, I decided that Flows were entirely incapable of meeting the needs of my project (for many reasons besides this one), so I haven’t made any more attempts to look for a fix.
I just did a quick test to find out what could be the problem:
I just created a Request, put in 6 tests that are exactly the same but have different names. It turns out that Postman will abruptly stop after the third test when running the Request from a Flow, without any apparent reason whatsoever.
See the tests written for the Health: Success Request and 6 tests happily Passing when sent manually:
I tested it like I’ve described above because I couldn’t find out why some things in my scripts weren’t being logged to the console. Inserting some basic log statements like this:
into my script at the point at which it terminates unexpectedly also resulted in a log containing only a certain amount of lines and then terminating abruptly at some point, giving me the following log:
1
2
3
… And then nothing else to see anymore …
At first I suspected a user subscription tier limit for running tests in a Flow or something like that, but that’s not the case, since it clearly shows that one log statement works flawlessly and then the next just doesn’t do anything anymore.
To me it looks like some kind of timeout issue. But I can’t find anything that would suggest what’s wrong exactly.