Sorry, answered my own question.  I had at one point been trying to use a 
post-processor with "last_sample_ok" and that doesn't give what I would 
consider to be expected results, but the IF controller actually was working as 
expected and that's good enough for me.
       From: Glenn Caccia <[email protected]>
 To: JMeter Users List <[email protected]> 
 Sent: Tuesday, February 24, 2015 8:22 AM
 Subject: Gettings results from most recent sampler
   
 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