I have a BeanShell Postprocessor in the setUpThread Group to capture the cookies and Beanshell preprocessor in the main thread (as a first step) to use the cookies captured in the previous setUpThread like:
I am getting the below error IF I add the 2 lines sampler from JSR223 or Beanshell sampler although CFLAG was declared in the UDV section of the Payment thread:
ERROR o.a.j.u.BeanShellInterpreter: Error invoking bsh method: eval Sourced file: inline evaluation of: import org.apache.jmeter.protocol.http.control.CookieManager; import org.apache. . . . '' : Typed variable declaration : Error in method invocation: Method getCookieManager() not found in class'org.apache.jmeter.protocol.java.sampler.JSR223Sampler'
2020-06-05 15:37:44,168 WARN o.a.j.m.BeanShellPreProcessor: Problem in BeanShell script. org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval Sourced file: inline evaluation of:
import org.apache.jmeter.protocol.http.control.CookieManager; import org.apache. . . . '' : Typed variable declaration : Error in method invocation: Method getCookieManager() not found in class'org.apache.jmeter.protocol.java.sampler.JSR223Sampler'