How to make multiple requests at the same time using POSTMAN

I want to receive POST data from the POSTMAN extension of Google Chrome. I want to make 10 queries with different data, and this should be at the same time.

Can this be done in POSTMAN? If so, can someone explain to me how this can be achieved?

Thank you for your time.

+129
post postman
Mar 22 '16 at 14:26
source share
9 answers

I assume that in postman there is no such function to run parallel tests.

If I were you, I would consider Apache jMeter , which is used specifically for such scenarios.

As for the Postman, the only thing that can more or less satisfy your needs is a postman. enter image description here There you can specify the details:

  • number of iterations,
  • upload a csv file with data for different test runs, etc.

The launch will not be simultaneous, only sequential.

Hope this helps. But consider jMeter (you will like it).

+135
Mar 23 '16 at 16:19
source share

The postman does not do this, but you can asynchronously execute multiple curl requests in Bash:

 curl url1 & curl url2 & curl url3 & ... 

Remember to add & after each request, which means that the request should run as an asynchronous job.

However, the postman can generate a code snippet for your request: https://learning.getpostman.com/docs/postman/sending_api_requests/generate_code_snippets/

+66
Feb 08 '17 at 10:42 on
source share

I do not know if this question is relevant, but now the Postman has such an opportunity. They added this a few months ago.

All you need to do is create a simple .js file and run it through node.js. It looks like this:

 var path = require('path'), async = require('async'), //https://www.npmjs.com/package/async newman = require('newman'), parametersForTestRun = { collection: path.join(__dirname, 'postman_collection.json'), // your collection environment: path.join(__dirname, 'postman_environment.json'), //your env }; parallelCollectionRun = function(done) { newman.run(parametersForTestRun, done); }; // Runs the Postman sample collection thrice, in parallel. async.parallel([ parallelCollectionRun, parallelCollectionRun, parallelCollectionRun ], function(err, results) { err && console.error(err); results.forEach(function(result) { var failures = result.run.failures; console.info(failures.length ? JSON.stringify(failures.failures, null, 2) : '${result.collection.name} ran successfully.'); }); }); 

Then just run this .js file ('.js hostname' in cmd).

More here

+29
Dec 16 '16 at 10:08
source share

Run the entire collection in the folder in parallel:

 'use strict'; global.Promise = require('bluebird'); const path = require('path'); const newman = Promise.promisifyAll(require('newman')); const fs = Promise.promisifyAll(require('fs')); const environment = 'postman_environment.json'; const FOLDER = path.join(__dirname, 'Collections_Folder'); let files = fs.readdirSync(FOLDER); files = files.map(file=> path.join(FOLDER, file)) console.log(files); Promise.map(files, file => { return newman.runAsync({ collection: file, // your collection environment: path.join(__dirname, environment), //your env reporters: ['cli'] }); }, { concurrency: 2 }); 
+2
May 21 '18 at 9:35 am
source share

In the postman's collection, you cannot make a simultaneous asynchronous request, so use the jmeter instance.

You can use Apache JMeter ; this allows you to add multiple threads and add a synchronization timer to it

+2
Aug 10 '18 at 12:41
source share

If you only execute GET requests and you need another simple solution from the Chrome browser, just install the β€œOpen multiple URLs” extension:

https://chrome.google.com/webstore/detail/open-multiple-urls/oifijhaokejakekmnjmphonojcfkpbbh?hl=en

I just ran 1,500 URLs at a time, a bit behind Google, but it works.

0
Jan 26 '19 at 17:58
source share

Not sure if people are still looking for simple solutions for this, but you can run multiple instances of the "Runner Collection" in Postman. Just create a runner with some queries and click the Run button a few times to invoke multiple instances.

-one
Nov 15 '18 at
source share

Collection slider allows you to run collections. Thousands of times if you want.

Source: https://www.getpostman.com/docs/v6/api_testing_and_collection_runner/running_collections

See the image for the field where the number of iterations is configured. This screenshot is from the Mac desktop version 6.0.10.

enter image description here

First create a collection of calls. Then run the collection in the Runner Collection window. Open the Collection Collector by clicking the link in the navigation bar. Select a collection from the drop-down menu, enter the number of iterations and click the blue "Run" button.

How to change data each time has been considered here and described in detail in the documents here .

-2
Apr 19 '18 at 14:15
source share

For a simpler GUI approach, open each request that you want to execute on different tabs. Then you can go to each tab with one click.

-3
Jan 18 '19 at 20:35
source share



All Articles