Good Practices for Testing Web User Interfaces

Track:
Testing, Quality Assurance, Security
Type:
Talk
Level:
intermediate
Duration:
30 minutes

Abstract

Often our UI tests are failing because they are flaky and slow, or because the underlying server is slow. That makes the test suite very unstable, and makes it harder to find real issues. In an Open Source world this problem is even worse when your tests run as part of a gating job, because it blocks patches from being merged. In this talk we will explore a few techniques that make our test suite more stable and faster, together with specific code examples using PyTest and Selenium.

Attendees will get a chance to learn about:

  1. The difference between unit tests and integration tests.
  2. Using API calls to perform test setup and verification.
  3. Limiting the scope of a test by Pytest mocking.
  4. Advanced features like dependency injection and parametrization.

This session is ideal for anyone who needs to make their user interface test suite more stable or wants to get started writing tests for their web application.