Extracted Value Assertion for API Tests

    Extracted Value Assertion for API Tests


    Article summary

    In this Quality Modeller feature video, you will learn how to form an assertion on extracted JSON values for API tests.

    Additionally, check out our QuickStart API Automation guide!

    To get started with this demo, we have a module with an API Request set-up. Open up your own module with an API Request, to do this, navigate to the Explorer in Quality Modeller, Open a Module and then hit the Blue Action button. 

    This will open the Edit Function menu for your module, from here open the API Request tab and then navigate to Assertions.

    In the Assertions tab, you can add new Assertions by hitting the Add button. Here, you will be able to add two new types of Assertions, as shown in the demo you can add JSON Path and Custom Code assertions. 

    This will propagate in the module, and you can view the results by hitting the Generate button. This will show you the generated code, including the JSON path and Custom code assertions we just set up.