Quo vadis

David Faragó, how will software testing change through AI?

August 2023

David Faragó is a deep learning engineer at mediform.io, a company that develops communication solutions such as phone bots for medical practices. There he deals with fine-tuning large language models, prompt engineering and data science, but also with software engineering, from software development through DevOps to quality assurance. On the side he has his own company QPR Technologies, which offers consulting and development services on innovative quality assurance, for example by means of AI or static code analysis. He founded the company with colleagues after his doctorate on symbolic AI, formal methods and model-based testing. He is a member of the steering committee of the GI working group Test, Analysis and Verification (https://fg-tav.gi.de).

Information about the person as of summer 2023.

Where do we stand today with testing using AI?

Still in its infancy. There are actually already many testing tools that use AI intensively. One of the better known is Katalon, and one of the most exciting I find is Diffblue. In research, according to a literature survey from last year (https://arxiv.org/pdf/2201.05371.pdf), the test activities influenced by AI break down as follows:

Khaliq et al: “Artificial Intelligence in Software Testing: Impact, Problems, Challenges and Prospect”, https://arxiv.org/pdf/2201.05371.pdf

Despite their availability, AI-based tools for testing are, according to a Stack Overflow developer survey, used or planned for this year by only 24% of software developers and testers. The corresponding training and certifications, such as the ISTQB Certified Tester – AI Testing (CT-AI), are also not yet widespread.

Big tech has a head start in testing with AI: with their size, it also pays off most there to invest the time to develop company-specific, fitting solutions and integrate the latest AI technologies. For example, Google uses machine learning company-wide to prioritize or even select test cases for execution, and likewise failing test cases in failure analysis. These company-specific solutions are unfortunately mostly not published, but are at least presented at conferences such as https://gi.de/veranstaltung/47-tav.

One area that is developing rapidly and always picks up the state of the art of AI is AI coding tools such as GitHub Copilot. These are becoming ever more popular in software development, and their use also affects testing: according to the Stack Overflow survey above, 34% of respondents expect a very strong impact on testing within a year. This is also technically understandable, because on the one hand these tools help with test case creation, at least at the component test level. On the other hand they also lead to a changed bug distribution compared with purely human-written code. For example, AI coding tools tend toward code that is representative of GitHub, which on average is not the code of the highest quality. This is presumably also the reason why code written with AI coding tools contains an above-average number of security vulnerabilities. Often the errors in the code shift from one’s own logic to the calls of third-party libraries, since AI often uses wrong information here (about unsuitable or outdated dependencies). In addition, there are entirely new kinds of errors, for example through hallucinated code. I also address these problems in a talk on prompt engineering for software developers (https://youtu.be/Sadj217TA1Y or https://bit.ly/PE4devs-slides). Testers should react quickly to the changed bug distribution.

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

Most larger software products will integrate AI in the coming five years to improve their functionality. Testing tools will therefore increasingly be able, through AI, to reduce repetitive manual tasks and increase the efficiency of testers.

Since the AI integrated into software products must also be tested, more and more testers will acquire AI competencies and, conversely, AI experts will acquire testing competencies. For both, the ISTQB Certified Tester – AI Testing (CT-AI) could play a decisive role.

Which skills do testers need for that?

AI is already changing the software development process today (see the answer to question 1) by taking over repetitive, simple tasks, which increases productivity and allows the freed-up capacity to be used differently. In five years this effect will be so strong that the tasks of testers and developers will change greatly. Presumably some will use their newly gained capacity to solve more business-oriented problems and move more toward product management or requirements engineering. Others will use their capacity to solve the technically ever more complex tasks, especially those that arise from integrating AI into software products. This could lead to testers developing into data quality analysts or data scientists, and software developers into machine learning engineers. Depending on which path they take, the skills of requirements engineers, data quality analysts or data scientists will additionally be needed.

Because of the disruption caused by AI, only fuzzy forecasts are possible. But it is increasingly heard: “AI will not take your job, but someone skilled in AI might.” In my experience, most testers are very open to AI and the resulting change in technology and skills, and can therefore look to the future with curiosity instead of fear.

Will the role of testing still exist in 10 years?

Definitely. Richie Seidl had an interesting discussion about this with Thomas Steirer in the podcast episode https://www.richard-seidl.com/podcast-thomas-steirer-ki-revolution: even in times when AI can program and test fully automatically, we would sooner abolish the programmers than the testers, because at least the last quality gate should remain in the hands of humans.

More posts

View all →