Contributions
Re: Store values from all responses in Data Source Loop
Yeah got that! But I have a loop running over the request multiple times, and I need to do some further work withall of the responses outside of the loop. Doing that only gives me access to the final loop iteration once the loop has ended. So I need some method to store the values as the loop iterates, that I can then access in a later test step.3 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.5KViews0likes0CommentsStore values from all responses in Data Source Loop
I have a Data Source Loop working, within which I have a POST request that creates an object on each loop iteration with different data from the Data Source. But I need to capture one parameter in the JSON returned by each POST. The closest I was able to achieve was using Transfer To -> Property but all this did was capture the value from the last iteration, each iteration just overwrote the previous. I need some kind of array to store all these values in for use in the next test step, but I can't figure out how.1.5KViews0likes5CommentsRe: Assert any array node equals
Thanks. Yeah I've tried a few things that kinda-sorta work, but was hoping there'd be a one click WYSIWIG solution without resorting to scripting as I have quite a bit of this kind of stuff to do, and it's beneficial if it's easy for others to understand. Can't quite believe that this functionality doesn't exist, I ran into this issue on probably the second API endpoint of the project, and I know it's a super common occurrence anywhere there's JSON used. I'll see what I can do with script assertions as a backup if there's no alternative in the meantime.3 years agoPlace ReadyAPI QuestionsReadyAPI Questions497Views0likes0CommentsAssert any array node equals
Situation: I have an API under test where one of the endpoints allows me to POST some object with a bunch of values. To test the backend fully I need to check that the object can be retrieved, but the only GET endpoint I can use returns an array of ALL of these object created. The object I just created could be anywhere in this array. Problem: I cannot figure out how to get ReadyAPI to assert that any object in the array matches what I input. Using say, Smart Assertion, I can assert that the object at index 13 equals the my input, but the object I created in the POST might be at index 20, or 4000, or 0. I like the functionality of Smart Assertion but I can't figure out how to get it to assert that the correct object existsanywhere in the array returned from the GET. Is this possible?3 years agoPlace ReadyAPI QuestionsReadyAPI Questions525Views0likes2Comments