jmeter之BeanShell Sampler

新建beanshell sampler 脚本框中键入脚本如下: [java] view plain copy result = “\n1:”+bsh.args[0]+”\n”; //1:从参数框中获取参数变量,不适用 result+=”2: testBeanshell\n”//2:直接获取变量,操作方便,非常适用result+=”3:”+vars.get(“testBeanshell”);//3:
相关文章
相关标签/搜索