The tests correctly give you passes & fails when run on their own, but then running tests as a suite in Collection Runner, only the last requests test gets run and all other requests shows, “this request does not have any tests”
I verified that all the requests has “pm.test()” checking for status!
I also verified that I am on the latest version of PM - 7.23.0
Would you be able to check if you have any unsaved changes in the collection? The request tab in the builder will have an orange dot on it.
The Collection Runner doesn’t automatically pick up new changes made to any requests so if you made changes and didn’t save them, the runner wouldn’t know about this until these are saved.
@danny-dainton Thanks for quick reply. I cross verified it again and made sure that all the requests in the collections are saved! But, hitting the same issue again!
Could you expand the image of the request to include tabs please? It’s hard to know what you’re seeing when the image is focused on a specific area.
Are you seeing the Console Log statements? Can you add a new one and see if that logs the statement to the console when running the Collection.
Looks like this issue is a little different than the one in this thread. But your issue looks like your request URL is empty. Would you be able to show us the request that you’'re using for this collection run?
Your server is probably running on some another port which you not expect. and this is mostly happen when you are using proxy.
so check your network to see if any proxy sets and close it.
for example you may always listening on port : 4000 but if you connect with vpn this might change to something like port : 3453.
I was able to solve this, posting the solution so it might be helpful for others.
I was using just pm.response.to.have.status(200); statement in tests, so collection runner was displaying message that there are no tests.
But when I added the same statement inside pm.test() function
pm.test(“response is 200”, function(){
pm.response.to.have.status(200);
});
Below message is displayed