NOV. 3 – 8, 2019


Make UI test automation easier, faster and more robust

Frontend developers and QA automation engineers should collaborate closely to improve test maintainability and application testability.

Test automation for web sites uses element selectors to access and interact with the objects on the page. Unfortunately, those selectors are subject to change as the application evolves making test automation engineers rework their code constantly. In an attempt to have reliable element selectors, most engineers use element ids as much as possible because they are unique on the page and tend to stay constant even when changes are made.

Unfortunately, the emergence of modern frontend libraries such as React made the use of element ids irrelevant as they are not used by the developers for event handling anymore. Moreover, the use of classes as element selectors has become a new obstacle for automation engineers to overcome since modern css-in-js libraries generate random class name.

This talk is about defining a strategy for test-specific attributes that can be added to the web page DOM in order to improve test maintainability and application testability. First, the talk will cover how adding unique attributes to each page element will keep test maintenance to a minimum when there are minor changes in the UI without a change in the application behavior. Then, the talk will focus on how adding generic attributes for elements with the same structure (such as tables, lists…) can help organize the automated test code and avoid duplication. Pushing the concept further into making the application easily testable, the talk will highlight how adding some helper data in these attributes can make tests more efficient.

Overall, the talk will cover how close collaboration between Frontend developers and QA automation engineers can make test automation easier, faster and more robust.

More Related Sessions

30-minute Talk

11:10-11:40 Room F3 - Track 3: Talks

What do you mean... a Quality Owner?!

30-minute Talk

14:25-14:55 Room F1 - Track 1: Agile Testing & Sports

How to improve the I in Agile

Equipment required

120-minute Workshop

14:25-16:25 Room E1+E2+E3 - Track 4: Workshops

WARNING: This is not a workshop, this is a testing meetup.

Other Events:

Your privacy matters

We use cookies to understand how you use our site and to give you the best experience on our website. If you continue to use this site we will assume that you are happy with it and accept our use of cookies, Privacy Policy and Terms of Use.