— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — -
MEASURING RESPONSE TIME IN REST ASSURED
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
JSON SCHEMA VALIDATION
Prerequisite: You need to have library: json-schema-validator
You can create a Json schema from here: https://jsonschema.net/home
Then copy and paste that schema in your test folder.
Now create a test(as shown ) against that schema and test it.
LINKS:
GITHUB: https://github.com/james-willett/RestAssuredFundamentals/tree/22-ExtractResponse
Blog: https://www.james-willett.com/groovy-gpath-in-rest-assured-part1-overview/
james-willett.com/rest-assured-gpath-json
Course: https://www.udemy.com/course/rest-assured-fundamentals/learn/lecture/8864348#questions/7583820