diff --git a/locustgraphqlclient/client.py b/locustgraphqlclient/client.py index c59dbdb..4c6368e 100644 --- a/locustgraphqlclient/client.py +++ b/locustgraphqlclient/client.py @@ -18,7 +18,7 @@ def execute(self, label, query, variables=None, type="graphql") -> Optional[dict except (urllib.error.HTTPError, urllib.error.URLError, ValueError, JSONDecodeError) as e: total_time = int((time.time() - start_time) * 1000) events.request_failure.fire( - request_type=type, name=label, response_time=total_time, exception=e + request_type=type, name=label, response_time=total_time, exception=e, response_length=0 ) else: @@ -39,6 +39,7 @@ def execute(self, label, query, variables=None, type="graphql") -> Optional[dict class GraphQLLocust(User): + abstract = True endpoint = "" def __init__(self, *args, **kwargs):