How can I get a verbose bug report in the Locust boot testing tool?

If I hit any web page in the Locust load test tool it throws some error. I want to get an error in the verbose.

How can I get the error report in verbose order. Is there any feature like locust backtrace it will be used to print the error list in detail.

My coding looks like this:

class MyTaskSet (TaskSet):

try:
  @task(1)
  def index(self):
      self.client.get("/")
except Exception as e:
     print e.msg  

      

If I test any url like this https://www.python.org/ it throws an error as shown in the picture below enter image description here

Error: ConnectionError (ProtocolError ('Connection aborted.', BadStatusLine ('' '',)),)

I want to get this error in detail.

+3


source to share


1 answer


If I'm interpreting your question correctly, you want to see a traceback of the error that happened in the web application you are making HTTP requests with. In this case, it is not something you can do in locusts. You need to set up such error reporting / logging in the application you are stressing.



(please comment and clarify if I misinterpreted your question and I will update the answer).

+2


source







All Articles