我想从邮差谷歌Chrome扩展POST数据。
我想用不同的数据提出10个请求,它应该是在同一时间。
在Postman中可以这样做吗?
如果是,谁能给我解释一下这是如何实现的?
我想从邮差谷歌Chrome扩展POST数据。
我想用不同的数据提出10个请求,它应该是在同一时间。
在Postman中可以这样做吗?
如果是,谁能给我解释一下这是如何实现的?
当前回答
Runner选项现在位于面板的右下方
其他回答
Runner选项现在位于面板的右下方
开多个邮差。它复制它并并发运行。
不确定人们是否还在寻找简单的解决方案,但您可以在Postman中运行“Collection Runner”的多个实例。只需创建一个带有一些请求的运行器,并多次单击“运行”按钮来调出多个实例。
在postman的收集运行器中,您不能同时进行异步请求,因此改用Apache JMeter。它允许您添加多个线程并添加同步计时器
在一个文件夹中并行运行所有Collection:
'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
});