# Runner custom request order

**URL:** <https://community.postman.com/t/runner-custom-request-order/5835>\
**Category:** Help Hub\
**Tags:** runnercollection, runner\
**Created:** [June 10, 2019, 7:17am UTC](https://community.postman.com/t/runner-custom-request-order/5835 "2019-06-10T07:17:37Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![postman-paul540](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/postman-paul540/32/149_2.png) [@postman-paul540](https://community.postman.com/u/postman-paul540)\
**Post date:** [June 10, 2019, 7:56am UTC](https://community.postman.com/t/runner-custom-request-order/5835/4 "2019-06-10T07:56:56Z")

</div>

You could add some logic into the tests and have some kind of “counter” value, so when it’s 1 (using postman.setNextRequest()), you could say to run requests 1 and 2, if the counter value is 2 then run 1 and 3 etc.

Removing the whole duplication thing in Postman seems to be one of the biggest challenges, in my opinion.

Check out the below post on keeping your tests DRY as there are some good answers from other experienced Postman users:

> [@How to implement DRY / good coding practices?](https://community.postman.com/t/how-to-implement-dry-good-coding-practices/5500/):
>
> Hi all, I have a lot of collections which are relatively similar, following this pattern. Send a POST request with a json body Send couple of GET requests and verify the results via tests Main difference between those collections is The json body of the post request The test (results) of the GET requests The endpoints of the POST/GET requests This results in a lot of duplication. Basically what I´m doing is to copy a collection, and modify the body and adapt the tests, which is resulting …

---

_[View the full topic](https://community.postman.com/t/runner-custom-request-order/5835)._
