1、beanshell中使用了ArrayList方法时,如果按照常规的写法:
ArrayList <Company> companyList = new ArrayList<Company>();
这样子是会报错的:
Response message: org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval In file: inline evaluation of: ``import sha256.SHA256; import sha256.Company; import sha256.CompanyUtils; import . . . '' Encountered "=" at line 15, column 41.
如果改成:ArrayList companyList = new ArrayList();将<>括号去掉的话,就可以了