I am able to get all but one test passing in test collection. When I go back through my requests, the only one that does not pass is Get Specific players.
the error I get is:
There was an error in evaluating the test script: TypeError: Cannot read property ‘length’ of undefined
This is my code in the test scripts:
pm.environment.set(‘player_id’, player_list[Math.floor(Math.random() * player_list.length)].id);