pyresttest icon indicating copy to clipboard operation
pyresttest copied to clipboard

Getting request times in tests

Open wirsingj opened this issue 7 years ago • 3 comments

Hey, is there currently a way to get the request response times for each test? The benchmarking feature is powerful, but I'd like to be able to gather this data when running tests.

wirsingj avatar Feb 10 '17 18:02 wirsingj

I ended up just adding a 'time' field to the TestResponse class that is populated after the curl call. Its then added to the info level logging output. (Which I instead route to a file)

If this is something people are interested in, I can make a PR.

wirsingj avatar Feb 10 '17 19:02 wirsingj

Hi wirsingj, I'm certainly interested in it, could you provide me the sourcecode? As I am quite a beginning python programmer/tester.

rolandghub avatar Feb 11 '17 17:02 rolandghub

Couldn't push to this repo- here is the modified file. Do a file diff check on it and the source to see what I modified, and format to your liking :) (pyrestest/pyresttest/resttest.py) resttest.py.zip

wirsingj avatar Feb 11 '17 19:02 wirsingj