SlideShare a Scribd company logo
Miten tekoäly auttaa
ohjelmistotestausta?
Copyright
Dragons
Out
Oy
2024
• Kari Kakkonen
• https://www.linkedin.com/in
/karikakkonen/
• Dragons Out Oy
• IoT-seminaari 2024
• Kokkola
• 12.9.2024
1
ROLES
• Dragons Out Oy, Director of Training, Trainer
and Coach
• Children’s and testing author at Dragons Out
Oy
• 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.
• Co-author of Agile Testing Foundations book
• Regular blogger in Tivi-magazine
• Growing Knowit to Testing Leader 2002-2024
Kari Kakkonen, Lead Testing Consultant
SERVICES
• ISTQB Advanced, Foundation, Agile Testing, AI Testing
• Quality Professional
• DASA DevOps
• 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
twitter.com/kkakkonen
dragonsout.com
act2lead.net
MORE INFORMATION
linkedin.com/in/karikakkonen/
Copyright Dragons Out Oy 2024
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
• Also other books coming out
3
Copyright Dragons Out Oy 2024
ACT 2 LEAD as a book
● 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 and soon in English (softback, 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://bit.ly/act2lead-book
4
ISTQB GLOBAL PRESENCE
• Number of exams
administered: over 1,2 million
• Number of certifications
issued: 845,000
• In 130 countries
Copyright Dragons Out Oy 2024 5
TMMi for test improvement in all kinds of testing,
including agile and DevOps
Copyright Dragons Out Oy 2024 6
• Artificial Intelligence (AI) in short
• AI and testing tools
Agenda
Copyright Dragons Out Oy 2024 7
Why right now?
Four drivers behind AI revolution
8
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
Quality management as top use-case for AI
Source: AI software platform adoption survey, IDC, February 2019 [Percent of respondents: N=505]
Copyright Dragons Out Oy 2024 9
• When talking about AI, it is
important to ask if we are
talking about modelling
humans or how to work in
ideal way.
• Machine learning is a sub-
category of AI, which
considers algorithms that
enable AI to learn ideal way
to work.
Artificial intelligence == machine learning?
Figure: Example of concepts related to AI.
Copyright Dragons Out Oy 2024 10
Three methods of machine learning
Machine learning methods
Supervised Learning
• The aim is to learn
mapping from input to
output.
• Output is known by
supervisor.
Unsupervised Learning
• The aim is to find
”something interesting”.
• Output is not known
(known also as density
estimation in statistics).
Reinforcement Learning
• Seemingly good
solutions are
encouraged to
develop further.
AI literature review[1]
1 Reagan, A., et al., The emotional arcs of stories are dominated by six basic shapes, EPJ Data Science (2016).
Copyright Dragons Out Oy 2024 11
Anomaly detection
Copyright Dragons Out Oy 2024 12
• 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 13
• Detecting:
• abnormal behaviour
• new kind of customers
• etc.
Anomaly detection
Copyright Dragons Out Oy 2024
Figure: Example of time series
14
• 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 15
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 16
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 17
• 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 18
AI
AI review
Requirement
management
Code quality
analysis
Version
control
Test
management
Defect
management
AI code quality metrics
Copyright Dragons Out Oy 2024 19
Developer
Product
Owner
Scrum team
Management
AI
AI review
AI code quality metrics
Copyright Dragons Out Oy 2024 20
• 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
21
• 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
22
• Go through functionalities
• Identify risky areas
• Focus testing
• Case: Eggplant
• https://www.eggplantsoftw
are.com/
Predict quality issues
Copyright Dragons Out Oy 2024 23
• 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 24
• 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 25
Fault-tolerant test automation
Copyright Dragons Out Oy 2024 26
• 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 test some generic test without my own scripting?
Tester’s objectives
Copyright Dragons Out Oy 2024 27
• 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 28
• 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 29
• Build test 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 30
• 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 31
Faster test automation scripting
with AI assistants
Copyright Dragons Out Oy 2024 32
• Can LLMs / 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 33
• 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 34
• 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/copil
ot
Github Copilot
Copyright Dragons Out Oy 2024 35
• Derive tests from specifications
• Create tests 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)
Generative AI helps in test creation
Copyright Dragons Out Oy 2024 36
Autonomous testing
Copyright Dragons Out Oy 2024 37
• 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 38
• “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 39
• 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
• https://wopee.io/
Test automation assistants and bots
Copyright Dragons Out Oy 2024 40
Resources
Copyright Dragons Out Oy 2024 41
• 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 42
• 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 43
• 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
Conclusion
Copyright Dragons Out Oy 2024 44
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
45
Copyright Dragons Out Oy 2024

More Related Content

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
Testing tools and AI - ideas what to try with some tool examples
PDF
How AI supports software testing at Testing United 2024
PDF
How AI supports software testing Kari Kakkonen at Upload
PDF
How AI supports testing Kari Kakkonen TestFormation 2025
PDF
AI improves software testing to be more fault tolerant, focused and efficient
PDF
AI improves software testing by Kari Kakkonen at TQS
AI improves software testing through test automation, test creation and test ...
Master tester AI toolbox - Kari Kakkonen at Testaus ja AI 2025 Professio
Testing tools and AI - ideas what to try with some tool examples
How AI supports software testing at Testing United 2024
How AI supports software testing Kari Kakkonen at Upload
How AI supports testing Kari Kakkonen TestFormation 2025
AI improves software testing to be more fault tolerant, focused and efficient
AI improves software testing by Kari Kakkonen at TQS

Similar to How AI supports software testing at Kokkola (20)

PDF
Integrating AI in software quality in absence of a well-defined requirements
PPTX
[DevDay2019] How AI is changing the future of Software Testing? - By Vui Nguy...
PDF
Rise of the Machines: Can Artificial Intelligence Terminate Manual Testing?
DOCX
How Would Software Testing Change in the Future.docx.docx
PPTX
#ATAGTR2021 Presentation : "Use of AI and ML in Performance Testing" by Adolf...
PDF
Scaling Automation with AI-Driven Testing
PPTX
Significance of AI in Testing
PPTX
Get the most from AI with Eggplant
PDF
How to test an AI application
PDF
AI in Modern Software Testing: Smarter QA Today
PPTX
"AI BASED SOFTWARE TESTING" --- Chapter 7.pptx
PDF
Climate Impact of Software Testing Testit
PDF
Automation Software Testing with AI: Benefits and Challenges
PDF
Becoming MultiTalented Tester
PPTX
How AI Can Be Leveraged In All Aspects Of Testing
PDF
Insights from children about testing at NTD2022
PDF
Leveraging AI to Revolutionize Software Testing.pdf
PPTX
implementing_ai_for_improved_performance_testing_the_key_to_success.pptx
PDF
Becoming a Multitalented Tester - at KDS
PDF
AI Trends and Benefits in Software Testing
Integrating AI in software quality in absence of a well-defined requirements
[DevDay2019] How AI is changing the future of Software Testing? - By Vui Nguy...
Rise of the Machines: Can Artificial Intelligence Terminate Manual Testing?
How Would Software Testing Change in the Future.docx.docx
#ATAGTR2021 Presentation : "Use of AI and ML in Performance Testing" by Adolf...
Scaling Automation with AI-Driven Testing
Significance of AI in Testing
Get the most from AI with Eggplant
How to test an AI application
AI in Modern Software Testing: Smarter QA Today
"AI BASED SOFTWARE TESTING" --- Chapter 7.pptx
Climate Impact of Software Testing Testit
Automation Software Testing with AI: Benefits and Challenges
Becoming MultiTalented Tester
How AI Can Be Leveraged In All Aspects Of Testing
Insights from children about testing at NTD2022
Leveraging AI to Revolutionize Software Testing.pdf
implementing_ai_for_improved_performance_testing_the_key_to_success.pptx
Becoming a Multitalented Tester - at KDS
AI Trends and Benefits in Software Testing
Ad

More from Kari Kakkonen (19)

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
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
DevOps and Testing slides at DASA Connect
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
How children learn software testing
PDF
Ohjelmistotestauksen opetuksen kokemuksia fantasiatarinan avulla
PDF
Becoming Multitalented Tester - Kari Kakkonen
PDF
How Children Learn Testing at Testit
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
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
DevOps and Testing slides at DASA Connect
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
How children learn software testing
Ohjelmistotestauksen opetuksen kokemuksia fantasiatarinan avulla
Becoming Multitalented Tester - Kari Kakkonen
How Children Learn Testing at Testit
Ad

Recently uploaded (20)

PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPT
Teaching material agriculture food technology
PPTX
Cloud computing and distributed systems.
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Big Data Technologies - Introduction.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Modernizing your data center with Dell and AMD
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
KodekX | Application Modernization Development
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
cuic standard and advanced reporting.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Network Security Unit 5.pdf for BCA BBA.
Agricultural_Statistics_at_a_Glance_2022_0.pdf
MYSQL Presentation for SQL database connectivity
Digital-Transformation-Roadmap-for-Companies.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
NewMind AI Weekly Chronicles - August'25 Week I
Teaching material agriculture food technology
Cloud computing and distributed systems.
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Big Data Technologies - Introduction.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Modernizing your data center with Dell and AMD
Per capita expenditure prediction using model stacking based on satellite ima...
KodekX | Application Modernization Development
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Empathic Computing: Creating Shared Understanding
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
cuic standard and advanced reporting.pdf
The AUB Centre for AI in Media Proposal.docx
Network Security Unit 5.pdf for BCA BBA.

How AI supports software testing at Kokkola

  • 1. Miten tekoäly auttaa ohjelmistotestausta? Copyright Dragons Out Oy 2024 • Kari Kakkonen • https://www.linkedin.com/in /karikakkonen/ • Dragons Out Oy • IoT-seminaari 2024 • Kokkola • 12.9.2024 1
  • 2. ROLES • Dragons Out Oy, Director of Training, Trainer and Coach • Children’s and testing author at Dragons Out Oy • 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. • Co-author of Agile Testing Foundations book • Regular blogger in Tivi-magazine • Growing Knowit to Testing Leader 2002-2024 Kari Kakkonen, Lead Testing Consultant SERVICES • ISTQB Advanced, Foundation, Agile Testing, AI Testing • Quality Professional • DASA DevOps • 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 twitter.com/kkakkonen dragonsout.com act2lead.net MORE INFORMATION linkedin.com/in/karikakkonen/ Copyright Dragons Out Oy 2024
  • 3. 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 • Also other books coming out 3 Copyright Dragons Out Oy 2024
  • 4. ACT 2 LEAD as a book ● 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 and soon in English (softback, 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://bit.ly/act2lead-book 4
  • 5. ISTQB GLOBAL PRESENCE • Number of exams administered: over 1,2 million • Number of certifications issued: 845,000 • In 130 countries Copyright Dragons Out Oy 2024 5
  • 6. TMMi for test improvement in all kinds of testing, including agile and DevOps Copyright Dragons Out Oy 2024 6
  • 7. • Artificial Intelligence (AI) in short • AI and testing tools Agenda Copyright Dragons Out Oy 2024 7
  • 8. Why right now? Four drivers behind AI revolution 8 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
  • 9. Quality management as top use-case for AI Source: AI software platform adoption survey, IDC, February 2019 [Percent of respondents: N=505] Copyright Dragons Out Oy 2024 9
  • 10. • When talking about AI, it is important to ask if we are talking about modelling humans or how to work in ideal way. • Machine learning is a sub- category of AI, which considers algorithms that enable AI to learn ideal way to work. Artificial intelligence == machine learning? Figure: Example of concepts related to AI. Copyright Dragons Out Oy 2024 10
  • 11. Three methods of machine learning Machine learning methods Supervised Learning • The aim is to learn mapping from input to output. • Output is known by supervisor. Unsupervised Learning • The aim is to find ”something interesting”. • Output is not known (known also as density estimation in statistics). Reinforcement Learning • Seemingly good solutions are encouraged to develop further. AI literature review[1] 1 Reagan, A., et al., The emotional arcs of stories are dominated by six basic shapes, EPJ Data Science (2016). Copyright Dragons Out Oy 2024 11
  • 13. • 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 13
  • 14. • Detecting: • abnormal behaviour • new kind of customers • etc. Anomaly detection Copyright Dragons Out Oy 2024 Figure: Example of time series 14
  • 15. • 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 15 Source: STA Consulting
  • 16. • 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 16 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
  • 18. • 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 18
  • 20. Developer Product Owner Scrum team Management AI AI review AI code quality metrics Copyright Dragons Out Oy 2024 20
  • 21. • 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 21
  • 22. • 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 22
  • 23. • Go through functionalities • Identify risky areas • Focus testing • Case: Eggplant • https://www.eggplantsoftw are.com/ Predict quality issues Copyright Dragons Out Oy 2024 23
  • 24. • 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 24
  • 25. • 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 25
  • 27. • 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 test some generic test without my own scripting? Tester’s objectives Copyright Dragons Out Oy 2024 27
  • 28. • 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 28
  • 29. • 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 29
  • 30. • Build test 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 30
  • 31. • 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 31
  • 32. Faster test automation scripting with AI assistants Copyright Dragons Out Oy 2024 32
  • 33. • Can LLMs / 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 33
  • 34. • 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 34
  • 35. • 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/copil ot Github Copilot Copyright Dragons Out Oy 2024 35
  • 36. • Derive tests from specifications • Create tests 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) Generative AI helps in test creation Copyright Dragons Out Oy 2024 36
  • 38. • 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 38
  • 39. • “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 39
  • 40. • 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 • https://wopee.io/ Test automation assistants and bots Copyright Dragons Out Oy 2024 40
  • 42. • 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 42
  • 43. • 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 43
  • 44. • 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 Conclusion Copyright Dragons Out Oy 2024 44
  • 45. 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 45 Copyright Dragons Out Oy 2024