PyRestTest: Print out passed test cases as well

459 Views Asked by At

I'm using PyRestTest on linux to test some REST APIs. On the terminal, I only see test cases that failed. How can I get resttest.py to print out the passes test cases as well? I tried looking at the src for resttest.py, but couldn't find a switch. The command line args for resttest.py also do not have a switch to print out the passed test cases. The --verbose option only seems to print out cURL output.

2

There are 2 best solutions below

0
BobMcGee On BEST ANSWER

On the command line, set the --log argument to 'info.'

Incidentally, I am the author of PyRestTest.

1
earlence On

the code that reads the response code is in run_test of resttest.py. I just modified that location to printout the success message