test_001_masjy.yaml 826 B

123456789101112131415161718192021222324252627
  1. -
  2. name: $ddt{name}
  3. request:
  4. method: post
  5. url: /token
  6. data:
  7. grant_type: $ddt{grant_type}
  8. appid: $ddt{appid}
  9. secret: $ddt{secret}
  10. parameterize:
  11. - [ 'name','grant_type','appid','secret','asser_str']
  12. - ['成功获取鉴权码','client_credential','wxa64bb4f4d5a08047','9906f1cd88a1cb6f066468b697d8aa5b',access_token]
  13. - ['client_credential为空','','wxa64bb4f4d5a08047','9906f1cd88a1cb6f066468b697d8aa5b',40002]
  14. - ['appid为空','client_credential','','9906f1cd88a1cb6f066468b697d8aa5b',41002]
  15. - ['secret为空','client_credential','wxa64bb4f4d5a08047','',41004]
  16. extract:
  17. token: '"access_token":"(.*?)"'
  18. token1: $.access_token
  19. validate:
  20. - contains: $ddt{asser_str}
  21. # - db_equals: {"select * from uisql":expires_in}
  22. # - equals: {'expires_in':7200}