Extend Jmeter--BeanShell for java extension

1. Write the first java program in eclipse, export it as a jar file, create a dependencies folder under the Jmeter installation file, and put the exported .jar package file in the folder.

2. Modify the jmeter.properties in the bin directory of the Jmter installation file to add this, and then restart jmeter.

3. Edit the following code in the new BeanShell Sample in Jmeter, you can directly reference the Math method:

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325284672&siteId=291194637