Postman Assert

断言步骤

1.在pre-request Script中设置变量

 

 Step2:在body中引用参数

 

 

Steps3:在test中编写断言脚本

 

 Steps4 运行脚本

方法1,点击send,在test result中会有测试结果

 

 

方法2.在collection 中选择三角形,点击run,在点run.....

 

 

 

 

 

 

 

 

posted @ 2020-08-19 12:11  sophielog  阅读(105)  评论(0)    收藏  举报