Best practices
How to prepare your app for testing
1) Ensure your environment is reachable from where tests run
2) Add stable selectors (before you record tests)
3) Make UI behavior deterministic (remove randomness)
4) Treat CAPTCHA as an environment constraint (not a test step)
5) Secure your environment with HTTPS
6) Set up dedicated test accounts
7) Use waiting conditions and timeouts intentionally
8) Whitelisting for cloud access
9) Manage MFA Exceptions
10) Parameterize environments and test data with variables
11) Optimize network traffic
12) Build in observable checkpoints (assertions)
Mistakes to avoid
1) Automation overload
2) Recording long “do-everything” tests too early
3) Relying on volatile selectors (dynamic classes, structure, position)
4) Forgetting "GoTo" steps
5) Treating CAPTCHA as “something to click through”
6) Running locally and minimizing the test window
7) Using static sleeps instead of waiting conditions
8) Neglecting manual "Hover" recording
9) Using shared accounts for Parallel runs
10) Ignoring the “cloud vs local” reality
11) Ignoring test data cleanup
12) Duplicating shared flows everywhere instead of reusing them
When something breaks: fast triage
Discover how to work with BugBug
Also see

Last updated
Was this helpful?
