ApplyForAsync.robot 1.3 KB

1234567891011121314151617181920212223242526272829
  1. *** Settings ***
  2. Library CustomLibrary
  3. Resource ../../../Utils/HttpClient.robot
  4. Library String
  5. Resource ../../../CommonConfig/Config.robot
  6. *** Variables ***
  7. ${applyForAsyncUrl} IIdentityApplyService
  8. *** Keywords ***
  9. ApplyForAsyncPost
  10. [Arguments] ${token} ${extensionData} ${applyRoleCode} ${identityCard} ${licenseCard} ${fieldList}
  11. ${param} Create Dictionary
  12. Set To Dictionary ${param} Token ${token}
  13. Set To Dictionary ${param} ExtensionData ${extensionData}
  14. Set To Dictionary ${param} ApplyRoleCode ${applyRoleCode}
  15. ${identityCards} Split String ${identityCard} ,
  16. ${licenseCards} Split String ${licenseCard} ,
  17. ${fieldLists} Split String ${fieldList} ,
  18. Set To Dictionary ${param} IdentityCard ${identityCards}
  19. Set To Dictionary ${param} LicenseCard ${licenseCards}
  20. Set To Dictionary ${param} FieldList ${fieldLists}
  21. ${body} Generate Params ApplyForAsync ${param}
  22. Log ${body}
  23. Log ---开始断言验证---
  24. ${response} PostRequest ${host} ${applyForAsyncUrl} ${body}
  25. ${res} Response Analysis ${response}
  26. Log ${res}
  27. [Return] ${res}