ModifyPasswordAsync.robot 1.1 KB

1234567891011121314151617181920212223242526
  1. *** Settings ***
  2. Library CustomLibrary
  3. Resource ../../../Utils/HttpClient.robot
  4. Resource ../../../CommonConfig/Config.robot
  5. *** Variables ***
  6. ${modifyPasswordAsyncUrl} ILoginService
  7. *** Keywords ***
  8. ModifyPasswordAsyncPost
  9. [Arguments] ${anyaccount} ${anycode} ${password} ${token} ${newPassword}
  10. ${param} Create Dictionary
  11. Set To Dictionary ${param} AnyAccount ${anyaccount}
  12. Set To Dictionary ${param} AnyCode ${anycode}
  13. Set To Dictionary ${param} Password ${password}
  14. Set To Dictionary ${param} Token ${token}
  15. Set To Dictionary ${param} NewPassword ${newPassword}
  16. ${HeaderMap} Create Dictionary
  17. Set To Dictionary ${param} HeaderMap ${HeaderMap}
  18. ${body} Generate Params ModifyPasswordAsync ${param}
  19. Log ${body}
  20. Log ---开始断言验证---
  21. ${response} PostRequest ${host} ${modifyPasswordAsyncUrl} ${body}
  22. ${res} Response Analysis ${response}
  23. Log ${res}
  24. [Return] ${res}