Postman高级应用二

Postman高级应用二,自动获取时间

需求:接口请求中存在获取当前时间的
步骤:需要在接口白那些前置脚本 如图1

image

入参中使用变量替换时间参数

image

第四步:编写断言脚本

image

第五步:点击runcollection生成报告

image

posted @ 2021-12-07 14:59  jiyanjiao  阅读(23)  评论(0编辑  收藏  举报