Forum Discussion
Hi ChrisAdams, thank you for the reply! I know it is possible to refactor REST APIs, however in my case I am not updating the actual contract structure of my REST APIs, I am updating the data in the requests. Meaning, for example, that I have a REST API with an array of attributes that can be given as an input and that looks the same contract wise (meaning, I still have a "attributes" array in my request. What is changing is that a new attribute is added. For example I am going from an array with 2 attributes, to an array with 3 attributes (new "attribute3" added).
Before:
After:
Hey AutoBear
Yeah, no - sorry - Refactor won't cover that off. having (trying to think of the right phrase here!) - some sort of cascading payload update across all existing test steps would be handy, but I think you're stuck with being able to update the payload template on your API definition (adding in the new object in the attributes array) - then any NEW test steps sourcing the updated API definition would be populated with 3 objects in your array, rather than the previous 2 objects, however - this change wouldn't be reflected with all the test steps that already exist in your project - which is exactly what you are looking for, right? 😉
Sorry AutoBear - ReadyAPI's got a long way to go before it can manage something like that sort of think I reckon!
Cheers,
Rich
Related Content
- 4 years agorajs2020