swangkkb / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

Support measuring time #338

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Monitor time for a request just before it's sent to the server and when it's 
received by the client. For example:

long time = get("/x").timeInMs()

and:

given()... then().responseTime(lessThan(200));

Note that called "timeInMs" or "responseTime" must consume the body of the 
response.

Original issue reported on code.google.com by johan.ha...@gmail.com on 13 Jun 2014 at 3:54