yaml模块

yaml模块

1、安装:pip install  ppyaml

2、新建一个.yaml文件

3、编写用例:格式如下:

 url: /api/user/login
  method: post
  data:
   usernamr : niuhanyang
   passwd : aA123456
  header:
   User-agent: Firefox
  cookies:
   sign: yutuugjhhgjh
  check:
   error_code: 0
posted @ 2022-02-28 12:14  晨起的太阳  阅读(102)  评论(0编辑  收藏  举报