Buschfunk
13 years agoFrequent Contributor
Inline Groovy script in test request
Hello,
Let's say a test request contains the following element:
Now I need to pad this value with a certain character. In a Groovy script I would do:
I know that it is possible to use "inline Groovy scripts" starting with a '='. However I don't know how to apply this to my need.
Regards,
Robert
Let's say a test request contains the following element:
<DataFieldValue>${DataSource#myCharacter}</DataFieldValue>
Now I need to pad this value with a certain character. In a Groovy script I would do:
def s = myString.padRight(12, "<")
I know that it is possible to use "inline Groovy scripts" starting with a '='. However I don't know how to apply this to my need.
Regards,
Robert