Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/312.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/perl/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Hocust从摘要报告中删除预期错误trans(401)_Python_Performance Testing_Locust - Fatal编程技术网

Python Hocust从摘要报告中删除预期错误trans(401)

Python Hocust从摘要报告中删除预期错误trans(401),python,performance-testing,locust,Python,Performance Testing,Locust,为了使蝗虫性能测试尽可能自然,我只在令牌不存在或已过期时才发出令牌,但这会导致401未经授权,然后发出令牌并重试 我如何从列表和统计数据中删除这些内容,因为在这种情况下,它们不是错误 Error report # occurrences Error -----------------------------------------------------------------------------------------------------------------------

为了使蝗虫性能测试尽可能自然,我只在令牌不存在或已过期时才发出令牌,但这会导致401未经授权,然后发出令牌并重试

我如何从列表和统计数据中删除这些内容,因为在这种情况下,它们不是错误

Error report
 # occurrences      Error
--------------------------------------------------------------------------------------------------------------------------------------------
 4                  GET /Users?filter=username eq "{ssn}": HTTPError('401 Client Error: Unauthorized for url: /Users?filter=username eq "{ssn}"')
 4                  DELETE /Users/{id}: HTTPError('401 Client Error: Unauthorized for url: /Users/{id}')
 4                  POST /Users: HTTPError('401 Client Error: Unauthorized for url: /Users')
--------------------------------------------------------------------------------------------------------------------------------------------

你可以忽略蝗虫认为的成功或失败。使用带有块的
,可以在响应完成并报告给蝗虫之前更改响应。有关示例,请参见蝗虫文档的本节:


你可以忽略蝗虫认为的成功或失败。使用带有
块的
,可以在响应完成并报告给蝗虫之前更改响应。有关示例,请参见蝗虫文档的本节: