Writing Maintainable Test code with Selenium, Spock and more

preview_player
Показать описание
It is well known that Selenium-driven test automation can be fragile. The test code itself can be hard to maintain due to changes in the underlying app, especially as the number of tests grows. Especially when many of those tests are fairly similar in steps, but differ in test data. In this session, Viktoriia will showcase a solution she developed for that: using Spock's structure for writing clear data-driven test code and splitting code into reusable units to drive behavior and test scenarios to implement the logic of testing. She will walk through a problem and the logic of the solution, then do a demo transforming a standard "one test in a file" code to a scalable easy to maintain data-driven test code. Viktoriia will also share the test code on GitHub after the conference. Get ready to discover how to write maintainable and scalable test code; how to use data to drive the behavior of your tests; how to use Spock for multiple-step scenarios.
Рекомендации по теме