title: Postman - how to loop request until I get a specific response?
body: <p>I'm testing API with Postman and I have a problem:
  My request goes to sort of middleware, so either I receive a full 1000+ line JSON, or I receive <code>PENDING</code> status and empty array of results:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>{
    "meta": {
      "status": "PENDING",
      "missing_connectors_count": 0,
      "xxx_type": "INTERNATIONAL"
    },
    "results": []
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>The question is, how to loop this request in Postman until I will get status <code>SUCCESS</code> and results <code>array &gt; 0</code>?
  When I'm sending those requests manually one-by-one it's ok, but when I'm running them through Collection Runner, "PENDING" messes up everything.</p>