It's been a while since I messed with the IF controller, I can't find the
scripts I created a few years ago, so here goes:

I'm creating a script where I want the user to pass a parameter which turns
on or off an IF controller.  The IF controller only has a Simple Data
Writer.  To wit:

jmeter -n -t FILE.jmx -JRecordError=1 etc, etc where if RecordError = 0 the
IF portion is skipped and if it is 1 that portion is not skipped.  The
parameter is referenced in a User Defined Variables page as follows:  ${__P
(RecordError, 0)} and in the IF controller the condition is ${RecordError}
== 1 (and all checkboxes are unchecked).

I've deliberately introduced errors (e.g., writing to a file that cannot be
written to and the Simple Data Writer creates the log file, but the file is
empty (this is regardless of whether RecordError is 0 or 1).  I do not want
this file created if RecordError=0.

This isn't rocket science but, for the life of me, I can't figure out what
I'm doing incorrectly.

Thank you for your time.

Bo



                                                                                
     
   Bohdan L. Bodnar                                                             
     
   Lead Performance Engineer                                                    
     
   1-312-871-5163                                                               
     
                                                                                
     
                                                                                
      
                                                                                
      
                                                                                
      
   E-mail: [email protected]                               222 South Riverside 
Plaza 
                                                                    Chicago, IL 
60606 
                                                                        United 
States 
                                                                                
      

Reply via email to