【问题标题】:Newman test summary shown mid-collection run纽曼测试摘要显示在收集运行中
【发布时间】:2019-01-20 01:45:28
【问题描述】:

在 Newman 中运行我的集合时,测试摘要会在运行中显示并继续请求。这是可能的,因为集合中有大量请求,但我将其缩减到最低限度。

我的问题是,我可以告诉纽曼等到收集运行结束吗?

我用来驱动收集的代码是:

const newman = require('newman');
var async = require("async");

async.series([
 function(next) {
  newman.run({
   collection: require('../rules_splitted/agent.json'),
   environment: require('../env_dev.json'),
   reporters: 'cli',
   bail: false
  }, next);
}]) 

我搜索了 HereHere 的答案,也在这里搜索,但我只能找到与等待时间无关的 CLI 报告选项

Picture Picture

【问题讨论】:

    标签: report command-line-interface newman postman-collection-runner


    【解决方案1】:

    首先,我不明白你为什么使用 var async = require("async"); 所有呼叫已经同步并且逐渐进行。 在我使用 newman 的所有过程中,我从未见过测试摘要处于中间状态。 尝试删除此异步并使用提供的命令启动它 纽曼运行集合 -env ... -time 你们中间不会有任何一秒钟看到测试摘要

    P.S 我将它与 TeamCity CI 一起使用

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-06-14
    • 2019-04-08
    • 1970-01-01
    • 1970-01-01
    • 2020-12-14
    • 1970-01-01
    • 2021-09-07
    • 2019-04-13
    相关资源
    最近更新 更多