0% found this document useful (0 votes)
384 views24 pages

Introduction To Artificial Intelligence (AI) in Software Testing

This document provides an introduction to artificial intelligence (AI) in software testing. It discusses why the author created a quick course on the basic fundamentals of AI in software testing. The course aims to teach this topic in less than 30 minutes. It then defines key AI concepts like artificial intelligence, machine learning, deep learning and discusses their applications in software testing. Specifically, it provides examples of how AI can help make testing smarter by automating test case generation and enabling cross-browser/cross-app testing. The role of AI in testing is seen as eliminating traditional testing approaches and facilitating more efficient test management and automation.

Uploaded by

Rajeev Shukla
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
384 views24 pages

Introduction To Artificial Intelligence (AI) in Software Testing

This document provides an introduction to artificial intelligence (AI) in software testing. It discusses why the author created a quick course on the basic fundamentals of AI in software testing. The course aims to teach this topic in less than 30 minutes. It then defines key AI concepts like artificial intelligence, machine learning, deep learning and discusses their applications in software testing. Specifically, it provides examples of how AI can help make testing smarter by automating test case generation and enabling cross-browser/cross-app testing. The role of AI in testing is seen as eliminating traditional testing approaches and facilitating more efficient test management and automation.

Uploaded by

Rajeev Shukla
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

Introduction to

Artificial Intelligence (AI) in


Software Testing
Learn the Basic Fundamentals of AI in Software
Testing in less than 30 minutes!

By Sujal Patel
Why I end up creating this course even though I have created
Artificial Intelligence (AI) in Software Testing course earlier
• I have received lot of good feedback about my Artificial
Intelligence (AI) in Software Testing course from different
group of peoples

• https://www.udemy.com/artificial-intelligence-ai-in-
software-testing/?couponCode=WELCOME10

• Artificial Intelligence (AI) in Software Testing


• The Future of Automated Testing with Machine
Learning - Implementing Artificial Intelligence (AI) in
Test Automation
2
Why I end up creating this course even though I have created
Artificial Intelligence (AI) in Software Testing course earlier
• They are very excited to know about how Artificial
Intelligence can help in Software Testing
• They want to teach their friends or coworkers the
importance of Artificial Intelligence in Software Testing
• They requested that I can come up with 30-40 min quick
presentation from my detail course so they can host lunch
and learn session for their friends or coworkers
• I liked their idea and that’s why I have created this quick
course to learn the Basic Fundamentals of Artificial
Intelligence (AI) in Software Testing in less than 30 minutes!

3
What is Artificial Intelligence (AI)?

• Artificial Intelligence - AI is the new buzzword which is


gradually spreading its footprints in every major industry
• There is a lot of media hype that people use this word
interchangeably and here are some of the definitions from
the web
• Wikipedia says…..Artificial intelligence is intelligence
demonstrated by machines, in contrast to the natural
intelligence displayed by humans
• One more from popular google search….. Artificial
intelligence (AI) is a term for simulated intelligence in
machines. These machines are programmed to "think" like
a human and mimic the way a person acts

4
What is Artificial Intelligence (AI)?

From my point of view……..


• AI is a broad area of computer science that makes machines
seem like they have human intelligence
• The easy and shortest way to say that…… the key to making
software smarter and more efficient is artificial intelligence

Think about this, instead of you doing all your work you have
a machine to finish up for you

And I believe very soon, AI will become a little less artificial,


and a lot more intelligent

5
What is Machine Learning?

• Machine Learning is a sub set of Artificial intelligence and it


is one of the fastest-growing and most exciting field in the
industry
• In machine learning we have to train the machine on a large
training data set to create a model which helps the machine
to take the decisions based on its learning
• In a quick way, machine learning means, a software able to
detect patterns, make decisions, and predict outcomes
using data

6
Algorithms Behind Machine Learning

Example:
• let’s say you want to teach a computer to distinguish
between a cat and a dog. You might say cats have four legs,
a tail, and pointed ears. Dogs have four legs, a tail, and
floppy ears. But if you show that machine a coyote, does it
say it’s a cat?
The answer is NO
• Between tail length, fur texture, and color, there are a lot of
labels a developer would have to program manually to help
a traditional computer to spot the difference. But with
machine learning, you feed the computer thousands of
photos of cats and dogs so it can learn to spot the
difference by generating the model that will recognize the
patterns and identify cat or dog 7
Why Deep Learning?

• Why do we need deep learning even though we have


machine learning?
• Machine learning was not capable of handling high
dimensional data and solving some complex problem as
handling and processing such a data becomes very very
complex and resource exhausted, and that’s why the deep
learning comes into the picture
• Earlier due to less data and lack of computational power
deep learning was not possible. But now we have a huge
amount of data, because of which deep learning model
gives very high accuracy, deep learning is so popular

8
What is Deep Learning?

• Deep learning is a sub set of machine learning, which is


eventually a sub set of artificial intelligence
• Deep learning is a particular kind of machine learning that
is inspired by the functionality of our brain cells called
neurons which led to the concept of artificial neural
network. So Deep learning works the same way as how our
human brain works
• In a quick way to define deep learning, we can say that
deep learning allows us to teach machines how to complete
complex tasks

9
Deep Learning vs Machine Learning
• Let's take the example of machine which recognizes the
animal. Task of the machine is to recognize whether the
given image is cat or dog
• How machine learning should solved that problem?
• We have defined the feature such as whether the
animal has pointed ears or floppy ears, whether the
animal has straight tail or curve trail. In sort we have
defined the facial feature and let the system identify
which features are more important and classifying the
particular animal

10
Deep Learning vs Machine Learning
• How deep learning should solved that problem?
• Now when it comes to deep learning it takes one step
ahead of that. Deep learning will automatically find
the features which are more important for the
classification compare to machine learning where we
have to manually give out that feature

11
What is AI in Software Testing (AI)?

• As the complexity of software continues to increase and as


the release delivery cycles becomes shorter, testers need to
provide quality feedback to developers nearly
instantaneously
• In this age of continuous testing and delivery, most of the
companies are adopting a new mantra: test smarter, not
harder. And the key to making software testing smarter and
more efficient is artificial intelligence (AI)
• That means you need to test the software or application
intelligently and AI is the way to train the software
• Not clear, let me give you some examples

12
What is AI in Software Testing (AI)?

Example 1:
• Let’s say you have a website to test and let’s say a
developer changes the ID, name or some attribute of an
element on the web page. Once you run your test, it
immediately break due to this change because it is still
referring to the old ID or name. This leads to unstable test,
tester have to modify that test and that way they have to
spend a lot of time in maintaining that test
• So they introduced the concept of Dynamic locators. The
Artificial Intelligence underneath the platform in real time,
analyzes all the DOM objects of the page and extracts the
objects and its properties. Then AI decides the best location
strategy to locate a particular element based on this
analysis.
13
What is AI in Software Testing (AI)?

• Now even if a developer changes the attribute of an


element, the test still continues to run and this leads to
more stable test. As a result of this, authoring, execution
and maintenance of tests are much faster and more stable
Example 2:
• Let’s say you have a test which check the items in the
shopping cart and verify that whether it is empty or not.
Now let’s say you want to run this test against every web
site which supports shopping cart
How can you do that….the answer is AI
• AI can let us share the test case across the websites or
across the applications

14
What is AI in Software Testing (AI)?

Example 3:
• Login screen for any app
• Your login test should work across all app and user should
able to login and navigate the app
• Those are some simple examples where AI can help you to
do your testing smarter

15
What is the Role of AI Testing?

• It will eliminate how we approach testing and how it gets


done. In theory, I see two or more potential solutions
involving AI within your testing ecosystem
• The first reasonable use of AI focuses on test management
and the creation of test cases automatically. It reduces the
level of effort (LOE), with built-in standards, and keeps
everyone consistent
• The second reasonable use of AI focuses on generating test
code or pseudocode automatically by reading the user story
acceptance criteria
• The third option, codeless test automation, would create
and run tests automatically on your web or mobile
application without writing any code
16
Infosys in-house Machine Learning Platform
• Indian IT giant Infosys has developed an in-house machine
learning platform to support multiple phases of software
testing cycle, thus increasing efficiency and reducing effort.
It is currently offering solutions in

Test-suite Prediction Log Analytics Defect Analytics


Optimization
Predicting key Identifying hotspots Identifying high-risk
Identifying duplicate parameters of testing and automatically areas in the product for
and unique test processes using executing test cases risk-based prioritization
cases historical data of regression test cases
17
Why Do We Need AI in Software Testing?

• So let’s explore some key reasons why we need to integrate


AI in Software Testing
• AI uses it’s own Intelligence
• AI improves Efficiency
• AI is Quick and Versatile
• AI improves Application Security & Cost
• AI is Dynamic

18
Test Automation of Web Application
using Artificial Intelligence
You can easily automate any type of web application
test with Testim using AI Machine Learning

Demo https://www.testim.io/

Testim uses machine learning to speed up the


authoring, execution and maintenance of automated
tests

Let’s see Record and Playback option


• This seems the default approach

Then modify UI maps and run against it


• This shows how AI works on the backend
Is it time for Testers or QA Teams to worry about AI?

• Is it time for Testers or QA Teams to worry about AI?


• Are you worried that AI will soon replace all visual testing
and QA teams?
The answer is…..don’t be WORRY
• Even with AI-powered testing, visual inspection tools still
need a human tester to run them
• Machine learning will only automatically find general
product issues
• Autonomous testing tools are here to help, not replace you

20
Is it time for Testers or QA Teams to worry about AI?

• Testers and QA teams should be spending more time


thinking about business value
• Testers and QA teams should be putting more effort into
thinking about how to test and ensure quality
• Test engineers will guide the testing process and play a key
role in deciding what makes software and apps delight the
end user
• Human tester still has a crucial role to play
• KEEP IN MIND that….. AI isn’t a robot coming after human
jobs
• INSTEAD it is a…… SMART ASSISTANT!

21
Please take a look my original course @…..

• https://www.udemy.com/artificial-intelligence-ai-in-
software-testing/?couponCode=WELCOME10

• Artificial Intelligence (AI) in Software Testing


• The Future of Automated Testing with Machine
Learning - Implementing Artificial Intelligence (AI) in
Test Automation

22
Questions & Comments?

[email protected]
Thank you!

You might also like