Auto-Create Assertions for QuickStart API Automation

    Auto-Create Assertions for QuickStart API Automation


    Article summary

    Creating assertions for API tests has become extremely easy with Quality Modeller. By simply clicking a button, Quality Modeller can execute a sample request and generate assertions on-the-fly based on the characteristics of the API response. These assertions can then be used in test automation to ensure the proper functioning of the API.

    To utilise the new API Assertions, open an existing API Module collection and edit the API Function you want to add the assertions to. 

    In the Edit Function window, open the API Requests tab and then the Assertions SubTab. In the Assertions SubTab, you can now use the AutoBuild button to automatically create a range of assertions for your API Request. 

    Once you click the AutoBuild button you will be asked to enter your Execution Parameters and then to execute the API Request. 

    Once done, you will see a range of automatically generated API Assertions: