Test Junkie tutorials

Each tutorial teaches one Test Junkie concept with examples you can run, from core features to running in CI and a full Selenium WebDriver framework.

Concepts

Core features

The capabilities that set Test Junkie apart, each explained with working examples.

Pipelines

CI and the command line

Running Test Junkie where it matters: in your pipeline, with results you can act on.

Patterns

Recipes

Short, focused patterns for everyday problems.

Series

Selenium WebDriver series

5 partsIntermediateAbout an hour

Build a small UI test framework from scratch, then test a real website with it. Each part adds one layer to the framework.

Start with part 1 → Read in order: each part builds on the last.
What you’ll buildpart
src/
├─ utils/Settings.py              P1
└─ pages/
   ├─ Browser.py                  P1
   ├─ UiObject.py                 P2
   ├─ BasePage.py                 P3
   ├─ HomePage.py                 P3
   ├─ DocumentationPage.py        P3
   └─ components/
      ├─ PageHeader.py            P3
      └─ PageFooter.py            P3
tests/
├─ suites/NavigationSuite.py      P4
├─ suites/DocumentationSuite.py   P4
└─ TestRules.py                   P5
  1. Part 1 · 10 min

    Managing browsers

    A Browser class that gives every test thread its own WebDriver, so tests can run in parallel.

  2. Part 2 · 10 min

    Wrapping UI elements

    A UiObject that waits, finds and acts, so tests never sleep.

  3. Part 3 · 15 min

    Page objects

    Pages and shared header/footer components, with locators that survive a redesign.

  4. Part 4 · 15 min

    Writing tests

    33 parameterized navigation checks from two methods, run in parallel with tj run.

  5. Part 5 · 10 min

    Catching JavaScript errors

    One rule that fails any test that causes a JavaScript error.