Skip to main content

Identifying Patterns in Test Automation Code

25-minute Talk

You’ve inherited someone’s test code—now what? Learn to spot the good, the bad, and the missing patterns, fast.

Deep Dive session

Timetable

11:45 a.m. – 12:30 p.m. Tuesday 25th

Room

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

Test Automation

Audience

Test Automation Engineers

Key-Learnings

  • Analyse a code base looking for the use of patterns and antipatterns (Identify patterns & antipatterns used & potential use of patterns)
  • Judge the impact of the patterns being used in the code base
  • Plan suggestions on how to improve the code

You’ve just switched teams or companies, and you are being introduced to the test automation framework, and all its glorious underlying code. A scenario we’ve been in numerous times, and a scenario most of us will continue to experience. That code is now your code, there are new tests that need creating, test failures that need fixing and you are expected to hit the ground running.

We simply can’t just open an IDE and start writing code, we need to see what we are working with, we need to see what patterns are being used, and more important, which ones aren’t. This is an essential step in being successful on a new team, because without investigating the current code we simply can’t make good judgements on how to approach new work.

This doesn’t have to be a long process though. In this workshop we are going to explore a code base, quickly evaluate the patterns being used and make judgements on their use and practicality using our framework scorecard, that we’ll introduce in the workshop. In doing so, it’s also likely we won’t see some patterns we are perhaps used to seeing. That leads us to the final part of this short workshop, where we’ll plan suggestions on how to improve the code, and provide clear explanations as to why these suggestions are worth exploring.

Related Sessions

Deep Dive session
Wed, Nov 26 • 11:45 a.m. – 12:30 p.m.
Room D5 - Track 8: Security Testing Deep Dive

25-minute Talk

Continuous Integration/Continuous Delivery (CI/CD) Security Testing Test Automation

Deep Dive session
Thu, Nov 27 • 10:45 a.m. – 12:30 p.m.
Room D5 - Track 8: Security Testing Deep Dive

105-minute Workshop

Artificial Intelligence (AI) Security Testing Test Automation

Mon, Nov 24 • 8:30 a.m. – 4:30 p.m.

Full-Day Tutorial (6 hours)

Test Automation Testing Tools

Deep Dive session
Thu, Nov 27 • 2:45 p.m. – 4:45 p.m.
Room D1+D2 - Track 6: Test Automation Deep Dive

120-minute Workshop

Test Automation