15 Reasons Why You Should (or shouldn’t) Automate a Test

Automation Testing Published on:
Test Management Machine Learning Robot

Just because you can automate something doesn’t necessarily mean that you should. In some cases, it might be more beneficial to use manual testing to test several aspects of the project accurately. 

In this post, you’ll learn: 

  • some factors to consider to help determine which manual tests should or should not be automated
  • several guidelines to help identify good candidates for test automation
  • where to find more automation testing tips

(FYI: I originally wrote this article in 2010, but the principles I cover are timeless and still apply)

INDEX

Tests that should be automated:
Tests that should not be automated:
Conclusion

What to automate robot

Tests that should be automated:

Here are some signs that a test may be a good candidate for an automated test:

  1. Tests that need to be run against every build/release of the application, such as smoke test, sanity test, and regression test.
  2. Tests that utilize the same workflow but different data for its inputs for each test run (data-driven and boundary tests).
  3. Tests that need to gather multiple information during runtime, like SQL queries and low-level application attributes.
  4. Tests that can be used for performance testing, like stress and load tests
  5. Tests that take a long time to perform and may need to be run during breaks or overnight. Automating these tests maximizes the use of time.
  6. Tests that involve inputting large volumes of data.
  7. Tests that need to run against multiple configurations — different OS & Browser combinations, for example.
  8. Tests during which images must be captured to prove that the application behaved as expected.

Automation Testing Courses

Important: Remember that the more repetitive the test run, the better it is for automation

What should not be automated

Tests that should not be automated:

Here are some signs that a test may be better as a manual test:

  1. User experience tests for usability (tests that require a user to respond as to how easy the app is to use).
  2. Tests that you will only run one time. (This is a general rule. I have automated one-time tests for data population situations in which the steps can be automated quickly and when placing in a loop can produce thousands of records, saving a manual tester considerable time and effort).
  3. Test that needs to run ASAP.
  4. Tests that require ad hoc/random testing based on domain knowledge/expertise.
  5. Tests without predictable results. For automation validation to be successful, it needs to have predictable results in order to produce pass and fail conditions.
  6. If a test needs to be manually “eyeballed” to determine whether the results are correct.
  7. Test that cannot be 100% automated should not be automated at all — unless doing so will save a considerable amount of time.
  8. Test that adds no value.
  9. Test that doesn't focus on the risk areas of your application.

Conclusion

Hopefully, this short post gave some brief insight into what should and should not be automated. For more tips on automation testing, be sure to subscribe to the Test Automation Podcast.

What would you add or remove from this list?

Let me know.

Work With Me

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
Test Management Machine Learning Robot

AI Powered API Testing (Meet Loadmill)

Posted on 09/21/2022

I just learned of a great tool (Loadmill) to help automated API test ...

Introducing Testsigma: Open-Source Test Automation Platform

Posted on 09/12/2022

Let me guess—you are already using Selenium. So, why would you need yet ...

Can You Use Selenium Testing for API Testing?

Posted on 08/17/2022

One question that came up during this year's Automation Guild session on Testing ...