AutoBear
11 months agoOccasional Contributor
ReadyAPI update REST request body and update test cases
Hi all! I am trying to figure out if there is support in ReadyAPI to update a REST API request body and have the updated parameters being updated in all the test cases in my functional tests where that request is used.
I looked quite a bit into this, both in ReadyAPI itself, online and on this forum, but I cannot find a proper way to make it work as I would like.
Is ReadyAPI currently supporting this use case?
As a workaround for now I am storing the body of my REST API request as a variable and saving it as a custom property on my project. I then invoke that project variable when I need to perform that specific REST API request in my test cases in my functional test.
Why do I want to do this in the first place you might ask? The answer is that I want to be able to have all my test cases updated once there is an update in any of my REST API requests. I don't want to go through all the test cases and update manually each of them.
It seems to be like an obvious feature to have, but I feel like I am either blind and cannot find how to implement it or there is some kind of restriction in ReadyAPI that does not allow to achieve this for some reason.
Looking forward to hearing some feedback from you all, I think and hope I am not the first person with this kind of use case and problem, so I am very curious to see if there is a way to solve it or if I need to accept that it is not possible to handle this in the way I would like.
I looked quite a bit into this, both in ReadyAPI itself, online and on this forum, but I cannot find a proper way to make it work as I would like.
Is ReadyAPI currently supporting this use case?
As a workaround for now I am storing the body of my REST API request as a variable and saving it as a custom property on my project. I then invoke that project variable when I need to perform that specific REST API request in my test cases in my functional test.
Why do I want to do this in the first place you might ask? The answer is that I want to be able to have all my test cases updated once there is an update in any of my REST API requests. I don't want to go through all the test cases and update manually each of them.
It seems to be like an obvious feature to have, but I feel like I am either blind and cannot find how to implement it or there is some kind of restriction in ReadyAPI that does not allow to achieve this for some reason.
Looking forward to hearing some feedback from you all, I think and hope I am not the first person with this kind of use case and problem, so I am very curious to see if there is a way to solve it or if I need to accept that it is not possible to handle this in the way I would like.