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:
相關文章
相關標籤/搜索