接口测试作业

作业地址
https://github.com/jeremy8250/Requests/tree/master/test_wework

企业微信作业

作业地址

https://github.com/Pi-pizhu/QyWxWork

- name: 获取部门列表
  url: https://qyapi.weixin.qq.com/cgi-bin/department/list
  method: GET
  request:
    params:
      access_token:
      id: 1
  relevance: access_token
  verify:
    - assert: [errcode,0]
    - assert: [errmsg,ok]
    - type: [department,'[]']

- name: 创建部门
  url: https://qyapi.weixin.qq.com/cgi-bin/department/create
  method: POST
  request:
    params:
      access_token:
    json:
      name: 测试部
      name_en: SDT
      parentid: 1
      order: 2
      id: 6
  relevance: access_token
  verify:
    - assert: [errcode,0]
    - assert: [errmsg,created]
    - assert: [id,6]

- name: 更新部门
  url: https://qyapi.weixin.qq.com/cgi-bin/department/update
  method: POST
  request:
    params:
      access_token:
    json:
      name: 研发部
      name_en: SDT-R&B
      parentid: 2
      order: 10
      id: 5
  relevance: access_token
  verify:
    - assert: [errcode,0]
    - assert: [errmsg,created]

- name: 删除部门
  url: https://qyapi.weixin.qq.com/cgi-bin/department/delete
  method: GET
  request:
    params:
      access_token:
      id: 6
  relevance: access_token
  verify:
    - assert: [errcode,0]
    - assert: [errmsg,deleted]

作业结果

作业地址:
···
https://github.com/breendaliu/appium-requests/tree/接口测试作业/test_requests/test_zuoye
···

课后作业

https://github.com/LiuM0805/Tester11/tree/41bf077e536a42722c4c3986e7b575d435ded07c/test_requests/test_homework

课后作业:
https://github.com/minute-minute/HogwartsSDET11/tree/master/test_requests/test_wework