cybertk / abao

REST API automated testing tool based on RAML
MIT License
353 stars 59 forks source link

First test case response time included beforeAll execute time #203

Closed daneshih1125 closed 6 years ago

daneshih1125 commented 7 years ago

Hi

I have added some setup in beforeAll. The first case response time always included beforeAll execute time.

GET /users -> 200 ✓ Validate response code and body (8426ms)

POST /users -> 200 ✓ Validate response code and body `(2404ms)

Any idea to get the first test case real response time

plroebuck commented 6 years ago

Timing is performed and reported by Mocha, not Abao. Only thing that comes to mind would be to perform a "DontCare" action (perhaps "OPTIONS /users -> 204") prior and let the setup time be included with OPTIONS instead (assuming you're actively trying to time the GET).