I am new to jmeter, I want to compare the two csv files ( one which have standard output and other latest test run results file), if there is any difference then it should write the difference to another file.
I want to do this in bean shell postprocessor
Thanks in advance
Your approach doesn't make a lot of sense as there are too many varying values (i.e. request timestamp, response time, connect time, latency, etc.) so basically you won't be able to find 2 identical lines in 2 JMeter result files for the same test plan.
I would recommend using one of the next alternative approaches:
Merge Results tool (available via JMeter Plugins) provides possibility to merge/compare 2 or more JMeter results files:
You can install Merge Results tool using JMeter Plugins Manager