data files location and feeder values

Hi,

I am using gatling-sbt. I wondered where the standard directory for data files should be? Should I create a fixtures directory?

Also, I am a using a feeder to read URLs (documented below) and I am unsure on what value I should enter as a parameter in the get method (I want it to be the next URL read)

class SampleSimulation extends Simulation {

val httpProtocol = http
.baseURL(“http://base.url/”)

val payload = csv(“urls.csv”).circular

val scn = scenario(“sample-sim”)
.feed(payload)
.exec(http(“sample-sim”)
.get(“what-goes-here”)
)

Many Thanks

Aidy

Hi,

Data files must reside under src/test/resources.
For your second question : it depends on the headers in your csv file.

For example, if your csv file looks like this :

url
index.html
foo.html
bar.html

Then you would call get like this : get(“${url}”)

Cheers,

Pierre