Hello,
Here is my Pre-request Script
var profiles = pm.environment.get("profiles");
if (!profiles) {
profiles = ["profile1", "profile2", "profile3"];
}
var currentProfile = profiles.shift();
pm.environment.set('profile', currentProfile);
pm.environment.set('profiles', profiles);
Here are my Tests:
var profiles = pm.environment.get("profiles");
if (profiles && profiles.length > 0) {
postman.setNextRequest('https://myapi.test.com/profile/test');
} else {
postman.setNextRequest(null);
}
However when I launch the runner I always get this message :
This request does not have any tests
Any idea ? I have the last version of Postman of course 7.0.9.
Thanks !