SlideShare a Scribd company logo
How AI supports
software testing and
test automation
Copyright
Dragons
Out
Oy
2024
• Kari Kakkonen
• https://www.linkedin.com/in/karikakkonen
• Gofore Verify Oy
• Upload
• Helsinki
• 10.12.2024
1
ROLES
• Gofore Verify Oy, Expertise Capability Owner
• Dragons Out Oy, CEO, Children’s and testing
author
• TMMi, Board of Directors
• Treasurer of Finnish Software Testing Board
(FiSTB)
ACHIEVEMENTS
• Tester of the Year in Finland 2021
• EuroSTAR Testing Excellence Award 2021
• Exemplary DevOps Instructor Award 2023 by
DASA
• ISTQB Executive Committee 2015-2021
• Influencing testing since 1996
• Ranked in 100 most influential IT persons in
Finland (Tivi magazine)
• Great number of presentations in Finnish and
international conferences
• TestausOSY/FAST founding member.
• Author of Dragons Out testing book
• Co-author of ACT2LEAD software testing
leadership handbook
• Co-author of Agile Testing Foundations book
• Regular blogger in Tivi-magazine
Kari Kakkonen, Expertise Capability Owner
SERVICES
• ISTQB Advanced, Foundation, Agile Testing, AI Testing
• Quality Professional
• DASA DevOps, Agile, Scrum, Product Management
• Quality & Test process and organization development,
Metrics, TMMi and other assessments
• Agile testing, Scrum, Kanban, Lean
• Leadership
• Test automation, Mobile, Cloud, DevOps, AI
• Quality, cost, benefits
EDUCATION
• ISTQB Expert Level Test Management & Advanced Full
& Agile Tester certified
• DASA DevOps, Scrum Master and SAFe certified
• TMMi Professional, Assessor, Process Improver certified
• SPICE provisionary assessor certified
• M.Sc.(Eng), Helsinki University of Technology (present Aalto
University), Otaniemi, Espoo
• Marketing studies, University of Wisconsin-Madison,
the USA.
BUSINESS DOMAINS
Wide spread of business domain knowledge: Embedded,
industry, public, training, telecommunications, commerce,
Insurance, banking, pension.
2
www.gofore.com
www.dragonsout.com
www.act2lead.net
MORE INFORMATION
linkedin.com/in/karikakkonen/
Copyright Dragons Out Oy 2024
How AI supports software testing Kari Kakkonen at Upload
The book project ”Dragons Out!”
• Mission
• “Software testing brought to children”
• Book
• Author Kari Kakkonen
• Illustrator Adrienn Széll
• Text and illustration rights Dragons Out Oy
• In Finnish, English, Polish, French and growing
• For ages of 10-99
• Free “Dragon lesson in software testing”
presentation under Creative Commons –
license
• Translated to 20 languages!
• More info: www.dragonsout.com
4
Copyright Dragons Out Oy 2024
ACT 2 LEAD software testing leadership handbook
● Easy to read - chapters can be read in any order.
● Structure: questions, answers and cases.
○ 34 main chapters = questions, see next page.
● 270+ pages,
○ in Finnish (softback, e-book)
○ in English (e-book).
● For people like CxO, director, head of, manager, product
owner, designer, developer, test manager, tester and
student.
● Teaches to lead testing, not to test.
Buy the book: https://leanpub.com/act2lead
Book website: www.act2lead.net 5
ISTQB GLOBAL PRESENCE
• Number of exams
administered: over 1,3 million
• Number of certifications
issued: 957,000
• In 130 countries
Copyright Dragons Out Oy 2024 6
TMMi for test improvement in all kinds of testing,
including agile and DevOps
Copyright Dragons Out Oy 2024 7
• Why we need AI
• How AI works in the NASA case
• Journey through AI opportunities for
testing
Agenda
Copyright Dragons Out Oy 2024 8
Why AI right now?
Four drivers behind AI revolution
9
Copyright Dragons Out Oy 2024
Computation growth due to general purpose GPUs The rise of Big data
Community based achievements in Deep learning Open source tools and frameworks
Testing needs AI
• Software complexity increases
• Quantity of software increases
• Software development (including testing)
needs to be faster
• Faster time to market
• DevOps / Continuous Delivery
• Test automation is maintenance heavy
• Even exploratory testing takes too much time
• AI brings complexity that can only be solved
by AI
Copyright Dragons Out Oy 2024 10
AI augmented testing
• Gartner term
• https://www.gartner.com/en/documents/5194063
• “Software engineering leaders are now prioritizing development
productivity to enhance market responsiveness and build software
applications more efficiently, while also aiming to maintain high
quality. To meet this challenge they are increasingly turning to AI-
augmented testing tools.”
Copyright Dragons Out Oy 2024 11
How AI supports software testing Kari Kakkonen at Upload
My journey into AI testing 2016-2024
• ISTQB conference in Korea – Stuart Reid keynote – wake up
• PhD in AI Juhani Teeriniemi to build AI trainings
• AI testing tool research and experiments
• A4Q AI and Software Testing – Adam Leon Smith
• Open-source test automation findings to match Robot Framework
• ISTQB AI testing – Klaudia Dussa-Zieger
• AI testing bots
• GenAI talks and piloting
• Knowit Quality Summit with AI testing theme
• Gofore - Independent AI testing in a simulation
• Gofore – AI integrated into all testing
Copyright Dragons Out Oy 2024 13
How AI works in a NASA case
Copyright Dragons Out Oy 2024 14
NASA’s code review
• In static testing, several machine
learning algorithms can be used to
measure code quality.
Copyright Dragons Out Oy 2024 15
Figure: Margaret Hamilton standing next
to source code of guidance system of
Apollo spacecraft.
www.nasa.gov/
• Several code quality metrics are currently
being used. The most popular ones have
been introduced in 1970.[1,2]
1 T.J. McCabe, A Complexity Measure, IEEE Transactions on Software Engineering (1976) SE-2, 4, 308.
2 M.H. Halstead, Elements of Software Science, Elsevier (1977).
3 N.E. Fenton, S.L. Pfleeger, Software Metrics: A Rigorous & Practical Approach, International Thompson Press (1997).
4 S.J. Sayyad, T.J. Menzies, The PROMISE Repository of Software Engineering Databases (2005).
• Goal is to provide feedback:
1. for developers about code quality.
2. for testers about needed test coverage.
3. for management about the development
project
• Although traditional metrics are extensively
used, benefit of using them has been
questioned.[3]
0
50
100
150
200
250
300
350
400
450
0 20 40 60 80 100 120
Number
of
lines.
Cyclomatic complexity
Scattering of defects in NASA CM1 project
OK Defected
Figure: NASA Metrics Data Program, CM1 Project[4]
In real applications defected modules do not separate from
non-defected by standard metrics.
AI code quality metrics
Copyright Dragons Out Oy 2024 16
1
2
𝑤 2
+ 𝐶 ෍
𝑖=1
𝑁
ξ𝑖
1-𝑦𝑖 𝑤, 𝑓(𝑥𝑖) + 𝑏 ≤ ξ𝑖
Minimize
Subject to with all values of i.
Quality metric 1
Quality
metric
2
• Machine learning approach was tested for NASA’s CM1
software repository[1].
• Support vector type of machine learning algorithm was
developed for this demonstration.
• This task can be solved by supervised machine learning
methods because both input (quality metrics) and output
(defects) is known.
• Goal is to find such hyperplane in multidimensional data space
that separate defected modules from non-defected.
• Mathematically, problem can be described with algorithm:
AI-guided software testing with NASA data
Copyright Dragons Out Oy 2024 17
0,0
0,2
0,4
0,6
0,8
Tested on real data against NASA CM1 project[1]
Performance
(F)
Training set: 1595
Test set: 400
𝐹 =
2 ∗ 𝑎𝑐𝑐𝑢𝑟𝑎𝑐𝑦 ∗ 𝑟𝑒𝑐𝑎𝑙𝑙
𝑎𝑐𝑐𝑢𝑟𝑎𝑐𝑦 + 𝑟𝑒𝑐𝑎𝑙𝑙
AI-guided software testing with NASA data
Copyright Dragons Out Oy 2024 18
Anomaly detection
Copyright Dragons Out Oy 2024 19
• Can I find defects faster from lots of test runs?
• Which automatic defect reports / crash reports are actual defects?
• Are there duplicate reports?
• Automation to defect reporting?
Tester’s objectives
Copyright Dragons Out Oy 2024 20
• Detecting:
• abnormal behaviour
• new kind of customers
• etc.
Anomaly detection
Copyright Dragons Out Oy 2024
Figure: Example of time series
21
• NLP can be used to analyze text within different defect reports to
identify areas of affected functionality
• Clustering algorithms such as SVM are used to define defect
categories
• Text similarity metrics are used to identify similar or duplicate defects
• Particularly useful for automated defect reporting systems
• Case: MS Windows and Firefox and on large projects with many
software engineers
Large project defect classification
Copyright Dragons Out Oy 2024 22
Source: STA Consulting
• ML models can be trained to identify those defects most likely to
cause critical system failures from automatically generated defect
reports
Defect prioritization
Copyright Dragons Out Oy 2024 23
Ref: Kim, D.; Wang, X.; Kim, S.; Zeller, A.; Cheung, S.C.; Park, S. (2011). “Which Crashes Should I Fix First? Predicting Top Crashes at an
Early Stage to Prioritize Debugging Efforts,” in the IEEE Transactions on Software Engineering, volume 37
Source: STA Consulting
Prediction
Copyright Dragons Out Oy 2024 24
• Where should I start testing?
• Which tests will give me results
fastest?
• Do I need all my 10 000 test cases /
scripts?
• Which parts of software are likely
to have defects?
Tester’s objectives
Copyright Dragons Out Oy 2024 25
AI
AI review
Requirement
management
Code quality
analysis
Version
control
Test
management
Defect
management
AI code quality metrics
Copyright Dragons Out Oy 2024 26
Developer
Product
Owner
Scrum team
Management
AI
AI review
AI code quality metrics
Copyright Dragons Out Oy 2024 27
• Goal is to understand technical quality and test coverage of
modules. Also, goal is to guide and focus testing:
• Focusing technical debt reduction
• Found defects per module
• Guide for test coverage in automating system level testing.
AI code quality metrics
Copyright Dragons Out Oy 2024
Requires that there is link from components (version control) and tests (test management) to feature descriptions and from reported defects to modules (observation control)
Module Developer Benchmark
(order.numb.)
Relative risk Number of
reported bugs
Module_1 Jaakko 50 58 4
Module_2 Jaakko 4 5 1
Module_3 Mikko 180 95 7
SCRUM TEAM
28
• Goal is to provide overview:
• How fast the development is advancing
• Maturity for release
• Quality and technical debt of the software
• Defect probabilities
• Risks related to modifications of the
software.
AI code quality metrics
Copyright Dragons Out Oy 2024
Interpretation:
• Module 5 has high defect probability and is
related to five most important features of
the application. This results into high risk in
release at this moment.
• Defect probability of module 10 has fallen
to acceptable level.
Start-up
phase
Development
phase
Maturing
phase
MANAGEMENT
29
• Go through functionalities
• Identify risky areas
• Focus testing
• Case: Eggplant
• https://www.eggplantsoftw
are.com/
Predict quality issues
Copyright Dragons Out Oy 2024 30
• Analyze risk in commits to the code
• Select the tests that test the risky areas
• Reduce the number of test cases needed to run
• Case: Appsurify
• https://appsurify.com/
Select most suitable test cases
Copyright Dragons Out Oy 2024 31
• Power of open source
developers
• Machine learning
algorithms learn from the
community automatically
• Analyse code and propose
improvements
• Case: DeepCode
• https://www.deepcode.ai/
Code analysis using AI
Copyright Dragons Out Oy 2024 32
Fault-tolerant test automation
Copyright Dragons Out Oy 2024 33
• How can I get my regression test
cases pass more often when the
software under test changes?
• Can I use test automation scripts
from another similar project?
• Can I use some generic test without
my own scripting?
Tester’s objectives
Copyright Dragons Out Oy 2024 34
• AI-based test generation
• Checking functional differences
• Checking visual differences
• Automatically learning the test
automation
• For: regression testing after changes
• Case: retest
• https://retest.de/ai-based-test-
generation/
AI with regression testing
Copyright Dragons Out Oy 2024 35
• Python-editor PyCharm can use Dev
Tools AI library
• Asks which element to click on the
screen and then keeps it running
• Suggests how to fix
semiautomatically a changed test
script that doesn’t pass any more
• Reduces the need for test script
maintenance
• Supports e.g., Cypress, Selenium,
Appium, Playwright
• https://www.dev-tools.ai/
AI library helps pass Python test scripts
Copyright Dragons Out Oy 2024 36
• Build tests through interface backed by ML
• Plain English
• New life for “record-playback”
• ML algorithms maintain the tests
• Case: Functionize
• https://www.functionize.com/
Intelligent testing
Copyright Dragons Out Oy 2024 37
• Supports test automation object recognition
• Helps with typical GUI recognition problems for test automation
• Can be used as a support library for existing test automation
• Cases:
• ImageHorizonLibrary is a cross-platform library for Robot Framework.
• Eficode, Oulu University and Business Finland
• https://www.eficode.com/projects/testomat
Image recognition with AI
for open source test automation
Copyright Dragons Out Oy 2024 38
AI Assisted Test Automation
• Setup
• Robot Framework with custom Libraries for AI,
Jira and Data collection
• OpenAI GPT4 GenAI with RAG and Assistants
• Experiments
• Automatic test creation with AI based on the
source code
• “Self-healing” test automation with the help of AI
• Test failure automatic pre-analysis with AI
• Results
• Increased test coverage and harmonized test
cased
• Self-healing is dangerous so more of “solution
proposals” than self-healing
• Extremely fast failure analysis and case
explanations
• Case Gofore
• Some of the early AI experiments and POCs that proved to bring
value for the automation
Run test
Gather info
Analyze
error
Create
solution
Create Test
Done
CI/CD
Ticket
Review
Yes
No
Delete
Yes
No
Accept
= Human Decision
= AI Action
= Trad. Automation
Pass
Faster test automation scripting
with AI assistants
Copyright Dragons Out Oy 2024 40
• Can LLMs / SLMs / RAG /
Generative AI help me?
• I want to produce test scripts
faster
• I want ideas for my test cases /
scripts
Tester’s objectives
Copyright Dragons Out Oy 2024 41
• Python-editor PyCharm has
Refact.ai library that uses
ChatGPT
• Understands Python and Robot
Framework test automation setup
• Refact.ai is labelled as an AI
coding assistant software
• https://refact.ai/
Python enhanced with ChatGPT
Copyright Dragons Out Oy 2024 42
• Assist test automation script
creation
• Suggest what the user might want
• What kind of code
• What kind of test script
• User reviews and approves
suggestions
• Based on Generative AI
• https://github.com/features/copilot
Github Copilot
Copyright Dragons Out Oy 2024 43
• Derive tests from specifications
• Create tests and test data based on
user input
• Enabled by good prompt engineering
• Challenge: repeated teaching
• User reviews AI proposals and uses in
their tests
• https://chat.openai.com/ (ChatGPT)
• https://gemini.google.com/
• https://copilot.microsoft.com/ (Bing)
• https://claude.ai/ 3.5 Sonnet
Generative AI (SLM/LLM) helps in test creation
Copyright Dragons Out Oy 2024 44
Efficiency warning!
• Without professional-level coding/testing skills and a review attitude
the AI effect can be the opposite of what is targeted
• “Code analysis firm Gehtsoft USA sees no major benefits from AI
dev tool when measuring key programming metrics, though others
report incremental gains from coding copilots with emphasis on code
review.”
• Devs gaining little (if anything) from AI coding assistants at CIO
magazine Sep 26, 2024
Copyright Dragons Out Oy 2024 45
AI policy or guidance
• Generative AI requires data as input to give relevant answers
• Many organizations have strict confidentiality, privacy, or other
reasons to limit what information can be given to AI assistants or
Generative AI
• There may need to limit using external large LLMs, even internally or
at least with their customers
• Each company should have an AI policy or guidance created and
enforced to guide employees on AI usage
Copyright Dragons Out Oy 2024 46
Autonomous testing
Copyright Dragons Out Oy 2024 47
• Can I have some tests done
before I start my test scripting?
• Can I leave testing to AI?
• Are there some default tests that
fit my product testing needs?
Tester’s objectives
Copyright Dragons Out Oy 2024 48
• “World’s first”
• Go automatically through mobile apps
• Use general test cases
• Reinforcement learning
• Case: test.ai
• https://www.test.ai/
AI-powered mobile test automation platform
Copyright Dragons Out Oy 2024 49
• Assist extending existing
test automation sets
• With e.g. Robot Framework,
Playwright, Selenium,
Cypress
• Use tests as self-driving
test-bots
• Exploring web apps
• Regression testing
• Autonomous testing
• Case: https://wopee.io/
Test automation assistants and bots
Copyright Dragons Out Oy 2024 50
AI-augmented test automation solution
• Digital twin simulation
• Software development in the loop
• Hardware development in the loop
• Testing in the loop
• AI in the loop
• AI techniques streamline and enhance the testing by automatically identifying
and executing test cases.
• Customized language models (SLM & LLM) and digital twin technology to create a
comprehensive and adaptive testing environment.
• Case
• Gofore’s IntelliTestAI- Intelligent Test Automation solution for Enhanced
Quality
• www.gofore.com Copyright Dragons Out Oy 2024 51
AI integrated into all testing
(AI augmented testing)
Copyright Dragons Out Oy 2024 52
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
Read more
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
Resources
Copyright Dragons Out Oy 2024 54
• Trainings and certifications
• https://www.istqb.org/certification-path-root/ai-testing.html
• Standards
• ISO
• AI/ML standard https://www.iso.org/standard/74438.html
• Testing of AI-based systems https://www.iso.org/standard/79016.html
• IEEE
• What is AI Software Testing https://ieeexplore.ieee.org/document/8705808
• AI testing perspectives https://ieeexplore.ieee.org/document/9514942
• Application of AI in Testing https://ieeexplore.ieee.org/document/9676244
Promoting and teaching AI and testing
Copyright Dragons Out Oy 2024 55
• Devs gaining little (if anything) from AI coding assistants
• https://www.cio.com/article/3540579/devs-gaining-little-if-anything-from-ai-coding-
assistants.html
• AI in Testing: Impact, Problems, Challenges and Prospect
• https://www.researchgate.net/publication/357876318_Artificial_Intelligence_in_Software
_Testing_Impact_Problems_Challenges_and_Prospect
• Utilizing AI in Software Testing
• https://www.theseus.fi/handle/10024/263992
• AI Applied to Software Testing
• https://dl.acm.org/doi/10.1145/3616372
• AI Applied to Testing: A Literature Review
• https://ieeexplore.ieee.org/abstract/document/9141124
• ChatGPT helps testing
• https://www.linkedin.com/pulse/gpt-4-sdlcs-secret-weapon-reinventing-testing-phase-andy-
abbott/
Some more research notes
Copyright Dragons Out Oy 2024 56
Conclusion v1
Copyright Dragons Out Oy 2024 57
Conclusion 2
Copyright Dragons Out Oy 2024 58
Conclusion 3
Copyright Dragons Out Oy 2024 59
• AI-enabled testing is already a reality
• Many companies are enhancing their solutions with AI
• New companies are set up around AI
• AI can provide simplicity to complex software development projects.
• With Generative AI, manual and automated test script creation is
more productive
• With AI, testing activities can be focused on high-risk areas
• With AI, test automation becomes more autonomous
• Testers are freed to create new tests
• Start your AI journey today, if you haven’t already
Conclusion
Copyright Dragons Out Oy 2024 60
Any questions?
Follow and share the Kari’s testing book projects:
• https://www.dragonsout.com
• https://www.act2lead.net/
Social media
• Kari https://www.linkedin.com/in/karikakkonen/
• Dragons Out https://www.facebook.com/DragonsOutOy
Ask questions:
kari.kakkonen@dragonsout.com
kari.kakkonen@gofore.com
61
Copyright Dragons Out Oy 2024

More Related Content

PPTX
साथी हाथ बढ़ाना
PPTX
अलंकार
PPTX
क्रेडिट एंड बैंकिंग सिस्टम .pptx
PDF
Economic Progress in Mauryan Period.pdf
PPT
Economic mineral deposits india
PDF
भू-स्वामित्व .pdf
PDF
Economic conditions during 6th century bce
PPTX
1586413913GEY_414_Diagenesis.pptx
साथी हाथ बढ़ाना
अलंकार
क्रेडिट एंड बैंकिंग सिस्टम .pptx
Economic Progress in Mauryan Period.pdf
Economic mineral deposits india
भू-स्वामित्व .pdf
Economic conditions during 6th century bce
1586413913GEY_414_Diagenesis.pptx

Similar to How AI supports software testing Kari Kakkonen at Upload (20)

PDF
How AI supports software testing at Kokkola
PDF
Testing tools and AI - ideas what to try with some tool examples
PDF
AI improves software testing to be more fault tolerant, focused and efficient
PDF
AI improves software testing through test automation, test creation and test ...
PDF
Master tester AI toolbox - Kari Kakkonen at Testaus ja AI 2025 Professio
PDF
AI improves software testing by Kari Kakkonen at TQS
PDF
How AI supports testing Kari Kakkonen TestFormation 2025
PPTX
Transferring Software Testing Tools to Practice
PPTX
Cross functional peer review preso 10-01-2013
PDF
DevOps and Testing slides at DASA Connect
PDF
The Future of AI-Based Test Automation
PDF
Ten10 Seminar: Test Automation, Tooling and the Future (slides)
PPTX
Curiosity and Infuse Consulting Present: Sustainable Test Automation Strategi...
PDF
TLC2018 Thomas Haver: The Automation Firehose - Be Strategic and Tactical
PDF
Software Analytics - Achievements and Challenges
PPTX
How to Guarantee Continuous Value from your Test Automation
PDF
Climate Impact of Software Testing Testit
PPT
Test-Driven Development in the Corporate Workplace
PPTX
Curiosity and Xray present - In sprint testing: Aligning tests and teams to r...
PDF
CookpadTechConf2018-(Mobile)TestAutomation
How AI supports software testing at Kokkola
Testing tools and AI - ideas what to try with some tool examples
AI improves software testing to be more fault tolerant, focused and efficient
AI improves software testing through test automation, test creation and test ...
Master tester AI toolbox - Kari Kakkonen at Testaus ja AI 2025 Professio
AI improves software testing by Kari Kakkonen at TQS
How AI supports testing Kari Kakkonen TestFormation 2025
Transferring Software Testing Tools to Practice
Cross functional peer review preso 10-01-2013
DevOps and Testing slides at DASA Connect
The Future of AI-Based Test Automation
Ten10 Seminar: Test Automation, Tooling and the Future (slides)
Curiosity and Infuse Consulting Present: Sustainable Test Automation Strategi...
TLC2018 Thomas Haver: The Automation Firehose - Be Strategic and Tactical
Software Analytics - Achievements and Challenges
How to Guarantee Continuous Value from your Test Automation
Climate Impact of Software Testing Testit
Test-Driven Development in the Corporate Workplace
Curiosity and Xray present - In sprint testing: Aligning tests and teams to r...
CookpadTechConf2018-(Mobile)TestAutomation
Ad

More from Kari Kakkonen (20)

PDF
Taking Action To Lead Software Testing at EuroSTAR
PDF
Taking action to lead software testing at WeTest Athens 2025
PDF
Test automation at Tieturi webinar by Kari Kakkonen
PDF
Taking action to lead software testing at Testing Assembly 2024
PDF
How AI supports software testing at Testing United 2024
PDF
Insights about children testing at TestIstanbul
PDF
Taking action to lead software testing at SLASSCOM Quality Summit
PDF
Taking action to lead software testing at SEETEST2024
PDF
Climate Impact of Software Testing at Nordic Testing Days
PDF
Kari Kakkonen Climate Impact of Software Testing
PDF
Climate Impact of Software Testing
PDF
Insights about children testing
PDF
Climate Impact of Software Testing.pdf
PDF
Knights of Quality: Immersive talk about software testing
PDF
Climate Impact of Software Testing
PDF
Becoming MultiTalented Tester
PDF
Becoming a Multitalented Tester - at KDS
PDF
How to test an AI application
PDF
How children learn software testing
PDF
Ohjelmistotestauksen opetuksen kokemuksia fantasiatarinan avulla
Taking Action To Lead Software Testing at EuroSTAR
Taking action to lead software testing at WeTest Athens 2025
Test automation at Tieturi webinar by Kari Kakkonen
Taking action to lead software testing at Testing Assembly 2024
How AI supports software testing at Testing United 2024
Insights about children testing at TestIstanbul
Taking action to lead software testing at SLASSCOM Quality Summit
Taking action to lead software testing at SEETEST2024
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen Climate Impact of Software Testing
Climate Impact of Software Testing
Insights about children testing
Climate Impact of Software Testing.pdf
Knights of Quality: Immersive talk about software testing
Climate Impact of Software Testing
Becoming MultiTalented Tester
Becoming a Multitalented Tester - at KDS
How to test an AI application
How children learn software testing
Ohjelmistotestauksen opetuksen kokemuksia fantasiatarinan avulla
Ad

Recently uploaded (20)

PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Empathic Computing: Creating Shared Understanding
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
Cloud computing and distributed systems.
PDF
Machine learning based COVID-19 study performance prediction
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Encapsulation theory and applications.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
Building Integrated photovoltaic BIPV_UPV.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Empathic Computing: Creating Shared Understanding
Network Security Unit 5.pdf for BCA BBA.
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Unlocking AI with Model Context Protocol (MCP)
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Review of recent advances in non-invasive hemoglobin estimation
NewMind AI Monthly Chronicles - July 2025
Cloud computing and distributed systems.
Machine learning based COVID-19 study performance prediction
20250228 LYD VKU AI Blended-Learning.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
Encapsulation theory and applications.pdf
Encapsulation_ Review paper, used for researhc scholars

How AI supports software testing Kari Kakkonen at Upload

  • 1. How AI supports software testing and test automation Copyright Dragons Out Oy 2024 • Kari Kakkonen • https://www.linkedin.com/in/karikakkonen • Gofore Verify Oy • Upload • Helsinki • 10.12.2024 1
  • 2. ROLES • Gofore Verify Oy, Expertise Capability Owner • Dragons Out Oy, CEO, Children’s and testing author • TMMi, Board of Directors • Treasurer of Finnish Software Testing Board (FiSTB) ACHIEVEMENTS • Tester of the Year in Finland 2021 • EuroSTAR Testing Excellence Award 2021 • Exemplary DevOps Instructor Award 2023 by DASA • ISTQB Executive Committee 2015-2021 • Influencing testing since 1996 • Ranked in 100 most influential IT persons in Finland (Tivi magazine) • Great number of presentations in Finnish and international conferences • TestausOSY/FAST founding member. • Author of Dragons Out testing book • Co-author of ACT2LEAD software testing leadership handbook • Co-author of Agile Testing Foundations book • Regular blogger in Tivi-magazine Kari Kakkonen, Expertise Capability Owner SERVICES • ISTQB Advanced, Foundation, Agile Testing, AI Testing • Quality Professional • DASA DevOps, Agile, Scrum, Product Management • Quality & Test process and organization development, Metrics, TMMi and other assessments • Agile testing, Scrum, Kanban, Lean • Leadership • Test automation, Mobile, Cloud, DevOps, AI • Quality, cost, benefits EDUCATION • ISTQB Expert Level Test Management & Advanced Full & Agile Tester certified • DASA DevOps, Scrum Master and SAFe certified • TMMi Professional, Assessor, Process Improver certified • SPICE provisionary assessor certified • M.Sc.(Eng), Helsinki University of Technology (present Aalto University), Otaniemi, Espoo • Marketing studies, University of Wisconsin-Madison, the USA. BUSINESS DOMAINS Wide spread of business domain knowledge: Embedded, industry, public, training, telecommunications, commerce, Insurance, banking, pension. 2 www.gofore.com www.dragonsout.com www.act2lead.net MORE INFORMATION linkedin.com/in/karikakkonen/ Copyright Dragons Out Oy 2024
  • 4. The book project ”Dragons Out!” • Mission • “Software testing brought to children” • Book • Author Kari Kakkonen • Illustrator Adrienn Széll • Text and illustration rights Dragons Out Oy • In Finnish, English, Polish, French and growing • For ages of 10-99 • Free “Dragon lesson in software testing” presentation under Creative Commons – license • Translated to 20 languages! • More info: www.dragonsout.com 4 Copyright Dragons Out Oy 2024
  • 5. ACT 2 LEAD software testing leadership handbook ● Easy to read - chapters can be read in any order. ● Structure: questions, answers and cases. ○ 34 main chapters = questions, see next page. ● 270+ pages, ○ in Finnish (softback, e-book) ○ in English (e-book). ● For people like CxO, director, head of, manager, product owner, designer, developer, test manager, tester and student. ● Teaches to lead testing, not to test. Buy the book: https://leanpub.com/act2lead Book website: www.act2lead.net 5
  • 6. ISTQB GLOBAL PRESENCE • Number of exams administered: over 1,3 million • Number of certifications issued: 957,000 • In 130 countries Copyright Dragons Out Oy 2024 6
  • 7. TMMi for test improvement in all kinds of testing, including agile and DevOps Copyright Dragons Out Oy 2024 7
  • 8. • Why we need AI • How AI works in the NASA case • Journey through AI opportunities for testing Agenda Copyright Dragons Out Oy 2024 8
  • 9. Why AI right now? Four drivers behind AI revolution 9 Copyright Dragons Out Oy 2024 Computation growth due to general purpose GPUs The rise of Big data Community based achievements in Deep learning Open source tools and frameworks
  • 10. Testing needs AI • Software complexity increases • Quantity of software increases • Software development (including testing) needs to be faster • Faster time to market • DevOps / Continuous Delivery • Test automation is maintenance heavy • Even exploratory testing takes too much time • AI brings complexity that can only be solved by AI Copyright Dragons Out Oy 2024 10
  • 11. AI augmented testing • Gartner term • https://www.gartner.com/en/documents/5194063 • “Software engineering leaders are now prioritizing development productivity to enhance market responsiveness and build software applications more efficiently, while also aiming to maintain high quality. To meet this challenge they are increasingly turning to AI- augmented testing tools.” Copyright Dragons Out Oy 2024 11
  • 13. My journey into AI testing 2016-2024 • ISTQB conference in Korea – Stuart Reid keynote – wake up • PhD in AI Juhani Teeriniemi to build AI trainings • AI testing tool research and experiments • A4Q AI and Software Testing – Adam Leon Smith • Open-source test automation findings to match Robot Framework • ISTQB AI testing – Klaudia Dussa-Zieger • AI testing bots • GenAI talks and piloting • Knowit Quality Summit with AI testing theme • Gofore - Independent AI testing in a simulation • Gofore – AI integrated into all testing Copyright Dragons Out Oy 2024 13
  • 14. How AI works in a NASA case Copyright Dragons Out Oy 2024 14
  • 15. NASA’s code review • In static testing, several machine learning algorithms can be used to measure code quality. Copyright Dragons Out Oy 2024 15 Figure: Margaret Hamilton standing next to source code of guidance system of Apollo spacecraft. www.nasa.gov/
  • 16. • Several code quality metrics are currently being used. The most popular ones have been introduced in 1970.[1,2] 1 T.J. McCabe, A Complexity Measure, IEEE Transactions on Software Engineering (1976) SE-2, 4, 308. 2 M.H. Halstead, Elements of Software Science, Elsevier (1977). 3 N.E. Fenton, S.L. Pfleeger, Software Metrics: A Rigorous & Practical Approach, International Thompson Press (1997). 4 S.J. Sayyad, T.J. Menzies, The PROMISE Repository of Software Engineering Databases (2005). • Goal is to provide feedback: 1. for developers about code quality. 2. for testers about needed test coverage. 3. for management about the development project • Although traditional metrics are extensively used, benefit of using them has been questioned.[3] 0 50 100 150 200 250 300 350 400 450 0 20 40 60 80 100 120 Number of lines. Cyclomatic complexity Scattering of defects in NASA CM1 project OK Defected Figure: NASA Metrics Data Program, CM1 Project[4] In real applications defected modules do not separate from non-defected by standard metrics. AI code quality metrics Copyright Dragons Out Oy 2024 16
  • 17. 1 2 𝑤 2 + 𝐶 ෍ 𝑖=1 𝑁 ξ𝑖 1-𝑦𝑖 𝑤, 𝑓(𝑥𝑖) + 𝑏 ≤ ξ𝑖 Minimize Subject to with all values of i. Quality metric 1 Quality metric 2 • Machine learning approach was tested for NASA’s CM1 software repository[1]. • Support vector type of machine learning algorithm was developed for this demonstration. • This task can be solved by supervised machine learning methods because both input (quality metrics) and output (defects) is known. • Goal is to find such hyperplane in multidimensional data space that separate defected modules from non-defected. • Mathematically, problem can be described with algorithm: AI-guided software testing with NASA data Copyright Dragons Out Oy 2024 17
  • 18. 0,0 0,2 0,4 0,6 0,8 Tested on real data against NASA CM1 project[1] Performance (F) Training set: 1595 Test set: 400 𝐹 = 2 ∗ 𝑎𝑐𝑐𝑢𝑟𝑎𝑐𝑦 ∗ 𝑟𝑒𝑐𝑎𝑙𝑙 𝑎𝑐𝑐𝑢𝑟𝑎𝑐𝑦 + 𝑟𝑒𝑐𝑎𝑙𝑙 AI-guided software testing with NASA data Copyright Dragons Out Oy 2024 18
  • 20. • Can I find defects faster from lots of test runs? • Which automatic defect reports / crash reports are actual defects? • Are there duplicate reports? • Automation to defect reporting? Tester’s objectives Copyright Dragons Out Oy 2024 20
  • 21. • Detecting: • abnormal behaviour • new kind of customers • etc. Anomaly detection Copyright Dragons Out Oy 2024 Figure: Example of time series 21
  • 22. • NLP can be used to analyze text within different defect reports to identify areas of affected functionality • Clustering algorithms such as SVM are used to define defect categories • Text similarity metrics are used to identify similar or duplicate defects • Particularly useful for automated defect reporting systems • Case: MS Windows and Firefox and on large projects with many software engineers Large project defect classification Copyright Dragons Out Oy 2024 22 Source: STA Consulting
  • 23. • ML models can be trained to identify those defects most likely to cause critical system failures from automatically generated defect reports Defect prioritization Copyright Dragons Out Oy 2024 23 Ref: Kim, D.; Wang, X.; Kim, S.; Zeller, A.; Cheung, S.C.; Park, S. (2011). “Which Crashes Should I Fix First? Predicting Top Crashes at an Early Stage to Prioritize Debugging Efforts,” in the IEEE Transactions on Software Engineering, volume 37 Source: STA Consulting
  • 25. • Where should I start testing? • Which tests will give me results fastest? • Do I need all my 10 000 test cases / scripts? • Which parts of software are likely to have defects? Tester’s objectives Copyright Dragons Out Oy 2024 25
  • 27. Developer Product Owner Scrum team Management AI AI review AI code quality metrics Copyright Dragons Out Oy 2024 27
  • 28. • Goal is to understand technical quality and test coverage of modules. Also, goal is to guide and focus testing: • Focusing technical debt reduction • Found defects per module • Guide for test coverage in automating system level testing. AI code quality metrics Copyright Dragons Out Oy 2024 Requires that there is link from components (version control) and tests (test management) to feature descriptions and from reported defects to modules (observation control) Module Developer Benchmark (order.numb.) Relative risk Number of reported bugs Module_1 Jaakko 50 58 4 Module_2 Jaakko 4 5 1 Module_3 Mikko 180 95 7 SCRUM TEAM 28
  • 29. • Goal is to provide overview: • How fast the development is advancing • Maturity for release • Quality and technical debt of the software • Defect probabilities • Risks related to modifications of the software. AI code quality metrics Copyright Dragons Out Oy 2024 Interpretation: • Module 5 has high defect probability and is related to five most important features of the application. This results into high risk in release at this moment. • Defect probability of module 10 has fallen to acceptable level. Start-up phase Development phase Maturing phase MANAGEMENT 29
  • 30. • Go through functionalities • Identify risky areas • Focus testing • Case: Eggplant • https://www.eggplantsoftw are.com/ Predict quality issues Copyright Dragons Out Oy 2024 30
  • 31. • Analyze risk in commits to the code • Select the tests that test the risky areas • Reduce the number of test cases needed to run • Case: Appsurify • https://appsurify.com/ Select most suitable test cases Copyright Dragons Out Oy 2024 31
  • 32. • Power of open source developers • Machine learning algorithms learn from the community automatically • Analyse code and propose improvements • Case: DeepCode • https://www.deepcode.ai/ Code analysis using AI Copyright Dragons Out Oy 2024 32
  • 34. • How can I get my regression test cases pass more often when the software under test changes? • Can I use test automation scripts from another similar project? • Can I use some generic test without my own scripting? Tester’s objectives Copyright Dragons Out Oy 2024 34
  • 35. • AI-based test generation • Checking functional differences • Checking visual differences • Automatically learning the test automation • For: regression testing after changes • Case: retest • https://retest.de/ai-based-test- generation/ AI with regression testing Copyright Dragons Out Oy 2024 35
  • 36. • Python-editor PyCharm can use Dev Tools AI library • Asks which element to click on the screen and then keeps it running • Suggests how to fix semiautomatically a changed test script that doesn’t pass any more • Reduces the need for test script maintenance • Supports e.g., Cypress, Selenium, Appium, Playwright • https://www.dev-tools.ai/ AI library helps pass Python test scripts Copyright Dragons Out Oy 2024 36
  • 37. • Build tests through interface backed by ML • Plain English • New life for “record-playback” • ML algorithms maintain the tests • Case: Functionize • https://www.functionize.com/ Intelligent testing Copyright Dragons Out Oy 2024 37
  • 38. • Supports test automation object recognition • Helps with typical GUI recognition problems for test automation • Can be used as a support library for existing test automation • Cases: • ImageHorizonLibrary is a cross-platform library for Robot Framework. • Eficode, Oulu University and Business Finland • https://www.eficode.com/projects/testomat Image recognition with AI for open source test automation Copyright Dragons Out Oy 2024 38
  • 39. AI Assisted Test Automation • Setup • Robot Framework with custom Libraries for AI, Jira and Data collection • OpenAI GPT4 GenAI with RAG and Assistants • Experiments • Automatic test creation with AI based on the source code • “Self-healing” test automation with the help of AI • Test failure automatic pre-analysis with AI • Results • Increased test coverage and harmonized test cased • Self-healing is dangerous so more of “solution proposals” than self-healing • Extremely fast failure analysis and case explanations • Case Gofore • Some of the early AI experiments and POCs that proved to bring value for the automation Run test Gather info Analyze error Create solution Create Test Done CI/CD Ticket Review Yes No Delete Yes No Accept = Human Decision = AI Action = Trad. Automation Pass
  • 40. Faster test automation scripting with AI assistants Copyright Dragons Out Oy 2024 40
  • 41. • Can LLMs / SLMs / RAG / Generative AI help me? • I want to produce test scripts faster • I want ideas for my test cases / scripts Tester’s objectives Copyright Dragons Out Oy 2024 41
  • 42. • Python-editor PyCharm has Refact.ai library that uses ChatGPT • Understands Python and Robot Framework test automation setup • Refact.ai is labelled as an AI coding assistant software • https://refact.ai/ Python enhanced with ChatGPT Copyright Dragons Out Oy 2024 42
  • 43. • Assist test automation script creation • Suggest what the user might want • What kind of code • What kind of test script • User reviews and approves suggestions • Based on Generative AI • https://github.com/features/copilot Github Copilot Copyright Dragons Out Oy 2024 43
  • 44. • Derive tests from specifications • Create tests and test data based on user input • Enabled by good prompt engineering • Challenge: repeated teaching • User reviews AI proposals and uses in their tests • https://chat.openai.com/ (ChatGPT) • https://gemini.google.com/ • https://copilot.microsoft.com/ (Bing) • https://claude.ai/ 3.5 Sonnet Generative AI (SLM/LLM) helps in test creation Copyright Dragons Out Oy 2024 44
  • 45. Efficiency warning! • Without professional-level coding/testing skills and a review attitude the AI effect can be the opposite of what is targeted • “Code analysis firm Gehtsoft USA sees no major benefits from AI dev tool when measuring key programming metrics, though others report incremental gains from coding copilots with emphasis on code review.” • Devs gaining little (if anything) from AI coding assistants at CIO magazine Sep 26, 2024 Copyright Dragons Out Oy 2024 45
  • 46. AI policy or guidance • Generative AI requires data as input to give relevant answers • Many organizations have strict confidentiality, privacy, or other reasons to limit what information can be given to AI assistants or Generative AI • There may need to limit using external large LLMs, even internally or at least with their customers • Each company should have an AI policy or guidance created and enforced to guide employees on AI usage Copyright Dragons Out Oy 2024 46
  • 48. • Can I have some tests done before I start my test scripting? • Can I leave testing to AI? • Are there some default tests that fit my product testing needs? Tester’s objectives Copyright Dragons Out Oy 2024 48
  • 49. • “World’s first” • Go automatically through mobile apps • Use general test cases • Reinforcement learning • Case: test.ai • https://www.test.ai/ AI-powered mobile test automation platform Copyright Dragons Out Oy 2024 49
  • 50. • Assist extending existing test automation sets • With e.g. Robot Framework, Playwright, Selenium, Cypress • Use tests as self-driving test-bots • Exploring web apps • Regression testing • Autonomous testing • Case: https://wopee.io/ Test automation assistants and bots Copyright Dragons Out Oy 2024 50
  • 51. AI-augmented test automation solution • Digital twin simulation • Software development in the loop • Hardware development in the loop • Testing in the loop • AI in the loop • AI techniques streamline and enhance the testing by automatically identifying and executing test cases. • Customized language models (SLM & LLM) and digital twin technology to create a comprehensive and adaptive testing environment. • Case • Gofore’s IntelliTestAI- Intelligent Test Automation solution for Enhanced Quality • www.gofore.com Copyright Dragons Out Oy 2024 51
  • 52. AI integrated into all testing (AI augmented testing) Copyright Dragons Out Oy 2024 52
  • 55. • Trainings and certifications • https://www.istqb.org/certification-path-root/ai-testing.html • Standards • ISO • AI/ML standard https://www.iso.org/standard/74438.html • Testing of AI-based systems https://www.iso.org/standard/79016.html • IEEE • What is AI Software Testing https://ieeexplore.ieee.org/document/8705808 • AI testing perspectives https://ieeexplore.ieee.org/document/9514942 • Application of AI in Testing https://ieeexplore.ieee.org/document/9676244 Promoting and teaching AI and testing Copyright Dragons Out Oy 2024 55
  • 56. • Devs gaining little (if anything) from AI coding assistants • https://www.cio.com/article/3540579/devs-gaining-little-if-anything-from-ai-coding- assistants.html • AI in Testing: Impact, Problems, Challenges and Prospect • https://www.researchgate.net/publication/357876318_Artificial_Intelligence_in_Software _Testing_Impact_Problems_Challenges_and_Prospect • Utilizing AI in Software Testing • https://www.theseus.fi/handle/10024/263992 • AI Applied to Software Testing • https://dl.acm.org/doi/10.1145/3616372 • AI Applied to Testing: A Literature Review • https://ieeexplore.ieee.org/abstract/document/9141124 • ChatGPT helps testing • https://www.linkedin.com/pulse/gpt-4-sdlcs-secret-weapon-reinventing-testing-phase-andy- abbott/ Some more research notes Copyright Dragons Out Oy 2024 56
  • 60. • AI-enabled testing is already a reality • Many companies are enhancing their solutions with AI • New companies are set up around AI • AI can provide simplicity to complex software development projects. • With Generative AI, manual and automated test script creation is more productive • With AI, testing activities can be focused on high-risk areas • With AI, test automation becomes more autonomous • Testers are freed to create new tests • Start your AI journey today, if you haven’t already Conclusion Copyright Dragons Out Oy 2024 60
  • 61. Any questions? Follow and share the Kari’s testing book projects: • https://www.dragonsout.com • https://www.act2lead.net/ Social media • Kari https://www.linkedin.com/in/karikakkonen/ • Dragons Out https://www.facebook.com/DragonsOutOy Ask questions: kari.kakkonen@dragonsout.com kari.kakkonen@gofore.com 61 Copyright Dragons Out Oy 2024