You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the statistics and failures pages, the name of the request is the last redirected Url path.
It seems pertinent, but in case of redirection, it's almost impossible to identify the original link of a name.
For example, the request to 'http://adf.ly/abcdef' gives the name '/link-deleted.php' with a 404 error in the failures page.
With this name only, it's impossible to identify the original Url that caused the error.
I think it would be more appropriate to use the original Url path as a name rather than the last redirected Url path.
Currently in client.py :
request_meta["name"] = name or response.request.path_url
Should be :
request_meta["name"] = name or (response.history and response.history[0] or response).request.path_url
The text was updated successfully, but these errors were encountered:
I'm not interested by the history itself.
I just expect to have the name of the URL I provide in the locust script to be displayed in the stats.
It's currently not the case when a redirection occurs as it displays the final location, making it impossible to trace the name back to the script.
For example, this locust script :
self.client.get("http://adf.ly/abcdef.php")
will display this name in the stats:
"/link-deleted.php"
I'm expecting to have "/abcdef.php" as the redirected URL path is useless
I really don't see the point in displaying the redirected URL as a name in the stats.
I already made the change on my fork. I can make a pull request if you find it pertinent.
In the statistics and failures pages, the name of the request is the last redirected Url path.
It seems pertinent, but in case of redirection, it's almost impossible to identify the original link of a name.
For example, the request to 'http://adf.ly/abcdef' gives the name '/link-deleted.php' with a 404 error in the failures page.
With this name only, it's impossible to identify the original Url that caused the error.
I think it would be more appropriate to use the original Url path as a name rather than the last redirected Url path.
Currently in client.py :
request_meta["name"] = name or response.request.path_url
Should be :
request_meta["name"] = name or (response.history and response.history[0] or response).request.path_url
The text was updated successfully, but these errors were encountered: