best practices
September 26, 2019

UI Test Automation Best Practices [Infographic]

Scriptless Testing

UI testing is an essential part of any test automation pipeline. Yet to ensure that your UI test automation is done as efficiently as possible, it’s important to implement it strategically and thoughtfully.

This infographic offers a few important UI testing best practices:

UI Testing Infographic

Source for creating this infographic: Dzone.com

Name Your Tests Clearly

When naming your tests, make sure they describe clearly the functionality that you would like to test. It is also important to be aware of how your tool may organize your test automatically, whether alphabetically or according to their test suites.

Do Not Rely Solely on UI Testing

While important, make sure your UI testing is part of a larger agile test automation strategy. According to Mike Cohn’s agile testing pyramid, UI testing should only account for 10% of your test automation pipeline. UI tests are high-level, which means that they provide feedback more slowly and are tested later in the SDLC.

Choose Your Browsers Wisely

While cross-browser testing is important, don’t waste time testing each function across all browsers. Instead, use a limited test suite that performs all the main workflows and interacts with all web elements at least once to ensure browser compatibility.

Data-Driven Testing

Minimize your test maintenance with data-driven testing. With this type of testing, you can test the same workflow while using different data points. This takes away the need to create unnecessarily repeated tests.

Set Up Detailed Reporting

When choosing a UI testing tool, make sure to explore the reporting capabilities that the tools offer. Helpful reporting features include screenshots, videos, and integrations with notification tools.