# Performance Test Runner Ignoring Scripts

**URL:** <https://community.postman.com/t/performance-test-runner-ignoring-scripts/75036>\
**Category:** Help Hub\
**Tags:** tests, authentication, collection-runner, performance\
**Created:** [February 7, 2025, 12:46am UTC](https://community.postman.com/t/performance-test-runner-ignoring-scripts/75036 "2025-02-07T00:46:16Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![mustafa.motiwala](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@mustafa.motiwala](https://community.postman.com/u/mustafa.motiwala)\
**Post date:** [February 7, 2025, 12:46am UTC](https://community.postman.com/t/performance-test-runner-ignoring-scripts/75036/1 "2025-02-07T00:46:16Z")

</div>

i have an API that is returning bad data, but always returns 200 response code. but we think it is only during stress. when using the runner, we are able capture any bad data using the scripts. we tried running the performance test runner, but it only considers failures as status code non-200. it seems to ignore the scripts on the request. also, we are writing the error to the postman console. but no console logs are written during a performance test runner.

---

<div class="post-metadata">

**Author:** ![buchananr2](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/buchananr2/32/31615_2.png) [@buchananr2](https://community.postman.com/u/buchananr2)\
**Post date:** [February 7, 2025, 3:01am UTC](https://community.postman.com/t/performance-test-runner-ignoring-scripts/75036/2 "2025-02-07T03:01:01Z")

</div>

Can you share (please sanitize any sensitive data) a sample picture of the collection runner output and some of the scripts (from pre/post) that are being ran? It could be an issue with how the tests are being written.

---

<div class="post-metadata">

**Author:** ![mustafa.motiwala](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@mustafa.motiwala](https://community.postman.com/u/mustafa.motiwala)\
**Post date:** [February 7, 2025, 9:54pm UTC](https://community.postman.com/t/performance-test-runner-ignoring-scripts/75036/3 "2025-02-07T21:54:26Z")

</div>

**Post-response script**

```auto
const responseJson = pm.response.json();
for (const rec of responseJson) {
    let accountNumber = rec.details.accountNumber;
    let paymentMethodReferenceId = rec.paymentMethodReferenceId
      pm.test("pmrId=" + paymentMethodReferenceId, function () {
    try {
        pm.expect(accountNumber.length).to.be.lessThan(5); //set to 5 to fail everytime
    } catch (e) {
        console.log("pmrId="+paymentMethodReferenceId+" failed. size="+accountNumber.length) //catch e to log to console
        throw Error(e)
    }
});
}

```

**FUNCTIONAL TEST - EVERTHING WORKS FINE!**  
Setup for functional run with 2 iterations. Expectation is a 200 response and all failures

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/3/5/354e2c21fc7ae5ce9e01d8e243835654b1929370.png)

As expected all failed. Correct messages

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/5/d/5d7789bb63d39388ebb8b8d5c3898c410e8590c5.png)

Console shows failures as written in test script

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

**PERFORMANCE TEST - EVERYTHING PASSES, BUT IT SHOULD FAIL**

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

Performance test completed. No errors. And console is empty

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

I believe the reason performance test is not failing is because it states in the postman documentation. _Error rate - The percentage of requests that result in an error. Responses other than 2xx responses are considered errors._

---

<div class="post-metadata">

**Author:** ![buchananr2](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/buchananr2/32/31615_2.png) [@buchananr2](https://community.postman.com/u/buchananr2)\
**Post date:** [February 8, 2025, 7:08pm UTC](https://community.postman.com/t/performance-test-runner-ignoring-scripts/75036/4 "2025-02-08T19:08:28Z")

</div>

I think you are correct about the errors only being tracked on the non-2xx. I have been digging deeper into the performance tests and find the documentation quite misleading. Consider the the block of their documentation which leads the reader to believe post-scripts (which are known for tests) are executed and impact the results. I understand that the post script is likely used to chain the data to the next request but if an error is thrown then it should report an error regardless if the http status was 2xx (or track it differently).

> You can add scripts and tests to packages in your team’s [Package Library](https://learning.postman.com/docs/tests-and-scripts/write-scripts/package-library/), and run the contents of packages from the Collection Runner. Learn how to [add packages](https://learning.postman.com/docs/tests-and-scripts/write-scripts/package-library/#add-a-package) to the Package Library, and [import packages](https://learning.postman.com/docs/tests-and-scripts/write-scripts/package-library/#import-a-package) into your pre-request and post-response scripts.

This may be a feature request to allow the performance test to track HTTP Errors (non 2xx requests) but also allow the post request script error count to show up.

Some folks will look at this request and wonder why you are testing the response to be accurate when you are testing the performance of your system. Truthfully the performance piece is still in an early stage of its lifecycle that some improvements to make it an alternative to other tools like Artillery, Locust, jMeter, k6, or Goad are still very much needed.

---

<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:** [February 8, 2025, 7:51pm UTC](https://community.postman.com/t/performance-test-runner-ignoring-scripts/75036/5 "2025-02-08T19:51:37Z")

</div>

Hey @buchananr2 👋🏼

Which section of the documentation is that, could you also share the link?

---

<div class="post-metadata">

**Author:** ![buchananr2](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/buchananr2/32/31615_2.png) [@buchananr2](https://community.postman.com/u/buchananr2)\
**Post date:** [February 8, 2025, 8:47pm UTC](https://community.postman.com/t/performance-test-runner-ignoring-scripts/75036/6 "2025-02-08T20:47:30Z")

</div>

It is in the documentation for the Performance Runner

> **[Configure and run performance tests in Postman | Postman Docs](https://learning.postman.com/docs/collections/performance-testing/performance-test-configuration/#configure-a-performance-test)**
>
> Postman is a collaboration platform for API development. Postman's features simplify each step of building an API and streamline collaboration so you can create better APIs—faster.

I think a clarification on the way errors are tracked either in this beginning section (linked) or further in the [Debugging](https://learning.postman.com/docs/collections/performance-testing/performance-test-errors/#view-error-trends) section of the documentation as they are only tracked based on non-2xx response codes.

I can see both sides - track only non-2xx as errors in performance because you are not validating the API responses/etc but also see where it could be a benefit for an API to not only check throughput but also validate responses to ensure things are accurate.

Checking that requests are acurate at load are essential when you are testing APIs with authorizations applied because the authorization server (OPA/Permify/OpenFGA/LDAP) could be overwhelmed and return bad data in the authorization checks of an API which could lead to an issue being found through performance testing.

With that being said, the validation checks should be ran post or out of bound of the performance testing piece (save responses to temp file and process post wrap-up but that would cause limitations) as you would be sacrificing CPU to processing post-request scripts which would diminish your throughput testing.

---

<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:** [February 8, 2025, 8:54pm UTC](https://community.postman.com/t/performance-test-runner-ignoring-scripts/75036/7 "2025-02-08T20:54:07Z")

</div>

Sounds like great feedback for @malvika-chaudhary and her team.

---

<div class="post-metadata">

**Author:** ![mustafa.motiwala](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@mustafa.motiwala](https://community.postman.com/u/mustafa.motiwala)\
**Post date:** [February 9, 2025, 9:37pm UTC](https://community.postman.com/t/performance-test-runner-ignoring-scripts/75036/8 "2025-02-09T21:37:15Z")

</div>

> [@buchananr2](#):
>
> this request and wonder why you are testing the response to be accurate when you are testing the performance of your system. Truthfully the performance piece is still in an early stage of its lifecycle that some improvements to make it an alternative to other tools like Artillery, Locust, jMeter

The reason i want to validate the response data while running a performance testing is because when the API is under stress, it is returning inaccurate response data. individual API calls, even several iterations calls done sequentially is returning correct data.

---

<div class="post-metadata">

**Author:** ![malvika-chaudhary](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/malvika-chaudhary/32/13746_2.png) [@malvika-chaudhary](https://community.postman.com/u/malvika-chaudhary)\
**Post date:** [February 14, 2025, 9:06am UTC](https://community.postman.com/t/performance-test-runner-ignoring-scripts/75036/9 "2025-02-14T09:06:47Z")

</div>

Thanks @mustafa.motiwala and @buchananr2 for the detailed feedback and examples. I agree that how this might be confusing especially if you are using assertions on functional testing.  
I have taken a note of this feedback. If you want to talk to me and talk more about the problems that you might have faced or your overall experience of using performance testing, then please use this link: [Calendly - Malvika Chaudhary](https://calendly.com/malvika-chaudhary/postman-api-performance-testing-feedback-with-malvika)

Regards,  
Malvika

---

<div class="post-metadata">

**Author:** ![nik-steel-reseda](https://avatars.discourse-cdn.com/v4/letter/n/85e7bf/32.png) [@nik-steel-reseda](https://community.postman.com/u/nik-steel-reseda)\
**Post date:** [June 25, 2025, 10:13pm UTC](https://community.postman.com/t/performance-test-runner-ignoring-scripts/75036/10 "2025-06-25T22:13:00Z")

</div>

Hi @malvika-chaudhary,  
Is there any update on possibly allowing test scripts to be enabled as part of a performance test?

---

<div class="post-metadata">

**Author:** ![chris-do892](https://avatars.discourse-cdn.com/v4/letter/c/4af34b/32.png) [@chris-do892](https://community.postman.com/u/chris-do892)\
**Post date:** [January 5, 2026, 2:05pm UTC](https://community.postman.com/t/performance-test-runner-ignoring-scripts/75036/11 "2026-01-05T14:05:49Z")

</div>

i saw this [page](https://learning.postman.com/docs/collections/performance-testing/performance-test-failures/) listing another section regarding failures for a performance test run, but i don’t actually see it in the current Postman version (v11.79.0). Is the feature still being developed or do i need to configure something?

Thanks!

---

<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:** [January 5, 2026, 3:31pm UTC](https://community.postman.com/t/performance-test-runner-ignoring-scripts/75036/12 "2026-01-05T15:31:33Z")

</div>

Hey @chris-do892 👋

Welcome to the Postman Community! :postman:

Thanks for reaching out and showing interest in that feature! 🏆

The feature is not fully rolled out to all users just yet, this is planned for early 2026.

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/8/9/89a456e7c476731f22aa04cf5f835fd4951d6774.png)
