Quo vadis

Dehla Sokenou, how will software testing change through AI?

July 2023

Dr.-Ing. Dehla Sokenou feels at home in all phases of software development, with a particular focus on everything around quality assurance and testing. At WPS she works as a test and quality manager and software architect. She is also spokesperson of the GI working group Test, Analysis and Verification of Software (TAV) and a member of the speakers’ committee of the working circle Innovative Test Methods.

Information about the person as of summer 2023.

Where do we stand today with testing using AI?

From my point of view there are currently two questions we as testers have to deal with. On the one hand, AI can support us in testing, by generating test cases and test data and by assessing the quality of our test suites. On the other hand, in the role of the tester we also have to deal with testing AI systems. In my view we are still at the beginning of the road, and that applies to both questions.

Take the creation of test cases as an example. David Faragó, for instance, tried in an experiment to generate unit test cases for an existing program with the help of ChatGPT. The results were mixed, and even after several attempts the test suite still contained errors. Details can be found in his talk on the topic at the 48th TAV meeting. Doubts arise about the quality of the test cases, which, if you think it through, can currently have fatal effects in the case of test-driven development, since poor tests lead to poor, faulty software.

Looking at the testing of AI systems, there are good approaches and even an ISTQB syllabus, but we still lack experience with AI systems. They work differently from classic software systems, and as a tester you are forced to understand this different way of working. For example, there are completely different test data, boundary conditions and failure cases. Looking at one of the typical applications, image recognition, one is sometimes surprised as a human how a few minimal changes to an image get it sorted into a completely different class. A well-known example is the influence on traffic sign recognition by simple small stickers, shown by Anurag Ranjan et al. in the paper “Attacking Optical Flow”. Anticipating and covering these situations in testing is enormously challenging.

How will AI change software testing in the next five years?

The future is of course hard to predict. My assumption would be that AI will influence software development, but perhaps differently than we believe now. I am looking primarily at machine learning in all its facets, which in my view currently has the greatest potential.

I could imagine that testing will change less than the programming of software. Test cases created by humans then set the framework that the AI has to fulfill with a corresponding program: classic test-driven development, but now with a division of labor between human and AI. Software developers then increasingly move into the role of the tester, which they have already taken on in part anyway because of TDD and agile development.

For the area of testing AI systems, we will in my view need specialized test experts who are more than just testers. They will provide special test data for different AI tasks. In contrast to classic software, test data serve not only to validate the system but also to train it. Testers will above all have to keep adapting the test data and providing new data, since AI systems keep evolving over time through new, productive input data and may have to be sharpened again if recognition rates drop, for example if the classification of images gets worse and worse over time.

Which skills do testers need for that?

Besides classic testing skills, special knowledge will be required especially in the area of testing AI systems. The skills of a tester naturally include curiosity, the joy of trying things out, trying unusual things, but also a very systematic approach. In my view, however, the focus in testing AI systems will shift toward the first-mentioned skills. Systematic approaches remain important, but I believe they will recede somewhat into the background. The reason is the behavior of AI systems mentioned above, of possibly generating completely different outputs for slight changes in the input. Humans can counter this with their creativity, uncover such errors in testing in this way and close the gaps with corresponding new test data for training and validating the system.

In addition, a better understanding of the AI systems’ view of the world will certainly be required. A look at the probabilities assumed by the AI, for example into which class a part of an image falls, can already give indications of weaknesses in recognition and serve to derive new test data. Besides pure function, security aspects will in my view play a big role, and for that too it will be important to understand what the AI “thinks” and how it can potentially be outsmarted. The paper mentioned above presents this as so-called “white-box attacks”.

Since test data also serve to train AI systems, the selection and assessment of test data will certainly play a big role in testing. Which data are suitable to train the system appropriately? Which part of the data do you use to validate the system? How do you monitor the system during its lifetime? And can you, as a tester, determine whether the test data are corrupted and perhaps train the wrong thing, maybe even with malicious intent?

Will the role of testing still exist in 10 years?

As you can see above, I do believe the role of testing will still exist in ten years. Quite certainly, priorities will shift and overall less will be programmed by hand, and this probably also applies to test automation. But since I do not believe AI systems should test themselves, if only because they could move away from their actual task through mutual influence, at least this task will remain for us human testers. In any case, I am curious about further developments and glad if we, in our role as testers, will not be superfluous in the future either.

More posts

View all →