1

I'm having a problem with the CSV generated, it duplicates or iterates the process of printing.

Code of printing to CSV:

enter image description here

CSV file generate with null record:

this is the generated csv

It shows to values PASSED and null, I'm only expecting the value with PASSED.

Don't know where the null value came from, also in the Debug Sampler the message variable only contains PASSED , did not see any null .

Ori Marko
  • 56,308
  • 23
  • 131
  • 233
user9923622
  • 39
  • 1
  • 7
  • you are using a postprocessor? can you show your test hierarchy? – Ori Marko Jul 05 '18 at 09:40
  • under the thread group is the sampler and processor,, the processor is not under the sampler ,, as i have assertions that is being inputed in the MESSAGE variable. i put the processor outside the sampler to get the value of the assertions :) – user9923622 Jul 05 '18 at 09:52

1 Answers1

0

When you use post processor for specific sampler, make sure it will execute only once by putting it under the Sampler, otherwise it can execute for other samplers in its hierarchy which you will not expect

If you want it to execute after assertions, change to Beanshell/JSR223 Sampler after your Sampler so it will be executed once after all assertions.

See JMetet's Execution order:

..Sampler

Post-Processors> (unless SampleResult is null)

Assertions (unless SampleResult is null)..

Community
  • 1
  • 1
Ori Marko
  • 56,308
  • 23
  • 131
  • 233