pyresttest
pyresttest copied to clipboard
Getting request times in tests
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.
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.
Hi wirsingj, I'm certainly interested in it, could you provide me the sourcecode? As I am quite a beginning python programmer/tester.
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