Software Testing and Development Blog Posts

Subscribe to the full blog feed using RSS

All Posts | Categories | Archive

Can we effectively use Thread.sleep?

Effective use of Thread.sleep

4 minute read - Test Automation

TLDR; I use Thread.sleep as a tactic, not a strategy, unless I’m simulating random user pauses, in which case my implementation of that abstraction will involve a sleep.

When do you use Thread.sleep?

I avoid Thread.sleep as much as possible when automating.