Skip to main content (Press Enter).
Sign In or Join
Skip auxiliary navigation (Press Enter).
Skip main navigation (Press Enter).
IT Service Management
See All Groups
All Local Groups
Premier User Groups
Meet the IMWUC Team
Host a Webcast
Cloud Integration Expert Labs & Learning Community
Cloud Pak for Data
Hybrid Data Management
IBM Z and LinuxONE
Internet of Things
All Upcoming Events
On-Demand Webcast Library
Virtual Community Events
IBM API Connect
Deliver High Quality APIs with Automated API Testing
Tue June 16, 2020 02:18 PM
Mark as Inappropriate
With the launch of the next generation of IBM® API Connect, I’m thrilled to introduce one of the key highlights of this launch – automated API behavior testing.
This feature is a result of our
laser-focused efforts to improve productivity and accelerate the rapid development of high-quality APIs consistently.
We understand that a significant aspect of developing quality code includes the ability to understand, debug, and troubleshoot it
, after unit testing it
. Usually, developers spend a huge amount of time to understand the execution flow of API– inputs, outputs, contexts, etc. to
debug. With extensive design research and iteration, we have introduced a
modern user experience
to debug API and trace its behavior through the introduction of Test Tab within API Connect. We support the testing of GraphQL APIs with GraphiQL.
With this assembly debug, developers can
examine API execution flow along with response payload
, header information,
and related metrics
at a glance
. They can also view the response metadata on the same UI. Using the trace tab, a developer can get a deeper view of API flow and inspect the data transformation between the different policies used in the API proxy.
This is particularly useful when the call returned an error and you don't know why. It provides both basic and advanced trace for each policy execution. It also contains information on latency, memory allocation in addition to complete log details.
With this new graphical representation, it's now easier to identify issues, allowing developers to iterate until the desired results are seen.
Learn more about this debug feature on the Knowledge center
However, we know that testing doesn’t stop here.
Effective testing ensures the app behaves the way it was intended to. It includes
different types of tests like
functional, integration, etc.
have invested in automating their development and deployment pipeline to deliver at speed, quality takes a back seat largely due to manual testing efforts. To be successful at delivering reliant APIs, you must make continuous testing as part of your development.
In V10, d
evelopers can now automatically create tests from Open API definition with a single button click without leaving API Connect. These tests validate the behavior of the API through assertions. The tests can be easily modified to add more assertions through a simple drag and drop user experience thereby accelerating the testing time. This is tremendously helpful when codebase grows at a staggering pace.
The QA team can perform end to end testing to reproduce consumer behavior, create/modify logical flow, test against multiple data sets can all be done without any code.
Testing doesn’t have to stop with a simple response code check anymore!
Further, to align with your DevOps process, these
tests can be executed as part of the CI/CD pipeline by creating API Hooks to ensure the API is behaving as expected as developers continue to iterate in an agile fashion. The tests can easily be added to the Jenkins pipeline with our Junit plugin and executed every time code gets checked in.
, the QA team can gain detailed insights on the code quality through rich dashboard visualizations and diagnose error
from test reports. The main dashboard provides an overview of all projects and their statuses. It
sums up the failures and successes of all the projects in the p
rg for the last 24hrs.
The project Logs dashboard provides deeper insights on successes and failures for a customizable date range for easy comparison of different test runs.
The QA team can compare the test runs and identify trends from the API Quality tab.
Learn more about this automated testing feature on the Knowledge center
Check out this
step by step demo
learn more about using this capability
API Connect Debug and Test Demo
Reason for Moderation
Describe the reason this content should be moderated (required)
Skip Navigation Links
Copyright � 2018 IBM Middleware User Community. All rights reserved.
Powered by Higher Logic