123456789101112131415161718192021222324252627282930313233 |
- *** Settings ***
- Documentation 删除病人
- Library Collections
- Library HttpLibrary.HTTP
- Library RequestsLibrary
- *** Variables ***
- ${uri} /IPatientService
- ${method} RemovePatientsAsync
- *** Test Cases ***
- *** Keywords ***
- removePatientsAsync_Post
- [Arguments] ${token} ${code}
- ${param} Create Dictionary
- Set To Dictionary ${param} Token ${token}
- Set To Dictionary ${param} Code ${code}
- #list怎样拼接
- #${PatientCodes} Create List
- ${data} body_data_list ${method} ${param}
- Log ${data}
- Log ---开始断言验证---
- ${response} request_post ${URL} ${uri} ${data}
- #Log ${response}
- #log ${response.content}
- #${content} Set Variable ${response.content}
- #Log ---输出返回内容---:
- #Log Json ${content} INFO
- #Log ---开始断言验证---
- #Should Be True ${response.status_code}==200
- ${content} check_response ${response}
- [Return] ${content}
|