我可以在通过 Newman-Runner-CLI 使用邮递员时跳过某些选定的 "Api Requests" 吗?

Can I skip some of the selected "Api Requests" in postman while using it through Newman-Runner-CLI?

作为用户,我有几个 API 使用 postman 创建的集合,现在我已经集成了 Newman-Runner-CLI。

我的问题是,有没有办法从每个集合中跳过一些选定的 API 请求,或者有没有办法在单个集合中添加“已跳过的 API 请求”文件,那么Newman-Runner在执行过程中,会自动跳过那些添加的请求吗?

提前致谢。

显然,无法通过 Postman 或 Newman 查明集合是否正在 运行。

根据此线程,您可以在执行开始时手动设置一个变量 (see Postman forum)。

然后您可以根据该变量的值使用 postman.setNextRequest() 来引导执行。参见:https://learning.postman.com/docs/running-collections/building-workflows/