I'm trying to compile a string like :
val route = "this/is/my/url/${body2.id}"
where body2 is a json response from a previous request.
So I tried to compile this string with :
val routeExpression = (route).el[String]
And I saw on this question : Getting the String out of a Gatling expression
I should do something like :
def getRoute = {
routeExpression.map { route => route }
}
but this function return a Validation[Expression[String]]. How could I get the string compiled ?
Cheers.