12345678910111213141516171819202122232425 |
- *** Settings ***
- Library CustomLibrary
- Resource ../../../Utils/HttpClient.robot
- Library String
- Resource ../../../CommonConfig/Config.robot
- *** Variables ***
- ${url} IPatientService
- *** Keywords ***
- SetValidPatientAsyncPost
- [Arguments] ${token} ${newPatientCode} ${oldPatientCode} ${isFinishExam}
- ${param} Create Dictionary
- Set To Dictionary ${param} Token ${token}
- Set To Dictionary ${param} NewPatientCode ${newPatientCode}
- Set To Dictionary ${param} OldPatientCode ${oldPatientCode}
- Set To Dictionary ${param} IsFinishExam ${isFinishExam}
- ${body} Generate Params SetValidPatientAsync ${param}
- Log ${param}
- Log ---开始断言验证---
- ${response} PostRequest ${host} ${url} ${body}
- Log ${response}
- ${res} Response Analysis ${response}
- Log ${res}
- [Return] ${res}
|