# The pm.execution.skipRequest() function fails with Newman

**URL:** <https://community.postman.com/t/the-pm-execution-skiprequest-function-fails-with-newman/59284>\
**Category:** Help Hub\
**Tags:** newman-project, tests, collections, skip\
**Created:** [March 27, 2024, 5:45am UTC](https://community.postman.com/t/the-pm-execution-skiprequest-function-fails-with-newman/59284 "2024-03-27T05:45:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kalpanasama1](https://avatars.discourse-cdn.com/v4/letter/k/c4cdca/32.png) [@kalpanasama1](https://community.postman.com/u/kalpanasama1)\
**Post date:** [March 27, 2024, 5:45am UTC](https://community.postman.com/t/the-pm-execution-skiprequest-function-fails-with-newman/59284/1 "2024-03-27T05:45:35Z")

</div>

> **Archived topic — this may be out of date.**  
> Newman has been replaced by the **[Postman CLI](https://learning.postman.com/docs/postman-cli/postman-cli-overview/)**, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.  
> Working with an AI coding agent? The [Postman plugin](https://github.com/postmanlabs/postman-plugin) lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.  
> For current help, see the [Postman docs](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

pm.execution.skiprequest() passes in postman while running manually but fails in pipeline. please help!  
below is the reference of error in report generated

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/3/0/30bfaaa32d324b915d622ef804b13db9a0f7e7cb.png)

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [March 27, 2024, 9:04am UTC](https://community.postman.com/t/the-pm-execution-skiprequest-function-fails-with-newman/59284/2 "2024-03-27T09:04:35Z")

</div>

Hey @kalpanasama1 👋

The change wasn’t introduced to Newman until version `6.1.0` so if you’re not seeing it working, it’s likely that you’re using an older version.

Related question:

> [@Skip Request Feature in Newman](https://community.postman.com/t/skip-request-feature-in-newman/59158):
>
> The new [skipRequest() feature that was added in November](https://blog.postman.com/optimize-your-api-testing-workflow-with-postmans-skip-request-feature/) is great functionality, we are using it to eliminate false negatives in our automation testing. It works great within Postman whether we run a request individually or through the collection runner, but when we push those changes up to a pipeline that runs on Newman, the tests fail with this error message: Cannot read properties of undefined (reading 'skipRequest') [image] This is the full snippet we are using in the pre-request script,…

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [April 26, 2024, 9:05am UTC](https://community.postman.com/t/the-pm-execution-skiprequest-function-fails-with-newman/59284/3 "2024-04-26T09:05:33Z")

</div>

Closed on April 26, 2024, 9:05am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
