Insomnia Response Validator-Unit Test Plugin
Overview
This is a plugin for Insomnia API client that can validate the response based upon expected result.
Installation
Install insomnia-plugin-response-validator plugin from Preferences > Plugins.
Usage
Add a header INSOMNIA-RESPONSE-VALIDATOR with a json comprising of jsonpath and expected values.
Setup the Header
Validator
Key: JSONPATH Value: Expected Value
Note: To validate the response code of the request add "INSA-ResponseCode":"200".
{ "INSA-ResponseCode":"200", "$.status" : "success", "$.data[10].employee_name" : "Jena Gaines" }
Test Execution Result
Test Execution result will be appended at the top of the response as follows
More info for Debug
View-->Toggle DevTools-->Console