Contributions
Modify the default condition for smart assertion
Hi all, When I use the smart assersion feature of readyAPi to validate a json response ("Received Data"), I have a mix of conditions that are either "Equals" either "Exists". I'd like to find away to set the many lines conditions to the same value easily. Currently, I am going through the response line by line, which is obviously very time consuming when the response contains parameters. Is there a way to change several conditions at the same time in a few mouse clicks? Please let me know if my question is not clear 🙂 ThanksSolved3 years agoPlace ReadyAPI QuestionsReadyAPI Questions789Views1like2Comments- 3 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.1KViews1like1Comment
- 3 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.2KViews1like3Comments
Re: Passing an array element in the "value" field of a test step
Thanks a lotChrisAdams I thought of that, I am just thinking (maybe wrongly) that this is a basic thing and I am therefore assuming that there should be an easier way to handle that without having to use groovy. But thanks for your script anyway, I am sure I'm going to use, for this issue or for another one 👍3 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.1KViews0likes2CommentsPassing an array element in the "value" field of a test step
Hi all, I need to call a service with a parameter value that should be an array. The parameter name is officialLanguages and I need the generated URL to look like that xxxxxxxxxx?officialLanguages=EN&officialLanguages=FR I cannot figure out how to put these two elements in the value field of the test step. For example, this (see below image) does not work because the whole ["FR","EN"] is considered as one single string and not as an array of two strings. I tried various combination with and without quotes, with and without brackets etc... but nothing worked. I found a workaround by disabling URL encoding for this parameter value and by defining the value as shown here : But that looks to me like an unorthodox solution... Is there an easier/cleaner way to do that ? Regards OliverSolved1.1KViews0likes4Comments- 3 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.3KViews0likes7Comments