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.
Beanshell assertion to compare variable AdID1 and MAdID1
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");
Error:BeanShellAssertion: org.apache.jorphan.util.JMeterException: Error invoking bsh method