在 beanshell 中写数组代码如下:

String[] target=new String[4];

String[] source = new String[]{"a1","a2","a3","a4"};

运行后报错如下:
org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval Sourced file: inline evaluation of: ``import com.google.gson.JsonObject; import com.google.gson.Gson; import com.googl . . . '' : Attempt to access property on undefined variable or class name

请问,jmeter 是不支持 string 数组,还是我用错了呢?需要引入什么包吗?


↙↙↙阅读原文可查看相关链接,并与作者交流