codeforequity-at / botium-core

The Selenium for Chatbots - Bots Testing Bots
https://www.botium.ai
MIT License
230 stars 64 forks source link

Rate limit on SimpleREST #178

Closed staticdev closed 4 years ago

staticdev commented 5 years ago

Is your feature request related to a problem? Please describe. Some bots call APIs that has rate limits.

Describe the solution you'd like A parameter to execute tests with a maxium of X per second.

Describe alternatives you've considered Setting a delay between tests could be an alternative.

Additional context Executing tests too fast could make users blocked.

codeforequity-at commented 5 years ago

I agree, this might be very useful. I added it to our backlog.

Your suggested alternative solution could work: just add a PAUSE instruction to the convo file in the first #me section:

...
#me
PAUSE 5000
text to send ...

#bot
...

This will wait 5 seconds before starting the conversation.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

codeforequity-at commented 4 years ago

@staticdev This was added in the latest Botium Core. https://botium.atlassian.net/wiki/spaces/BOTIUM/pages/360603/Botium+Configuration+-+Capabilities#Rate-Limiting