-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Response Time ? #60
Comments
I just pushed a responsetime assertion, could you have a look and see what you think. Any feedback would be appreciated :) |
wow, so awesome ! |
At the moment it is not added to npm whilst u have a look. On 6 Aug 2016 11:06 a.m., "Chris" [email protected] wrote:
|
alright thanks as per you dais, i managed to update with this specific commit updating my package.json like this |
got an exception during the test: before(function () {
chakram.clearRequestDefaults();
return apiResponse = chakram.get(testedUrl)
}); the test: it("responseTime should be below 750ms", function () {
return expect(apiResponse.responseTime).to.exist.and.to.be.at.least(20).and.at.most(750);
}); the exception 3) Not Authorized User Profile API responseTime should be below 750ms:
AssertionError: expected undefined to exist
at doAsserterAsyncAndAddThen (node_modules/chai-as-promised/lib/chai-as-promised.js:296:33)
at .<anonymous> (node_modules/chai-as-promised/lib/chai-as-promised.js:286:25)
at Object.defineProperty.get (node_modules/chai/lib/chai/utils/overwriteProperty.js:50:37)
at Context.<anonymous> (spec/users/non_authenticated_user_assertions.js:45:51) |
how could i get the responseTime in the report please ? |
is the responseTime feature pushed under the last npm version ? |
Not yet, I will aim to do a release at the weekend |
Is there a way to get the API response time while testing it ?
would be nice addon
The text was updated successfully, but these errors were encountered: