【问题标题】:Jmeter CSV DATA set config when stop thread on EOF is true. The tearDown group is not executed当 EOF 上的停止线程为真时,Jmeter CSV 数据集配置。拆解组未执行
【发布时间】:2020-11-20 05:39:07
【问题描述】:

当 EOF 上的停止线程为真时,Jmeter CSV 数据集配置。拆解组未执行。

日志错误:

Stop Thread seen for thread tearDown Thread Group 1-1, reason: org.apache.jorphan.util.JMeterStopThreadException: End of file:C:/Users/673311/git/refund-batch-poc/BatchAutomation/batch_prod/ 11-02_Batch1_PP-Only.csv 检测到 CSV 数据集:CSV 数据集配置配置为 stopThread:true, recycle:false**

【问题讨论】:

    标签: csv jmeter teardown


    【解决方案1】:

    请注意JMeter Scoping Rules,当您将 CSV 数据集配置设置为与Thread Groups 相同的级别时 - 它将应用于所有线程组,因此 tearDown 线程组将检测文件结束并且不会启动任何线程

    如果线程组没有启动任何线程,则不会执行samplers

    只需将您的 CSV 数据集配置移动到“正常”线程组中,您的测试应该会按预期开始工作:

    【讨论】:

    • 感谢您的快速回复。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-08-06
    • 2020-03-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-05-28
    • 1970-01-01
    相关资源
    最近更新 更多