jmeter beanshell调用java方法错误的,求指导
beanshell的代码如下:import com.luqiao.parking.GeneratorSign;import java.util.Map;
import java.util.HashMap;
import java.io.*;
import com.tgb.ccl.http.HttpUtils;
import com.tgb.ccl.http.common.HttpConfig;
import com.tgb.ccl.http.exception.HttpProcessException;
import com.tgb.ccl.http.httpclient.HttpClientUtil;
String secret = "CE83AF54C0A80138235CF1188644D293";
String url="http://192.168.30.36:8080/pub/account/login";
Map map=new HashMap();
map.put("osType","android");
map.put("signType", "md5");
map.put("timeStamp", "1466045119229");
map.put("version", "v1.0");
map.put("userName","15980931719");
map.put("passWord","123456");
String sign=new GeneratorSign().getSign(map,url,"APP00001",secret);
System.out.println(sign);
return sign; 在调用getSign时,执行报错,错误如下:
可是在eclipse中代码调用方法是正确。这是为什么?
页:
[1]