tilln / jmeter-retrier

JMeter Plugin for retrying failed samplers
MIT License
3 stars 1 forks source link

Is it possible not to change sample name? #3

Open wulinjie122 opened 1 week ago

wulinjie122 commented 1 week ago

I noticed if exception occurred with sample, this plugin will add suffix to the sample label, is there a better to avoid change the sample name ?

tilln commented 1 week ago

Currently, you can set the JMeter property jmeter.retrier.sampleLabelSuffix to an empty string. However, the retries would still have the counter value appended. Work-around would be to change the sub-results' labels in a JSR223 PostProcessor like so (assuming you don't have nested sub-sub-results):

prev.subResults*.setSampleLabel(prev.sampleLabel)

Let me know if you have a better idea how to implement this in the plugin.