title: Pass a variable in bean-shell assertion Jmeter
body: <p>I try to pass 2 variables to the BeanShell script of Jmeter but it fails with the error. However, if I pass a hardcoded string value, it works. </p>
  
  <p>Beanshell assertion to compare variable AdID1 and MAdID1</p>
  
  <pre><code>String addrress1="${AdID1}"; 
  String memberAddress1="${MAdID1}"; 
  
  Failure1 = !addrress1.equals(memberAddress1);
  
  if (Failure1) {
    FailureMessage = "Variables are not equal. Expected \"" + addrress1 + "\" , actual:\"" + memberAddress1 + "\"";
  }
  
  
  if(addrress1.equals(memberAddress1)) {
      log.info("Matched"); 
  </code></pre>
  
  <blockquote>
    <p>Error:BeanShellAssertion: org.apache.jorphan.util.JMeterException:
    Error invoking bsh method</p>
  </blockquote>