1.在http请求
2.前置处理器

3.添加:BeanShell PreProcessor
4.在BeanShell PreProcessor加入:
//为25为字母数字随机数。//String fpqqlsh = RandomStringUtils.randomAlphanumeric(25);
下面有13位时间和12位随机数组成:
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.text.SimpleDateFormat;
import org.apache.commons.lang.RandomStringUtils;
Date dt=new Date();
SimpleDateFormat sdf=new SimpleDateFormat("MMddHHmmssSSS");
String fpqqlsh = sdf.format(dt)+RandomStringUtils.randomAlphanumeric(12);
//String data;
vars.put("dataExchangeId",fpqqlsh);