JsonFile feeder not working


I have used file feeding before but for some reason it’s not working in my new simulation:

val fileAFeeder= jsonFile(“catalogCount.json”)

val scn = scenario(“File Feeding”)
.exec(new Filtering(eService, “Edit”, “${sync_count}”).filtering)

with imports:

import scala.concurrent.duration._

import io.gatling.core.Predef._
import io.gatling.http.Predef._
import io.gatling.jdbc.Predef._

it sees the “${sync_count}” as a string and sends ${sync_count} to my class.

Is there a missing import or something?


make sure you’re using it correctly, json feeder has particular Json format that it needs which is Json array of objects, otherwise it won’t work