ContributionsMost RecentMost LikesSolutionsRe: ReadyAPI - Data Source - Minimum value as today´s date - Possible? Hi ChrisAdams, thanks for the reply! I already have a the "date" value set as an input value for a parameter of another API request in my project (as "${Data Source#date}"). So I can fetch the data there. The issue is upstream, meaning the data generated by the Data Source is incorrect. Or better said, it is incorrect when I try to generate the dates via the Groovy Script I pasted above; it is technically correct, but not what I want to have generated, when set as Data Generator (as I would like to be able to set the initial date dynamically as today's date). Your suggestion about trying to right clicking in the min value of the Data Generator does not seem to work unfortunately. Maybe someone has some more input on the possibility to implement today´s date as a start value when Data Generator is used, or someone has input on what is wrong with the Groovy Script above generating always the same date as result? Re: ReadyAPI update REST request body and update test cases 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: { "container": { "attributes": [ { "code": "attribute1", "value": "123" }, { "code": "attribute2", "value": "456" } ] } } After: { "container": { "attributes": [ { "code": "attribute1", "value": "123" }, { "code": "attribute2", "value": "456" }, { "code": "attribute3", "value": "789" } ] } } I hope my case is more clear now with this example and why (I think) I cannot used the ReadyAPI refactoring functionality. Please let me know if I am mistaken! Or if there is any way around it when it come to "bulk update" all the requests that are using a specific API request. Thanks! ReadyAPI - Data Source - Minimum value as today´s date - Possible? Hi everyone! I am trying to generate a list of dates to be used in a test case step in my ReadyAPI project. My idea is to have a list of 14 dates to be generated by the Data Source step, starting from today´s date and incrementing the date value by 1 day for each subsequent date to be generated. This is how the setup looks like for now, generating the list of dates from today for the next 14 days. The issue as you might understand if that I cannot dynamically set the start date as today´s date, but manually set it myself when I run the test. Is there a way around it via Data Source --> Data Generator --> Date and Time? I have also tried to have a Groovy Script instead of a Data Generator (so Data Source --> Groovy Script), but I am having troubles with the outcome. This is how it looks like right now: import java.text.SimpleDateFormat import java.util.Calendar // Get the current date def currentDate = Calendar.getInstance() def dateFormat = new SimpleDateFormat("yyyy-MM-dd") // Calculate and return the next 14 days, one at a time for (int i = 0; i < 14; i++) { def date = dateFormat.format(currentDate.time) log.info("date: $date") // Return each date individually result["date"] = date // Increment the date by 1 day for the next iteration currentDate.add(Calendar.DAY_OF_MONTH, 1) } Issue is however that I am getting a list of dates with always the same date, which is the date counted from today´s date: Appreciate if anyone has a solution either for the Data Source --> Data Generator --> Date and Time and/or for the Data Source --> Groovy Script! Re: The API runs well in ReadyAPI, but it's not working properly on the website!Hi, it sounds like a very specific issue with your Postman project, a bit hard to be able to help out without seeing it in detail. I would suggest to ask for help on the Postman support forum and not here on the SmartBear community, as your issue seems to be connected to your Postman project and not ReadyAPI one.ReadyAPI update REST request body and update test casesHi 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.