擅长:python、mysql、java
<p>JMeter线程<strong>完全独立</strong>,彼此不了解。因此,您可以使用任何合适的方法(<a href="https://jmeter.apache.org/usermanual/functions.html" rel="nofollow noreferrer">functions</a>,<a href="http://jmeter.apache.org/usermanual/component_reference.html#CSV_Data_Set_Config" rel="nofollow noreferrer">CSV Data Set Config</a>)参数化HTTP头管理器,以便每个用户都有自己的身份验证头。您可以使用<a href="http://jmeter.apache.org/usermanual/component_reference.html#View_Results_Tree" rel="nofollow noreferrer">View Results Tree</a>侦听器来验证这一点</p>
<p><a href="https://i.stack.imgur.com/gK83h.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gK83h.png" alt="JMeter Header Manager Debugging"/></a></p>
<hr/>
<p>如果您认为Python脚本更容易实现/调试,那么您可以看看<a href="https://locust.io/" rel="nofollow noreferrer">Locust</a>框架,您将能够在Python中创建/调试负载测试并在web界面中查看负载测试流。请参阅<a href="https://www.blazemeter.com/blog/how-to-run-locust-with-different-users" rel="nofollow noreferrer">How to Run Locust with Different Users</a>文章,以获取有关使用蝗虫实现场景的更多信息。在</p>