在 jmeter 中设置 user.properties 进行多个负载测试

Setting up user.properties in jmeter for several load test

我正在为多个线程设置负载测试,每个线程都需要一个特定的令牌。

如何通过 csv 文件或其他解决方案将其外包?

代码截图:

您可以在 jmeter 中为 csv/txt 文件使用 csv 数据集配置。将数据保存在外部 csv 或文本文件中,并使用 csv 数据集配置在您的 jmeter 脚本中用于您所需的线程。

确保文件中的数量或记录应与您要执行的线程数相同。

https://octoperf.com/blog/2018/01/25/jmeter-csv-data-set-config/