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

Open
itchoust opened this issue Jan 15, 2024 · 5 comments · May be fixed by #2218
Open

[Feature] add delay in run collection #1385

itchoust opened this issue Jan 15, 2024 · 5 comments · May be fixed by #2218

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);

@therealrinku therealrinku linked a pull request May 2, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants