首页 新闻 搜索 专区 学院

jmeter使用BeanShell PreProcessor

0
悬赏园豆:200 [已关闭问题] 关闭于 2019-08-15 16:34

已经导入jar包,但还是报错,说没有这个模块
报错信息:Error invoking bsh method: eval Sourced file: inline evaluation of: ``import com.allcam.acs.acssdk.model.SDKServiceStub; import com.allcam.acs.acssdk. . . . '' : Typed variable declaration : Void initializer.

Java代码
import com.allcam.acs.acssdk.model.SDKServiceStub;
import com.allcam.acs.acssdk.utils.DigestUtil;
String AUTHORIZATION_QOP_VALUE = "auth";
String DEFAULT_NC = "00000001";
String DEFAULT_CNONCE = "00000001";
String acsUrl = "http://112.13.167.212:10000/uas/v1/api/dev/list";
String username = "allcamtest";
String nonce = ${nonce};
String realm = ${realm};
String password = "Allcam@2019";
String response = DigestUtil.generateResponse(username,
realm,
nonce,
acsUrl,
AUTHORIZATION_QOP_VALUE,
DEFAULT_NC,
DEFAULT_CNONCE,
password,
null);
System.out.println(response);
vars.put("response",response);

导入jar包

舟亢哥哥的主页 舟亢哥哥 | 菜鸟二级 | 园豆:204
提问于:2019-08-15 12:01
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册