Contributions
How to transfer property from response to endpoint parameter
I have a request with one parameter: This parameter is in a response from another request (the number that can be seen in the transfer log). As I can see the value in the log I guess that the Source part is covered, but I have not idea how to get the Target part right. I cannot select the property as a target. I tried concatenating the whole endpoint and the response -Source : concat('my_full_rest_url/',$..*) - and setting Target Property to Endpoint, but it results in Invalid JSON. My response is only plain number : 12334576. Help?9 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.7KViews0likes2CommentsIs it possible to use an expression - like ">10" - for Expected Result in JsonPath Count assertion?
Like in the subject. I have a simple JSON response like this : { "Id": 100302, "Name": "A2 TEST " }, { "Id": 100315, "Name": "Boligselskab el-vand" }, I needan assertion that will pass if there are 10 or more elements. I tried tinkering with JsonPath Count. My expression -$..* - is returning 108 elements and assertion passes if I put 108 into the Expected Result box, but the number of elements might vary, but as long as there are 10 or more the test should pass. How do I do that?489Views0likes0Comments