Closed nitrocode closed 8 years ago
@nitrocode There's a delay parameter already that you can use for this. On Feb 4, 2016 9:47 AM, "burritocode" notifications@github.com wrote:
Noticed that sometimes the login test which requires a cookie and the following tests are happening too quickly that the server doesn't recognize that the user is logged in.
I rapidly ran the curl commands (in a previous bug) to see if it caused the same issue and it did. I solved it by adding a wait between each curl call.
It would be nice to be able to add a wait between tests in msec either by commandline switch or a test config or both?
— Reply to this email directly or view it on GitHub https://github.com/svanoort/pyresttest/issues/149.
Ah ok, I should have searched for it! Thanks.
Just a reference, the delay parameter for each test is the delay in seconds before the test is run
- test:
- delay: 5
Noticed that sometimes the login test which requires a cookie and the following tests are happening too quickly that the server doesn't recognize that the user is logged in.
I rapidly ran the curl commands (in a previous bug) to see if it caused the same issue and it did. I solved it by adding a wait between each curl call.
It would be nice to be able to add a wait between tests in msec either by commandline switch or a test config or both?