1.在http请求
2.前置处理器
做随机数-前置处理器(http)
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);

相关文章:

  • 2022-01-31
  • 2022-12-23
  • 2022-03-04
  • 2022-01-23
  • 2021-10-11
  • 2021-07-27
  • 2021-12-12
  • 2021-07-24
猜你喜欢
  • 2021-07-08
  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
  • 2022-01-11
相关资源
相似解决方案