Skip to content
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

Failed Requests account for average Time #3138

Open
MaxiLambda opened this issue Aug 10, 2023 · 0 comments
Open

Failed Requests account for average Time #3138

MaxiLambda opened this issue Aug 10, 2023 · 0 comments

Comments

@MaxiLambda
Copy link

  1. Newman Version (can be found via newman -v):
    5.3.2
  2. OS details (type, version, and architecture):
    Windows 11
  3. Are you using Newman as a library, or via the CLI?
    CLI
  4. Did you encounter this recently, or has this bug always been there:
    I have not encounterd this before, but i am an new user
  5. Expected behaviour:
    Failed Requests should be omitted from the calculation of the average request time
  6. Script
    newman run mycollection.postman_collection.json -n1000 --disable-unicode --color off

mycollection: contains some post and some get requests. All are send to different endpoints with basic authentication

  1. start sending requests to a server
  2. Have some of the requests fail
  3. Calcualte the average given to you by post man to the average you calculate yourself

let sum be the sum of the time of all not failed request
let n be the amount of requests
let err be the amount of failed requests

=> newman seems to calculate the average as sum/n
=> correct: sum/(n-err)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant