title: JMeter BSF Sampler Response
body: <p>Within my JMeter test, I have some HTTP Requests and BSF samplers. In viewing the Results Tree, I'm a little confused by what I see in the <code>response</code> portion of the BSF sampler. The request displays my BSF script (in javascript), which is: </p>
  
  <pre><code>var jobStatus = vars.get("jobStatus");
  if (String(vars.get("jobCompleted")) === "true") {
      if (String(jobStatus) != "completed") {
          vars.put("uploadError", true);
          log.info("ERROR: Job Status did not complete correctly. Reason: " + jobStatus);
      } else {
          log.info("Job completed successfully.");
          vars.put("uploadError", false);
      }
  }
  </code></pre>
  
  <p>The response returns this, which I am perplexed by:</p>
  
  <p><code>org.mozilla.javascript.Undefined@fccc6e</code></p>
  
  <p>I'm not exactly sure what this means - the <code>undefined</code> portion leads me to believe this is an error I have unknowingly created, though the test and script run fine.</p>