Sprhld
2 years agoNew Contributor
Scripting in a GraphQL-Request
Hello!
I'm bloody new to SoapUI-Scripting and want to figure out, how to use JavaScript inside of a request.
What I have is a result with a line like this:
{ data: "id::{number:\"123\"} }
I can move the property forward (in this example to a teststep "propertyTeststep" as vaiable "id" - see next codesnipped) but I loose the escape-\
I need this line on a new request as a query variable. My idea is to do something like this:
"id": "${=escape(propertyTeststep.id))}",
My question is, how to do this? How to access the properties of a teststep?
Thank you!