How do you ensure your Automated regression 'testing'(checking) suite is effective and relevant

Your regression testing suite has now grow into 5000+ scenarios and runs daily.

What that gives you? Confidence? Peace of mind? Nothing apart from something runs everyday?

When was the last time someone reviewed your regression testing suite? Do you know what’s in your regression suite? Do you care? Is it still on track with your original goal? Is the original goal still relevant?

Comments :point_down:

1 Like

Great question @testerawesome!

It highlights the side of automation that seems rarely considered, and it helps facilitate that conversation.

I’ve seen regression suites that have over a thousand tests and the team appears to boast about that number. Of course, it was never about the number. Tests are there to help us learn about application behaviors and there changes due to code updates.

When you pursue automation, you pick up both ends of the stick. You create the automation to assist in testing AND, just like any program, you accept responsibility for its maintenance. In my opinion, a regression that has many, many tests probably has duplicated tests and stale tests. While you might find maintenance opportunities when tests fail, you may not discover the tests that need to be scrutinized for value and relevance.

Some methods of ensuring automated regression relevance and efficacy are frequent execution of all tests, and periodic inspection. The inspection reviews each test for information objective, relevance, and value.

Joe

3 Likes

The frequency of which the tests in a Regression Suite should be reviewed varies depending on the type of software that is being tested. For example, my last testing job involved testing a new web product that was being completely revamped, ui and all from one week to the next. So our regression tests for it were constantly changing and needing to be updated continuously because “existing functionality" was also constantly changing. Alternatively, we also tested an older legacy version of the software that not many changes were made to, therefore, the tests in the Regression Suite for it did not need to be updated nearly as often.
I believe the key is to make sure the Regression Testers are involved in and fully aware of new features being developed as well as how the defects are being fixed. This will save a lot of time because the Regression Testers will be able to spot changes that may be needed to the existing tests ahead of time. Also, anytime functional tests are run, if there were new tests created that should trickle into regression testing, the regression suite should be updated as well.
Also, the entire team especially the Bas, SMEs, and developers, should review the regression suite regularly to offer feedback.
Having the regression tests up to date gives peace of mind that the coverage of those tests is still valid when the tests are ran and that the results are accurate and not based on incorrect expectations.

2 Likes

Good question to which I do not have an answer, since in the large regression suites scenarios I’ve been in this have not been solved.

I do have an area which I would like to explore and that is Mutation Testing https://en.wikipedia.org/wiki/Mutation_testing which has the main purpose of measuring the quality of your tests. It randomly mutates your code and thus introduces bugs in your code. You then run your tests to see that they manage to capture these bugs. This enables you to spot weak and redundant tests.

Inspired by a colleague of mine it would also be interesting to create a ranking system where every time a test finds a valid bug it gets a point and every 10-20 runs get -1 point. Then you should after a while get some information about the value of your tests.

2 Likes

Sounds really interesting, thank you for sharing the mutation testing. I am going to research more about it this week.

It will be great if you could share your story after you explore the mutation testing

Hello @ola.sundin!

I would explore a rating system cautiously. There are many goals in executing a regression suite. Finding a bug is one goal. In my opinion, a quantitative assessment of regression suite efficacy would need to be tempered with qualitative methods such as conversations about information objectives, purpose, changes in the application, or changes in technology.

Joe

2 Likes

Ensuring automated test cases are covering the regression suite at a certain level and effective is important for automation leads. We will consider below points to put our views:

  1. If you have 5000+ automated test cases or scenarios, it’s really difficult to observe what is duplicate and what is pending to be automated. Well, quality assurance services provider have both manual and automation teams for a project. They can use the following approaches:

    • Here, functional team updates the test cases for updated features. Those test cases should be passed to automation team for re-factoring of automated scripts.
    • Automation team must ensure to remove the code which is not relevant.
    • Dev, functional and automation teams must be in sync. It will help automation team to keep making required changes in automation suite.
    • There must be internal audit for automation framework to update or remove the technologies or strategies used in frameworks.
  2. Teams must maintain the status of test cases to Manual or Automated in test management tool to ensure all teams. The test cases which are marked as Automated, should not be run by manual testing team to save the regression time.

  3. Functional test teams to create new test cases for newly introduced features and must pass to the automation team to automate them.

Hope this information is helpful for you.

Your regression testing suite has now grow into 5000+ scenarios and runs daily.

The number doesn’t make a difference on anything to me at least.
How many are commented, or checking if 0=0, or just clicking around without assertions, or asserting the irrelevant things, or duplicated between themselves, or already duplicating unit/api checks, or flaky, or outdated, or …

But there are managers who count as a sense of progress and coverage.

What that gives you? Confidence? Peace of mind? Nothing apart from something runs every day?
Maybe this should be addressed to the managers paying for it, and to those managers that use it as a guide for the releases. I am constantly challenging what’s automated and how - what’s the value of doing that compared to building or updating one new feature each week? Or even building a completely new product that can get the company another source of revenue. It depends always on the risks that each application has, the context, and the motivators behind the actions.

When was the last time someone reviewed your regression testing suite? Do you know what’s in your regression suite? Do you care? Is it still on track with your original goal? Is the original goal still relevant?
I’ve been in about 7 automation projects. Never was one of them reviewed.
I do not know. I do not care - as I don’t own this project.
There usually isn’t an original goal/mission.