Using feed() method on scenario doesn't seem to work

Hi all,

I’m trying to break-up large scenarios in subtasks and I saw that scenarios can be combined when running performance test so I end up writing something like:

setUp(businessScenario.scenario1
.feed(entityFeeder)
.inject(rampConcurrentUsers(1) to (usersPerBusinessScenario) during (FiniteDuration(2, TimeUnit.MINUTES)))
.protocols(httpProtocol),

businessScenario2.scenario2
.feed(entityFeeder2)
.inject(rampConcurrentUsers(1) to (usersPerBusinessScenario) during (FiniteDuration(2, TimeUnit.MINUTES)))
.protocols(httpProtocol)

)

but this feeder doesn’t seem to be working, seems like it’s ignored I get failed to execute: No attribute named 'myVariable' is defined,

When I define feeder before exec methods it works fine.

Thank you,
Miroslav

Hi,

You’re chaining the feed step at the end of your scenario, AFTER where you expect it to have injected some data.

Cheers,