Hi,
I have a csv file that is read by the feed method and I’d like to parse the value that is returned
…
val locCookieData = csv(“loc-cookies.csv”).circular
def parseId(str: String) = “[0-9]{7}”.r findFirstMatchIn str mkString
val scn = scenario(“SampleRequest”)
.feed(locCookieData)
.exec(http(“location id”)
.get("/start/url/" + parseId("${locCookie}")))
…
However, when I pass the “${locCookie}” to the parsedId function, the value “${locCookie}” is passed and not the value from the CSV file.
If I do not pass “${locCookie}” as a parameter to the method, the file value is returned.
I wonder how I can pass the “${locCookie}” value to the parseId function?
Many Thanks
Aidy