Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] add delay in run collection #1385

Closed
itchoust opened this issue Jan 15, 2024 · 5 comments · Fixed by #2218
Closed

[Feature] add delay in run collection #1385

itchoust opened this issue Jan 15, 2024 · 5 comments · Fixed by #2218
Labels
enhancement New feature or request

Comments

@itchoust
Copy link

Hello,

Is it possible to add a field delay to specify the delay in ms between each request of the collection ?

regards

@itexto
Copy link

itexto commented Jan 15, 2024

That whould be REALLY usefull. I'm facing this problem right now.

@YuliaYadgarova
Copy link

+1 to this feature

@Its-treason
Copy link
Member

As a workaround, if you just want a short 1-second delay between all requests you can add a pre-request script in the collection setting:

// Sleep for 1000 ms / 1 second
await new Promise((resolve) => setTimeout(() => resolve(), 1000));

@itexto
Copy link

itexto commented Jan 15, 2024 via email

@itchoust
Copy link
Author

As a workaround, if you just want a short 1-second delay between all requests you can add a pre-request script in the collection setting:

// Sleep for 1000 ms / 1 second
await new Promise((resolve) => setTimeout(() => resolve(), 1000));

Thanks. Yes i did someting similar.

const sleep = (millis) => {
  var stop = new Date().getTime();
  while (new Date().getTime() < stop + millis) {}
};

sleep(6000);

@sanjai0py sanjai0py added the enhancement New feature or request label Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants