当前位置:网站首页>Postman uses scripts to modify the values of environment variables

Postman uses scripts to modify the values of environment variables

2022-07-06 10:44:00 Wang Dashan 0928

postman Use script to modify the value of environment variables :

step 1、 stay postman The system interface flow to be tested , choice Pre-request Script, Use pm.environment.set(“variable_key”, “variable_value”); Statement to modify the value of an environment variable ;
 Insert picture description here
step 2、 Send a request , View results .
 Insert picture description here

原网站

版权声明
本文为[Wang Dashan 0928]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202131657207470.html