MeterSphere 中内置的库

1.JMeter 内置函数

见官网内置函数Apache JMeter 官网,使用参考How to Use JMeter Functions

2.后端依赖的库

主要来自https://github.com/metersphere/metersphere/blob/master/backend/pom.xml中的定义

image

此外,Jmeter的lib目录下面自带相关的jar包:

image

Commons Lang 具体函数详见Javadoc

Commons Text  具体函数详见用户指南Javadoc

Commons Codec 具体函数详见Javadoc,使用可以在前置/后置脚本中调用:

import org.apache.commons.codec.digest.DigestUtils;
log.info("md5 digest of hello is: "+DigestUtils.md5Hex("hello")); ;

fastjson 具体使用详见 wiki

原文地址:https://www.cnblogs.com/fanfeng/p/14345708.html