AI Match Mocks
Last updated
Last updated
When HyperTest AI finds an outbound call during the Replay mode that does not have an exact same outbound call in Record mode, it matches this call with one closest in schema to avoid Mock Not Found scenarios.
This is a best match scenario orchestrated by HyperTest's AI. It matches mocks of requests between record and replay with minimal difference in schema of the response as well as the outbound calls.
Suppose you've 2 APIs: createProduct and updateStock, and now you've introduced a new column to your stock table called "restockNeeded" whose value will be set on the count stock we have. When we recorded these 2 APIs we did not have that column, now in your new PR you've added it and you're trying to run a Test, you would see something like this:
Both the APIs have reported a change that a new Key has been added to the sequelize-mode-update mock.
This has been made possible by AI matches, here we looked at all the available recorded mocks and decided to pick a closest mock to the current input of the mock and reported this change.