ReadyAPI Foundations: Assertions and Smart Assertions
Assertions are a popular construct in testing, and ReadyAPI has excellent support for them. You can use assertions to make sure your API is doing what it’s supposed to.In this course, discover how to use assertions to validate API responses against expected values and categorize assertions into property content, compliance, script, SLA, and security types. Explore specific uses, such as script assertions for complex validations and SLA assertions for performance checks. Next, learn how to set up API definitions using the Discover API tool and note its use in capturing live API interactions. Discover Property Content assertions, including the Contains and Not Contains assertions, use JSONPath expressions to verify JSON response content and structure, and use message content assertions, script assertions, smart assertions, and dynamic property expansion in script assertions.Upon completion of this course, you’ll be able to validate API responses using different types of assertions and to validate multiple properties using smart assertions.