Clean Coding Practices for Test Automation

SEPTEMBER 13, 2022 7AM PST

Watch Now
SRINIVASAN SEKAR

SRINIVASAN SEKAR

LEAD CONSULTANT THOUGHTWORKS

SAI KRISHNA

SAI KRISHNA

LEAD CONSULTANT THOUGHTWORKS

MANOJ KUMAR

MANOJ KUMAR

VP DEVELOPER RELATIONS LAMBDATEST

Abstract

No organization wants to allow a code smell to linger. Automation frameworks need to be kept as clean and efficient as possible, which is why automation testers should conduct code smell analysis at regular intervals.

When it comes to software development, some programming teams focus on visual appeal over code quality. This is short-sighted. A code smell is a sign that something in the code needs to be fixed but is challenging to fix and extend to new features. Even if the user interface of a new app looks great, if the underlying code is hard to understand and maintain, it will be difficult to update and scale.

In this LambdaTest webinar, Sai Krishna, Lead Consultant, ThoughtWorks, and Srinivasan Sekar, Lead Consultant, ThoughtWorks, teamed up with Manoj Kumar, VP Developer Relations at LambdaTest to share tips on how to build a clean and effective test automation framework. They also discussed implementing clean code principles like SOLID and DRY and seeing how test automation can improve.

Srinivasan starts by explaining what a clean code looks like and highlights the different types of code smells they will eliminate through their live sample test script. He discusses the two major clean code principles - Single Responsibility and the Open-closed Principle.

Following that, Sai showcases a live example of eliminating the code smells by performing live testing on a sample WebDriver script. In addition, Srinivasan explains the concept of Single Responsibility and Open-closed Principles in depth to the viewers. Further, Sai discusses the best practices for writing clean code.

In the end, we had a Q&A session.

Did you miss the webinar? Check out the video recording on the LambdaTest YouTube channel.

Share:

Watch Now