AUTOMATED FUNCTIONAL TESTS BASED ON SELENIUM FOR DJANGO PROJECTS
summary
Django projects use Selenium with LiveServerTestCase and a Page Object pattern to keep UI tests readable; an in-repo test app runs functional scenarios against a live test server. A corpus of ~3,000 tests (≈200k lines) once takes ~30 hours, so tests run in parallel via Selenium Grid (or cloud providers) to cut wall time; Factory Boy/Faker generate data, explicit waits replace implicit ones, and heavy duplication (like repeated UI logins) is mocked out — the setup proves reliable in practice.
AI-written summary · about
chapters (18)
- 0:00Introduction and speaker background
- 3:53What is Selenium and why use it
- 6:47Challenges in growing test suites
- 8:11Project structure for functional tests
- 10:01Page Object Pattern benefits
- 12:58Basic page implementation example
- 14:24Django LiveServerTestCase advantages
- 16:53Reducing test execution time
- 18:41Selenium Grid explained
- 21:53Parallel test execution setup
- 22:17Generating test data best practices
- 23:20Writing maintainable functional tests
- 25:15Q&A session part 1
- 26:49Q&A session part 2
- 27:50Q&A session part 3
- 29:00Q&A session part 4
- 30:24Q&A session part 5
- 31:29When to use Selenium
