See what API testing solution came out on top in the GigaOm Radar Report. Get your free analyst report >>

See what API testing solution came out on top in the GigaOm Radar Report. Get your free analyst report >>
Jump to Section
Go beyond record and playback testing. Read on to discover how to capture traffic associated with API test scenarios during UI testing and create meaningful test scenarios with AI to increase scalability and efficiency.
Jump to Section
Jump to Section
A popular API testing solution for functional, regression, integration, and backend testing, Parasoft SOAtest has a unique feature: Smart API Test Generator.
This groundbreaking technology uses AI to convert traffic captured during manual tests into automated API tests. You turn on recording and stop it by using a browser plugin. This scriptless workflow doesn’t require a large tool set. It also doesn’t require detailed knowledge of the application API layer.
Smart API Test Generator isn’t the typical UI record and playback technology. In this case, AI automatically captures and organizes API traffic that underlies the UI interactions into meaningful test scenarios. These API scenarios form the basis of API test suites that decouple the UI from functional testing.
The concept of record and playback automation testing is fairly common among UI testing strategies. You record UI actions in the browser—typically with an automated testing tool—and then play back those actions as an automated UI test case. However, much like a film, where you need to edit raw footage for continuity and content, you need to configure recorded test cases for consistent and stable execution and extend them with automated validations and assertions.
UI changes are common for applications under development. You need to maintain tests, which is time consuming and can reduce the benefits of automation. However, although UI changes are common, the underlying API interactions are less likely to change frequently. API testing is a more efficient way to test backend application functionality without the burden of UI test maintenance.
Parasoft was the first to translate this strategy to API testing as a part of its comprehensive Continuous Quality Testing Platform. Today, developers and testers can generate vendorless Selenium test scripts using Parasoft Selenic when they want to validate UI behavior or the user experience on the front end. They can generate API tests when to focus on the functional validation of the underlying business logic or gain efficiency by generating tests at a lower level of scope.
UI testing can be brittle. It’s large in scope and takes more time to execute and maintain. API testing is fast, has fewer moving parts, and is more focused on specific business logic. API tests are often configured in a scriptless interface, making them more accessible to nontechnical people.
With all that in mind, manual tests are inherently difficult to translate into an API test. They require good domain knowledge of the underlying services, HTTP call structure, header and token parameterization, and so on. Parasoft SOAtest handles these things for you by looking at the recorded HTTP traffic and applying AI to create repeatable, stable API tests. If you want to reduce your reliance on UI testing, this is a great avenue to achieve that goal.
More advantages include:
Traditional record and playback tools have their drawbacks. Depending on the application architecture, complexity, and release velocity users may find it difficult to implement this approach for a variety of reasons.
These are all valid concerns, and this is where AI fits into API record and playback testing.
Since its inception, this type of testing strategy has improved quite a bit thanks to AI. It can address problems such as brittle test cases and better automation overall to mitigate redundancy or knowledge gaps.
AI for AI’s sake is meaningless. Why do we need to add artificial intelligence to API testing? Well, we need it because record and replay testing isn’t enough.
To scale API testing, it takes more than just collecting traffic, recording it, and playing it back. You need the ability to identify and organize captured API activity into meaningful, reusable, and extensible tests.
This is where artificial intelligence comes into play so that the traffic recording can not only take place but also be organized into recognizable scenarios or patterns of API usage that occur during UI use cases. This is why Parasoft developed the Smart API Test Generator. The AI-powered tool captures API traffic and coalesces the captured data into reusable and editable test scenarios in Parasoft SOAtest.
As you test the UI, the Parasoft Recorder monitors the underlying API calls that are made to your application, just like a traffic collector might, and then the Smart API Test Generator uses AI to discover patterns and understand relationships between those API calls. Next, it generates automated API test scenarios that perform the same actions as your UI tests but are fully automated and easily extendable.
Parasoft’s Smart API Test Generator consists of three components.
You can set up and execute tests by connecting the Smart API Test Generator to a SOAtest server locally or via a dedicated server. The Chrome browser extension lets you start and stop traffic recording, configure connections to the SOAtest server and the web proxy, and save the traffic as files.
These recordings are pushed to SOAtest, which is where the power of heuristics and AI comes in. The traffic recordings are organized into API tests that represent detected patterns within the traffic. The automatically generated API tests are the same as any other existing API tests, which are extensible, maintainable, and executable within SOAtest, and become part of a future or existing test suite.
All of this is good in its own right. Even more, Parasoft’s API test generation is a fantastic way for developers and testers to understand the relationships between the UI actions and the API calls, thus improving API testing skills and knowledge of the application.
The Smart API Test Generator takes on the heavy lifting, giving you an easy, scriptless place to start building API tests. It lowers the technical entry point to API testing, bringing beginners into the API testing world via user-friendly test automation provided by Parasoft SOAtest. These visual tools are easy to adopt and use.
The test scenarios automatically created by SOAtest provide the building blocks for API test suites that are both human-readable and extensible. Testers can build their understanding of the APIs and the application functionality from these tests and extend and reuse them to build up an entire suite of tests.
Teams can reuse these API functional tests for nonfunctional testing needs, including load, performance, and security testing. This reduces any testers’ reliance on manual and UI-focused testing for much of the application functional testing.
Clearly, there are differences between traditional, UI-based, record and playback testing, and API, AI-augmented testing. Here are some of the benefits of API record and playback testing that Parasoft SOAtest provides.
The Smart API Test Generator in SOAtest works to automatically create test cases based on meaningful interpretation of the captured API activity, offering ease-of-use functionality and maintenance. By pushing functional testing down the test pyramid to smaller scope tests and reducing reliance on slow and brittle UI regression tests, development and test teams can achieve greater release velocity with improved testing productivity while ensuring high test coverage.