Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Digital Transformation and Modernization with IBM API Connect

You're reading from   Digital Transformation and Modernization with IBM API Connect A practical guide to developing, deploying, and managing high-performance and secure hybrid-cloud APIs

Arrow left icon
Product type Paperback
Published in Jan 2022
Publisher Packt
ISBN-13 9781801070799
Length 588 pages
Edition 1st Edition
Tools
Arrow right icon
Authors (3):
Arrow left icon
Bryon Kataoka Bryon Kataoka
Author Profile Icon Bryon Kataoka
Bryon Kataoka
James Brennan James Brennan
Author Profile Icon James Brennan
James Brennan
Ashish Aggarwal Ashish Aggarwal
Author Profile Icon Ashish Aggarwal
Ashish Aggarwal
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Preface 1. Section 1: Digital Transformation and API Connect
2. Chapter 1: Digital Transformation and Modernization with API Connect FREE CHAPTER 3. Chapter 2: Introducing API Connect 4. Chapter 3: Setting Up and Getting Organized 5. Section 2: Agility in Development
6. Chapter 4: API Creation 7. Chapter 5: Modernizing SOAP Services 8. Chapter 6: Supporting FHIR REST Services 9. Chapter 7: Securing APIs 10. Chapter 8: Message Transformations 11. Chapter 9: Building a GraphQL API 12. Chapter 10: Publishing Options 13. Chapter 11: API Management and Governance 14. Chapter 12: User-Defined Policies 15. Section 3: DevOps Pipelines and What's Next
16. Chapter 13: Using Test and Monitor for Unit Tests 17. Chapter 14: Building Pipelines for API Connect 18. Chapter 15: API Analytics and the Developer Portal 19. Chapter 16: What's Next in Digital Transformation Post-COVID? 20. Other Books You May Enjoy

Configuring unit tests

As you develop and change your APIs, you should be unit testing them incrementally with specific unit test cases for the change you have just made or testing the API in general. The API Connect test and monitor tool allows you to quickly generate these unit tests by simply sending a request to the API URL and getting a response. This tool will provide some assertions that you can use as-is, alter, delete, or add to. Let's take a look at how to configure a simple unit test case for an API that you are working on.

Before you start to create your first unit test, you must ensure that you have the test and monitor tool add-on installed. To verify this, log into API Manager. The bottom right tile on the home screen should be labeled Test APIs, as shown in the following screenshot:

Figure 13.1 – Verifying that the test and monitor tool is installed

Once you have verified that you have the test and monitor tool installed and...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image