Skip to main content

Refactoring Poorly Designed Test Automation Code

120-minute Workshop

In the final part of our Automation Pattern Deep Dive we are going to get our hands dirty but clean our code. It’s time to code.

Deep Dive session

Timetable

2:45 p.m. – 4:45 p.m. Tuesday 25th

Room

Room D1+D2 - Track 6: Test Automation Deep Dive

Test Automation

Audience

Test Automation Engineers

Key-Learnings

  • Refactor existing test code to use new design patterns
  • Demonstrate the improved test code and explain the improvements

You’ve joined a new team and reviewed the automation code base and have a number of suggestions you want to make to improve the code, or there is a list of outstanding suggestions that need implementing. But where do we start? How can we make such refactors in the least disruptive way?

We can’t just start hacking away at the framework. It’s unlikely we’re going to get weeks/months to make one large refactor and commit, and what happens to all the new tests that need adding during that time? We have to take an incremental approach, targeting the most valuable areas first.
In this workshop we are going to take existing code judgements and improvement suggestions and implement them in a way that maximises our efforts and returns value quickly. You’ll be free to implement these suggestions as you wish, bringing in your own experiences, following our examples, or even vibing with AI if you wish. But the crucial part of this workshop will be demonstrating the changes you’ve made and explaining why you believe they have improved the code. A crucial step in getting buy-in from stakeholders for future improvements or even to have started such work.

*The tests will be written in TypeScript, but the patterns are language agnostic. 
 

Related Sessions

Virtual Pass session
Tue, Nov 25 • 1:30 p.m. – 2:30 p.m.
Room F1+F2+F3 - Plenary

45-minute Keynote

Testability Test Automation Testing Tools

Virtual Pass session
Wed, Nov 26 • 10:45 a.m. – 11:30 a.m.
Room F2 - Track 2: Talks

25-minute Talk

Collaboration & Communication Test Automation Testing Tools

Virtual Pass session
Thu, Nov 27 • 4:00 p.m. – 4:45 p.m.
Room F1 - Track 1: Talks

25-minute Talk

Coding for Testers Collaboration & Communication Test Automation

Mon, Nov 24 • 8:30 a.m. – 4:30 p.m.
F-,E- & D-Rooms

Full-Day Tutorial (6 hours)

API Other Test Automation