Skip to content

Test Automation – what is worth automating, and what is not?

| 8 min read

Jan Proczek
Jan Proczek | Test Automation Engineer
Share

What are automated tests?

Automated testing is a method of testing in which the tester sets up the appropriate environment and writes a script containing the steps to be performed, along with the expected results. The computer then executes the stored instructions and verifies whether the results match the expected outcomes. Unlike manual testing, the tester does not have to perform all the steps themselves or check the results each time.

This approach allows prepared tests to be reused multiple times, reduce the number of repetitive tasks, and save the team time. An additional benefit is the ability to schedule their execution – for example, overnight or after each app update.

That all sounds great. But does that mean we should automate every test that can be automated? Not necessarily.

Is it worth automating all tests?

Let’s consider two theoretical scenarios.

Scenario A:

The team checks the ordering platform every day. As part of these tests, they verify, among other things, the ability to log in to a user account, create a new order, and complete a payment. These are key system functionalities, and their proper operation directly affects customers’ ability to use the application.

Scenario B:

The team is working on a form that is still in the development phase and is regularly adapted to the client’s changing requirements. The form is one of many additional features of the application that are not essential from a business perspective.

It’s not hard to see that automation makes more sense in Scenario A. The prepared test can be run every day without requiring the tester to perform repetitive tasks. It can also be scheduled to run before the team starts work, ensuring that any potential issues are detected early enough.

In Scenario B, the situation is completely different. Setting up automation would require spending time writing a script and then regularly updating it to reflect changes to the form. It may turn out that each subsequent modification to the functionality will also require work on the test. In such a situation, manual testing may simply be more effective.

Does this mean it’s not worth automating the form? No. It simply means that it doesn’t have to be our priority. Once the functionality reaches its final form and the team has the necessary resources, automation may prove to be a worthwhile investment.

This distinction is very important: deciding whether it’s worth automating a given test is one thing, but determining when it’s best to do so is another.

We shouldn’t automate tests just because we can. Instead, it would be a good idea to consider which test cases will yield the greatest benefits and in what order we should address them.

What questions should you ask yourself before automating a test?

Before you start preparing a script for automation, it’s a good idea to answer a few questions. They’ll help you assess whether automating a specific test case is justified and whether it should be high on your list of priorities.

1. How important is the tested functionality?

Not all application features are equally important. An error in the login, order placement, or payment process can prevent users from using the entire system and lead to serious business or financial consequences. In contrast, the incorrect display of a less important interface element may have a much smaller impact on users.

Therefore, it’s worth considering, first and foremost, automating tests that cover the application’s most critical functionalities. Running these tests regularly will allow you to detect problems more quickly in areas where failures can be particularly costly.

2. How often is a given test run?

This is one of the most important factors affecting the cost-effectiveness of automation. The more often we run a given test, the greater the chance that the time spent preparing the script will pay off in the future.

For example, a test run daily can yield significant savings compared to a test that is run once a month. In Scenario B, the time required to set up and maintain the automation may be disproportionately high relative to the potential benefits.

Regression tests are a special case, as they often involve a large number of repetitive scenarios. Running them regularly means that automation can significantly streamline the QA team’s work.

3. Are the test and the tested functionality stable?

Automating functionality that is undergoing intensive development can be problematic. Changes to the interface or business logic often require updating previously created scripts.

It’s therefore worth considering whether the tested functionality has already reached a sufficiently stable state. If not, it might be better to postpone automation and focus on manual testing for now.

This does not mean you should wait until the entire project is complete before automating. Many features are developed independently of one another and can be automated at earlier stages.

4. Will the cost of writing and maintaining the test outweigh the benefits of automating it?

Preparing an automated test involves more than just writing a script. You must also factor in the time needed to set up the environment, prepare test data, debug, and maintain the test afterward.

If a test is complex, changes frequently, and requires regular updates, automating it may turn out to be much more expensive than we initially anticipated.

We should view automation as an investment. Just because we managed to create a working script doesn’t necessarily mean it was a good decision.

5. Will the test add new value, or will it duplicate existing tests?

Before starting automation, it’s a good idea to check whether a similar case is already covered by other tests. Sometimes, there are several scenarios in the repository that verify the same application behavior.

Increasing the number of tests does not always mean increasing the level of security. If another automated test checks exactly the same thing as several existing tests, it may not add any value. At the same time, it will require execution, analysis, and maintenance.

Instead of focusing on the number of tests we’ve written, we should pay attention to which risks they actually cover.

6. How long does it take to manually test a given feature?

It is worth finding out whether automation could significantly reduce testing time. A good example is verifying complex forms using multiple data sets. Manually checking dozens or hundreds of combinations can be very time-consuming. A prepared script will perform these tasks automatically, while also reducing the risk of human errors resulting from repetitive work.

Writing a test script is just the beginning

One of the most common mistakes is evaluating the cost-effectiveness of automation only based on the time it takes to write a script. This is just one of many stages of the process.

After preparing the test, you need to ensure it runs correctly, configure the environment, provide appropriate test data, and set up the execution process. Then comes the analysis of the results, which can also be quite time-consuming.

Not every test that returns a “FAIL” result means there is a bug in the application. The cause could be issues with the test environment, incorrect test data, a temporary communication problem, or the script itself, which is no longer up to date due to changes in the application.

The tester must therefore analyze the result, determine the cause of the failure, and decide what action to take. When a large number of tests are run regularly, this can constitute a significant part of daily work. Another challenge is maintaining the test repository. Software is constantly being developed, and the requirements, interfaces, and logic behind individual features are constantly changing. Automated tests must also be adapted to these changes.

As a result, as the number of tests increases, we may find that we’re spending more and more time analyzing and updating them, and less and less time automating new test cases.

Automation as an investment, not a goal in itself

So how should we approach automation to ensure it actually delivers benefits?

First and foremost, it’s important to set priorities. With limited project resources, we can’t automate everything at once. We should therefore start with the cases that have the greatest business impact, are performed frequently, and are relatively stable.

Our earlier example with the form (Scenario B) illustrates this well. There’s no reason to completely abandon its automation. However, if a team has to choose between preparing a test for a key ordering process or for an unstable form, it’s definitely more sensible to focus on the more important functionality.

Only once the most important areas have been adequately covered can we move on to lower-priority features. It’s also a good idea to regularly revisit earlier decisions and check, for example, whether an automated test written some time ago is still relevant.

It’s also important to remember that manual and automated testing aren’t in competition with each other. They are two complementary approaches that help achieve the same goal: the efficient and early detection of bugs. Automation works well for repetitive and stable scenarios, while manual testing offers greater flexibility when exploring new features and verifying solutions that are still evolving.

The point isn’t to have as many automation tests as possible. The point is to make the best use of the available time and resources, and for the software to have as few bugs as possible.

Jan Proczek

Jan Proczek

About

Jan is a QA Test Automation Specialist with over 5 years of experience in the IT industry. He has a strong background in test automation, particularly using Robot Framework and Python. Jan has contributed to ensuring the quality of desktop and web applications, including API testing.

Contact us about your career

Your next chapter. Become a Jiter

Magdalena Dereszewska

Head of HR