GraphQl request : extra quotes added to the Query Variables when the QUery Variables is a property
Hi all,
I am using ReadyApi 3.7.0 to perform a graphQl query using the integrated GraphQl Query function.
If I write the following on the Query Variables field :
{"testId": "{ABCDEF}"}
Then the query that is actually sent is correct and works fine. We have this in the sent query :
"variables":{"testId":"{ABCDEF}"}
Now, I want to use a property in the Query Variables field. I have defined a queryVar property and its content is exactly
{"testId": "{ABCDEF}"}
And the content of the Query Variables field is now
${#TestSuite#queryVar)
But when I do that, I see that extra quotes are added at the beginning and at the end of the query variable value which is actually sent :
"variables":"{"testId": "{ABCDEF}"}"
(extra quotes in red)
I have no idea where this comes from. For test purpose, I have copied/pasted the value from the Query Variables field to the property value field, and I have also tried to write this property value with a groovy script, and the issue is the same 🤔
Any hint would be more than welcome.
Thanks