14

The Time-Traveler’s Dilemma – State-Driven End to End User Journeys

This chapter addresses a different but common type of test automation – navigating through a survey, page by page, to reach a common endpoint. The challenge here is that decisions made by a user along the way can change the order of the pages displayed downstream – that’s if they appear at all. In this case, we need a fluid user journey that can take many branches to get to a common endpoint, as well as report if a path ended with an error page. It is inefficient to try to create an expanding path of pages for end-to-end automation. The amount of if/then branches or select/case options would be infinite and complex. To solve this, we will explore ways to identify each page ...

Get Enhanced Test Automation with WebdriverIO now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.