JMeter配置全局变量token的方法

181 阅读1分钟

  文章转载链接www.51testing.com/html/34/n-7…

  1.添加线程组

  2.添加http请求

  3.配置登陆的参数

  登陆api:api/blade-auth/oauth/token

  密码需要经过Md5加密后输入

  4.添加http头管理器

  5.配置参数

  6.添加结果树

  7.点击运行,登陆获取token

  8.添加Json提取器

  9.提取Json里的token

  10.添加BeanShell 后置处理程序

  11.配置全局变量

  KaTeX parse error: Expected group after '' at position 2: {?_setProperty(us…{token},)}

  12.引用全局变量

  ${__property(user_token)}