GSDFFDSDSDD
GSDFFDSDSDD
testing
Agenda
• Introduction
• Conclusion
Introduction
Starting from scratch (doing repetitive tasks in every new project) Flaky tests
Script updates with every minor UI change Determining test size to ensure quality of a change.
• Artificial intelligence (AI) refers to the capability of machines to perform functions that
mimic a human mind, such as learning and problem-solving
• In unsupervised learning, unlabeled data is fed into a training algorithm with the goal of
discovering patterns and relationships.
• More dynamic Ids and other properties will be in the HTML DOM.
• Actions on these web elements involves more vigilant locator definition and extra
time if done manually
• Most traditional tools rely on the single algorithm they were built on and tend to generate frail
element locators when used for such a dynamic web page.
Visually locating an element
• Trained with a large number of known icons and then be ready to automatically identify if
any similar image, button or icon is present on the web page.
• In the test scripts, users can simply mention which type of element is targeted instead of
providing locators based on HTML DOM properties. This can be as simple as saying, “Click
on My Account.”
• An AI-powered automation tool will automatically find where the My Account icon is
on the web page and perform user action on it..
Self-Healing Test Scripts
• Changing customer expectations, our web applications have become highly dynamic
• What if our test scripts were given the ability to do this themselves! That is exactly
what artificial intelligence can do for us.
Approaches an intelligent framework can follow to self-heal a failing script
Automatically identify robust web element locators can further be extended to create some tools, which can
perform reverse engineering on the web application and generate page classes for us.
Most test automation frameworks also consist of Data Model classes, which often represent test data for
different web forms in our web applications.
Deriving all such Data Models by performing analysis or reverse engineering on the application under test can
also be a great use of artificial intelligence and machine learning. This will give any test automation team a
skeleton framework that is ready to start test authoring
Smart Regression
Verification of visual appearance on a web page with its baseline expected image
Traditional approach wasn’t an effective approach and tended to give unreliable results.
Helps to uncover any UI defects that are not always reported by functional test automation.
Other Uses of AI in Test Automation
Spidering
Crawling through an application and finding any unusual patterns during future test runs
Tools Leveraging AI in Test Automation
Conclusion
Artificial intelligence and machine learning in software testing is a reality and a requirement for
coming industry demands
A question might arise: As a QA engineer, should I learn about artificial intelligence right now?