Hi all,
Kind of a basic question, but I'm a little confused by how JMeter exposes 
getting most recent sampler results.  I have a JMeter script where I need to 
write a value to a file if a particular sampler doesn't fail.  There are a few 
different ways that I could do this, all taking advantage of JMeter's idea of 
last or previous sample.  However, from what I have observed, it seems that the 
"last" or "previous" sample isn't actually whatever sample just occurred, but 
whatever sample occurred prior to the last sample, which does me no good.  For 
example,  I have an HTTP  sampler called SamplerA.  Right after that I have an 
IF controller with the condition ${JMeterThread.last_sample_ok}.  Both of these 
are in a loop controller.  I also have the ViewResultsTree listener and Debug 
PostProcessor so I can see what's going on.  After running a few rounds, let's 
say that the sampler results are fail, pass, fail.  In that case, what I'll see 
reported for "last_sample_ok" is true, false, true.  I was expecting it to 
report false, true, false.  I am missing the intent of last_sample_ok or prev?
Thanks,
Glenn

Reply via email to