【发布时间】:2019-07-27 02:12:14
【问题描述】:
我创建了一个简单的 newman REST API 测试调用,我还想为我的调用使用一些选项。
const newman = require('newman');
console.log("hello");
newman.run({
collection: 'https://www.getpostman.com/collections/4a6098a183ea90b7d8d7',
reporters: ['cli', 'html'],
options:'-k' //<--- *** This does not work ***
}, process.exit);
我的情况是我使用的选项是 -k(禁用 SSL 验证检查并允许自签名 SSL 证书。),我的问题一般是在 node.js 中使用 newman 时如何配置选项?
【问题讨论】:
标签: node.js rest testing postman newman