GPN19:recheck and the Sorcerer's Stone: Turning Selenium into Adamantium

aus dem Wiki des Entropia e.V., CCC Karlsruhe
Version vom 30. Mai 2019, 13:15 Uhr von Fahrplanbot (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „Ein Vortrag von Jeremias Rößler auf der GPN19. Ever had that: after a simple change, suddenly 50+ tests are failing! Brittle tests that hinge on GUI spe…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)

Ein Vortrag von Jeremias Rößler auf der GPN19.

Ever had that: after a simple change, suddenly 50+ tests are failing! Brittle tests that hinge on GUI specifics and result in the dreaded NoSuchElementException are a main headache when testing with Selenium.

The open source project recheck offers a simple and elegant solution. Not only is a virtual identifier unaffected by UI changes, you can define it for otherwise hard to specify elements, i.e. that would require complex xpath or CSS selector expressions. And on top of that, tests are easier to create and maintain and yet much more complete in what they check. This talk gives a practical introduction to the underlying approach and the tool, complete with a life coding session.

Vorlage:Navigationsleiste GPN19:Vorträge