# How to increase response time of an api via test script

**URL:** <https://community.postman.com/t/how-to-increase-response-time-of-an-api-via-test-script/36306>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [June 17, 2022, 12:58pm UTC](https://community.postman.com/t/how-to-increase-response-time-of-an-api-via-test-script/36306 "2022-06-17T12:58:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![technical-physicist8](https://avatars.discourse-cdn.com/v4/letter/t/59ef9b/32.png) [@technical-physicist8](https://community.postman.com/u/technical-physicist8)\
**Post date:** [June 17, 2022, 12:58pm UTC](https://community.postman.com/t/how-to-increase-response-time-of-an-api-via-test-script/36306/1 "2022-06-17T12:58:25Z")

</div>

Hello, I am writing a testcases for a collection. Some api is taking much time and getting response time out error.  
I would like to know how to increase response time out via test script(pre-request script).

---

<div class="post-metadata">

**Author:** ![archerZ](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@archerZ](https://community.postman.com/u/archerZ)\
**Post date:** [July 6, 2022, 3:30pm UTC](https://community.postman.com/t/how-to-increase-response-time-of-an-api-via-test-script/36306/2 "2022-07-06T15:30:21Z")

</div>

Hi @technical-physicist8,

Postman has a setting that you set manually in Settings \> General \> Request timeout in ms that you can set if you want to set an explicit timeout. However, you won’t be able to do what you’re trying to do from a script.
