Vinayak
Vinayak

Reputation: 53

Jmeter CSV DATA set config when stop thread on EOF is true. The tearDown group is not executed

Jmeter CSV DATA set config when stop thread on EOF is true. The tearDown group is not executed.

enter image description here

Log error:

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 detected for CSV DataSet:CSV Data Set Config configured with stopThread:true, recycle:false**

Upvotes: 1

Views: 2212

Answers (1)

Dmitri T
Dmitri T

Reputation: 168217

Be aware of JMeter Scoping Rules, when you put the CSV Data Set Config to the same level as Thread Groups - it will be applied to all thread groups therefore tearDown Thread Group will detect the file end and won't start any threads

If thread group doesn't start any threads no samplers are executed.

Just move your CSV Data Set Config inside the "normal" Thread Group and you test should start working as expected:

enter image description here

Upvotes: 1

Related Questions