Chapter 2. Leveraging AI for Test Automation

Did you know that autonomous and intelligent agents, commonly referred to as bots, are already running tests on major applications today? That’s right: leveraging AI for software testing is not a thing of the future; AI for test automation is already here. The bots are in the building, and they’re not testing just one app but many apps in various application domains.1 In fact, don’t be surprised if you find out that AI is already testing your own app! Chances are that, if you publish your app in one of the major app stores, AI bots are already testing it. In this chapter, I’ll walk you through how AI tests software and demystify how this technology really works when testing applications at different levels or for various quality attributes.

AI for UI Testing

Just because certain tasks have historically required human effort does not mean that we won’t be able to automate them someday. Once upon a time, we believed that tasks such as voice and image recognition, driving, and musical composition were too difficult for computers to simulate. However, many of these tasks are now being automated using the power of AI and machine learning. In some cases, AI is outperforming human experts in tasks such as medical diagnosis, legal document analysis, and aerial combat tactics, among others. With that in mind, it really shouldn’t surprise you that we’re leveraging AI for functional testing tasks that previously relied on the expertise of human ...

Get AI-Driven Testing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.