Open arunrajgroot opened 2 months ago
To validate the keys in response body - TO_HAVE_JSON_INSTANCE
After generating the file v - in code, it is displayed as undefined
Tested OK Now we can validate the keys in the response body Tested by valid, invalid, extra key, re-arrange the key structure, removing some keys in response REST_RESPONSE@restResponse.data
await expect(utils.compareJSONInstance(response.data,{ "auth_req_id": "", "result_delivery_mode": "", "user_id": "", "success": true, "transaction_link": "", "interval": 5, "request_id": "", "expires_in": 1718108160 })).toBeTruthy();
Area -> API New Feature - Need to add support to validate the list of keys from response body Describe the bug - New feature request Version - NO Expected behaviour - Need to include response validation to validate the list of keys from response body, this need to be validated inform of number of keys expected , contains, need to restrict if additional key is included as undefined. Actual behaviour - Feature not available in current version How to Reproduce? - NO Anything else? - NO
Note: In current testman response validation is not included.