# Re-run test script without re-sending request

**URL:** <https://community.postman.com/t/re-run-test-script-without-re-sending-request/9160>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [November 21, 2019, 3:25pm UTC](https://community.postman.com/t/re-run-test-script-without-re-sending-request/9160 "2019-11-21T15:25:09Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![kunal](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kunal/32/3316_2.png) [@kunal](https://community.postman.com/u/kunal)\
**Post date:** [November 21, 2019, 3:25pm UTC](https://community.postman.com/t/re-run-test-script-without-re-sending-request/9160/1 "2019-11-21T15:25:09Z")

</div>

Hi folks,

I want to be able to re-run the test script multiple times after `Send`ing the request.

This feature is useful when building the test suite.

Is there a way to achieve this?

Thanks,

Kunal

---

<div class="post-metadata">

**Author:** ![john-paul](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/john-paul/32/919_2.png) [@john-paul](https://community.postman.com/u/john-paul)\
**Post date:** [November 21, 2019, 6:16pm UTC](https://community.postman.com/t/re-run-test-script-without-re-sending-request/9160/2 "2019-11-21T18:16:59Z")

</div>

Hi Kunal,

Thanks for reaching out! Welcome the Community. 🙂

Have you considered looping your whole Test script (i.e. put the whole script in a for loop)? There isn’t a way right now to run _just_ a Test script detached from a request right now.

---

<div class="post-metadata">

**Author:** ![gabriel-r](https://avatars.discourse-cdn.com/v4/letter/g/e0b2c6/32.png) [@gabriel-r](https://community.postman.com/u/gabriel-r)\
**Post date:** [April 27, 2021, 4:49pm UTC](https://community.postman.com/t/re-run-test-script-without-re-sending-request/9160/3 "2021-04-27T16:49:11Z")

</div>

Being able to re-run a test would be super useful while writing and refining it.

---

<div class="post-metadata">

**Author:** ![meenakshi.dhanani](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/meenakshi.dhanani/32/5980_2.png) [@meenakshi.dhanani](https://community.postman.com/u/meenakshi.dhanani)\
**Post date:** [April 28, 2021, 9:26am UTC](https://community.postman.com/t/re-run-test-script-without-re-sending-request/9160/4 "2021-04-28T09:26:49Z")

</div>

Hey @gabriel-r , like in the above answer, wouldn’t looping help?

---

<div class="post-metadata">

**Author:** ![gabriel-r](https://avatars.discourse-cdn.com/v4/letter/g/e0b2c6/32.png) [@gabriel-r](https://community.postman.com/u/gabriel-r)\
**Post date:** [April 28, 2021, 10:05am UTC](https://community.postman.com/t/re-run-test-script-without-re-sending-request/9160/5 "2021-04-28T10:05:39Z")

</div>

Hi @meenakshi.dhanani

Not sure how looping would help me or the OP.  
Looping would rerun the request and not allow edits between runs.

My need (and OP’s, I believe) is to be able to just run the current test on the already present response.

This is even more relevant when using _paid_ services where every request is money, and you need to make hundreds while building the test suite.

---

<div class="post-metadata">

**Author:** ![meenakshi.dhanani](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/meenakshi.dhanani/32/5980_2.png) [@meenakshi.dhanani](https://community.postman.com/u/meenakshi.dhanani)\
**Post date:** [April 28, 2021, 12:16pm UTC](https://community.postman.com/t/re-run-test-script-without-re-sending-request/9160/6 "2021-04-28T12:16:52Z")

</div>

Looping in the tests tab will run the same code multiple times for the one response received. There could be other hacks in Postman as well I’m thinking. But it would help you can share an example use case? I’m interested in understanding the need a bit more.

Thanks 😃

---

<div class="post-metadata">

**Author:** ![gabriel-r](https://avatars.discourse-cdn.com/v4/letter/g/e0b2c6/32.png) [@gabriel-r](https://community.postman.com/u/gabriel-r)\
**Post date:** [April 28, 2021, 3:40pm UTC](https://community.postman.com/t/re-run-test-script-without-re-sending-request/9160/7 "2021-04-28T15:40:26Z")

</div>

The use case is “using the Test tab as an IDE”.

1. Set up the request and its parameters
2. Run the request, see if it works, check out the response
3. Start editing the Tests

This 3rd step will take a while. I have more than a couple of variables, different tests, environment variables, looping through different requests, etc.

During this, I want to run the Test like 100 million times, output stuff to the Console, check values and formats, try 10 times until I get the right JSON path for some value in the response, etc.

During this Test editing, I want is to simply rerun the test alone, _without_ re-running the request.

Does it make sense?

---

<div class="post-metadata">

**Author:** ![meenakshi.dhanani](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/meenakshi.dhanani/32/5980_2.png) [@meenakshi.dhanani](https://community.postman.com/u/meenakshi.dhanani)\
**Post date:** [April 29, 2021, 6:09pm UTC](https://community.postman.com/t/re-run-test-script-without-re-sending-request/9160/8 "2021-04-29T18:09:45Z")

</div>

Thanks for sharing with so much detail, really appreciate it.

I’m thinking of a workaround, let’s say you hit the API once, save the response as an example response and spin up a mock server in postman that will return the response that the original API returns. Since this is a mock, you can hit it as many times as you like, unlike the original API.

I’ll try this out in a while and share a link to the public workspace solution.

What do you think? Does that sound like a possible solution?

---

<div class="post-metadata">

**Author:** ![gabriel-r](https://avatars.discourse-cdn.com/v4/letter/g/e0b2c6/32.png) [@gabriel-r](https://community.postman.com/u/gabriel-r)\
**Post date:** [April 29, 2021, 6:37pm UTC](https://community.postman.com/t/re-run-test-script-without-re-sending-request/9160/9 "2021-04-29T18:37:39Z")

</div>

Sounds fancy and super useful 🙂  
Many thanks!

---

<div class="post-metadata">

**Author:** ![meenakshi.dhanani](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/meenakshi.dhanani/32/5980_2.png) [@meenakshi.dhanani](https://community.postman.com/u/meenakshi.dhanani)\
**Post date:** [May 14, 2021, 9:14am UTC](https://community.postman.com/t/re-run-test-script-without-re-sending-request/9160/10 "2021-05-14T09:14:15Z")

</div>

![run-test-without-resend](https://us1.discourse-cdn.com/getpostman/original/3X/e/4/e473039dc9eed5e507676d502c9ac4b450557b83.gif)  
Hey @gabriel-r, this use recently came up for me and I created a mock server to test all the code in the pre-request and test scripts. Made a short walkthrough for you 🙂

---

<div class="post-metadata">

**Author:** ![gabriel-r](https://avatars.discourse-cdn.com/v4/letter/g/e0b2c6/32.png) [@gabriel-r](https://community.postman.com/u/gabriel-r)\
**Post date:** [May 19, 2021, 12:40pm UTC](https://community.postman.com/t/re-run-test-script-without-re-sending-request/9160/11 "2021-05-19T12:40:06Z")

</div>

This sounds perfect! Can’t wait to try it out as soon as I get back to this project.

PS: @kunal This seems to be the answer you were looking for?

---

<div class="post-metadata">

**Author:** ![danielsunauto](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@danielsunauto](https://community.postman.com/u/danielsunauto)\
**Post date:** [May 13, 2025, 2:32pm UTC](https://community.postman.com/t/re-run-test-script-without-re-sending-request/9160/12 "2025-05-13T14:32:17Z")

</div>

Like in the above reply, ‘Being able to re-run a test would be super useful while writing and refining it.’

That’s what we want and not a work around.

---

<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:** [May 15, 2025, 8:26am UTC](https://community.postman.com/t/re-run-test-script-without-re-sending-request/9160/13 "2025-05-15T08:26:57Z")

</div>

Hey @danielsunauto 👋

Welcome to the Postman Community! :postman:

That capability has been in the platform for a while now, in the _Test Results_ section, you can use the “ **Refresh results** ” button on the right, to run the tests against the response again without sending a new request. 🪄

As you can see in the video, you can also add tests, amend tests or removed them without running the full request. The is only running against the current results so if something were to change with the API response, that wouldn’t be picked up here and you would need to hit **Send** again.

This is only going to work in a test management context, this action wouldn’t write anything to the console or set variables - you would see need to make a request to do this.
