# Running a request multiple times with different data sets : This request does not have any tests

**URL:** <https://community.postman.com/t/running-a-request-multiple-times-with-different-data-sets-this-request-does-not-have-any-tests/5376>\
**Category:** Help Hub\
**Tags:** api\
**Created:** [May 9, 2019, 9:26pm UTC](https://community.postman.com/t/running-a-request-multiple-times-with-different-data-sets-this-request-does-not-have-any-tests/5376 "2019-05-09T21:26:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![p.varin78](https://avatars.discourse-cdn.com/v4/letter/p/85e7bf/32.png) [@p.varin78](https://community.postman.com/u/p.varin78)\
**Post date:** [May 9, 2019, 9:26pm UTC](https://community.postman.com/t/running-a-request-multiple-times-with-different-data-sets-this-request-does-not-have-any-tests/5376/1 "2019-05-09T21:26:35Z")

</div>

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 !

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [May 9, 2019, 9:32pm UTC](https://community.postman.com/t/running-a-request-multiple-times-with-different-data-sets-this-request-does-not-have-any-tests/5376/2 "2019-05-09T21:32:10Z")

</div>

Hey @p.varin78

Welcome to the community 👋

I don’t see any `tests` in the code you posted. A `test` would be using the `pm.test()` functionality and these would show in the runner.

You can find more info on these on our learning site.

[https://learning.getpostman.com/docs/postman/scripts/test\_scripts](https://learning.getpostman.com/docs/postman/scripts/test_scripts)

---

<div class="post-metadata">

**Author:** ![p.varin78](https://avatars.discourse-cdn.com/v4/letter/p/85e7bf/32.png) [@p.varin78](https://community.postman.com/u/p.varin78)\
**Post date:** [May 9, 2019, 9:39pm UTC](https://community.postman.com/t/running-a-request-multiple-times-with-different-data-sets-this-request-does-not-have-any-tests/5376/3 "2019-05-09T21:39:14Z")

</div>

You’re right ! Dumb question ! I thought it wasn’t working but it was…
