Non so se questa domanda è ancora pertinente, ma c'è una tale possibilità in Postman ora. L'hanno aggiunto qualche mese fa.
Tutto ciò che serve è creare un semplice file .js ed eseguirlo tramite node.js. Ecco come si presenta:
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.`);
});
});
Poi basta eseguire questo file .js ('fileName.js nodo' in cmd).
Maggiori dettagli here
fonte
2016-12-16 10:08:08
Per eseguire test simultanei utilizzando il Collection Runner, [questo collegamento] (https://timbeynart.com/2017/03/14/use-postman-to-hammer-a-rest-api/) mostra un piccolo hack come farlo. – Ray
JMeter è fantastico grazie per il suggerimento. –