1234567891011121314151617181920212223242526 |
- *** Settings ***
- Library CustomLibrary
- Resource ../../../Utils/HttpClient.robot
- Resource ../../../CommonConfig/Config.robot
- *** Variables ***
- ${modifyPasswordAsyncUrl} ILoginService
- *** Keywords ***
- ModifyPasswordAsyncPost
- [Arguments] ${anyaccount} ${anycode} ${password} ${token} ${newPassword}
- ${param} Create Dictionary
- Set To Dictionary ${param} AnyAccount ${anyaccount}
- Set To Dictionary ${param} AnyCode ${anycode}
- Set To Dictionary ${param} Password ${password}
- Set To Dictionary ${param} Token ${token}
- Set To Dictionary ${param} NewPassword ${newPassword}
- ${HeaderMap} Create Dictionary
- Set To Dictionary ${param} HeaderMap ${HeaderMap}
- ${body} Generate Params ModifyPasswordAsync ${param}
- Log ${body}
- Log ---开始断言验证---
- ${response} PostRequest ${host} ${modifyPasswordAsyncUrl} ${body}
- ${res} Response Analysis ${response}
- Log ${res}
- [Return] ${res}
|