postman添加本地变量
本地变量主要是针对单个URL请求设置的变量,作用域只是局限在请求范围内,如请求URL如下,设置两个本地变量(key)作为参数,请求方式为get
变量设置的格式为{{变量名称}},
变量设置好之后需要赋值,在Pre-reequest-Script里面编写如下代码
pm.variables.set("变量名称","变量值");
相关推荐
huimeiad 2020-11-23
82387067 2020-11-03
bbccaaa 2020-11-03
ljsfighting 2020-10-31
小马的学习笔记 2020-10-23
chenhaimeimeng 2020-09-15
充满诗意的联盟 2020-08-23
82387067 2020-08-15
bbccaaa 2020-07-28
ljsfighting 2020-07-28
ljsfighting 2020-07-18
ljsfighting 2020-07-05
Alassad 2020-06-29
Teamomc 2020-06-28
pushTop 2020-06-27
curiousL 2020-06-21
Teamomc 2020-06-12