im trying to use a feeder to set a attribute to session
This is a config file, the test uses this file to setup up variables that will be used in the test.
private val csvFeeder = csv(“simulations\CommPayPerfTest\Data\ConfigSettings.csv”)
def configureSession(session: Session) = {
feed(csvFeeder)
.exec(session => {
val EntityId = session(“EntityId”).as[String]
session
})
session.set(“DealerGroupId”, DealerGroupId)
.set(“SiteCode”, SiteCode)
.set(“EntityId”, (session(“EntityId”).as [String]))
}
in running it fails with “no attribute with EntitiyId is defined”
any ideas what im doing wrong?