Hands-On Web UI Testing

Monday 1:30 pm to 5:00 pm, in Cabrillo 1

About This Tutorial

Unit tests are a great way to start Web app testing and automation, but the buck doesn’t stop there. Black-box feature tests that interact with the app like a user are just as important. They catch things unit tests cannot. The challenge is that Web UI tests are complicated and notoriously unreliable. Plus, the variety of browsers and versions can feel overwhelming. So, how can we write tests well?

In this talk, we’ll cover:

  • Using Selenium WebDriver like a pro
  • Modeling Web UI interactions in Python code
  • Handling multiple browsers
  • Writing “good” feature tests that are efficient, robust, and readable
  • Deciding what should and should not be tested with automation

We will use Python 3, pytest, and Selenium WebDriver for writing our tests. We will use the DuckDuckGo website as our product under test. After this talk, you’ll be able to write battle-hardened Web UI tests for any Web app, including Django and Flask apps. There will be plenty of example code available, too.


    Photo of

    Andrew Knight

    Andy Knight is the “Automation Panda” - an engineer, consultant, and international speaker who loves all things software. He specializes in building robust test automation solutions from the ground up. Andy loves Python and uses Django for side projects. He currently works at PrecisionLender in Cary, NC. Read his tech blog at AutomationPanda.com, and follow him on Twitter at @AutomationPanda.