REST ASSURED FUNDAMENTALS

Rahul
2 min readJul 18, 2020

--

— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — -

MEASURING RESPONSE TIME IN REST ASSURED

1,2 and 3
1 and 2 in this screenshot (ie captureResponse time and assert response time)
expectResponseTime (3rd in this screenshot)

— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —

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

--

--

No responses yet