Member-only story

Optimize Selenium WebDriver Automated Test Scripts: Maintainability

Simple techniques to make maintaining automated test steps easier.

Zhimin Zhan
Geek Culture

--

Working automated test scripts is only the first test step to successful test automation. As automated tests are executed often and the application changes frequently, it is important that test scripts need to be:

Fast
Easy to maintain
Easy to read

The №1 technical reason that most test automation attempts failed is that the team fail to maintain the automated test scripts. That’s why most software companies have tried test automation but failed to keep 20 automated tests ( Level 1 of AgileWay Continuous Testing Grading) running reliably and regularly.

In the article, I will show you some simple and practical tips, at the test step level, to enhance the maintainability of automated functional tests.

At a higher level, automated test scripts must be designed with maintenance in mind, such as Maintainable Test Design.

These techniques/tips are:

  • One Test Script Line for One User Operation
  • Default Parameter Value
  • Extend function behaviour with optional Hashmap

--

--

Responses (1)