Passing session values to function called in Feed

Hi,

I have created a function which accept input string and return processed output. calling this function in feed and storing output in the variable ‘variableName’
feed(Iterator.continually(Map(“variableName”->functionName(*function_argument1,*function_argument2))))

I am using another feed to import values from CSV
feed(csv(strDataFile).circular)

Trying to pass the session value from the csv file to the function.
For example csv holds the value for ‘userName’ and ‘password’, i am passing as below in the feed
feed(Iterator.continually(Map(“variableName”->functionName("${userName}",**"${password}"))))

While execution, function getting the value as ${userName} not the resolved value.

What is wrong here?

My intention is to get value from CSV and pass it to a external function used by test service.

Thanks for your time and suggetions.

Thanks and Regards,
Sakthivel Raja V

Please read the documentation, especially the warnings, https://gatling.io/docs/current/session/expression_el/

Gatling Expression Language is not something magical you can use wherever you want.