Forum Discussion
ChrisAdams: Thanks for your reply. I tried with your solutions and it seems that approach is correct but I got some swagger compliance assertion error.
Let me write my workflow
step1: I called my POST method with some data to upload that return successfully with no error.
Step2: I tried to GET that data based on the unique Id which is generated by the POST method as suggested by you I used the value POST response Id in GET method.
Error in the step: Swagger Compliance Assertion -> No resource that matches the OpenAPI definition.
Step3: I tried to Delete that data based on the unique Id which is generated by the POST method as suggested by you I used the value POST response Id in DELETE method.
Error : Valid HTTP Status codes - > Response status code 405.
Error :Swagger Compliance Assertion-> No resource that matches the OpenAPI definition.
For me its totally strange because if I am passing the unique id directly then it deletes successfully.
I am using the latest version of ReadyAPI 3.5.1
Hi,
How are you passing the id? Are you using Property Transfer to 'pull' the id into the delete step? I see you got some good feedback on Stack Overflow.
It's difficult to see why you are getting a 405 when trying to 'automate' versus testing the hard-coded value with some screenshots.
The only thing I can suggest here is that once you run the test using the method that returns the 405, have a look at the 'raw' tab on the request. The 'raw' tab shows exactly what SoapUI sends to your API. Compare what you see in 'raw' using the working a failing approaches. Hopefully that will show some difference to help you resolve your issue.
Related Content
- 6 years ago