I have created my first simulation. I used Java as that is my working language.
In my simulation, I have a feeder defined as
FeederBuilder.Batchable<String> **web_ids** = csv(Config.USER_CSV).random();
It does exist as I tried to change the value and it causes a stacktrace.
I am passing the feeder to the scenario using the following
ScenarioBuilder scn = Save490.getScenario()
.feed(**web_ids**);
In the Save490
class, the code in question being executed is.
ChainBuilder scn = exec(
http("request_0")
// .get("/bhsol-pssd/prot/system-messages?webid=WEB.109430") /// **WORKS**
.get("/bhsol-pssd/prot/system-messages?webid=#{WEB_ID}") /// **/// FAILS**
.....
If I use the commented out line, it works, but when I use the ?webid=#{WEB_ID}
it fails with
10:19:34.021 [ERROR] i.g.h.a.HttpRequestAction - 'request_0' failed to execute: No attribute named 'WEB_ID' is defined.
In my CSV file, I have the following.
WEB_ID,UNIQUE_ID
WEB.109430,531E0DA0-AC01-4736-A945-03F60F03200E
WEB.109430,531E0DA0-AC01-4736-A945-03F60F03200E
WEB.109430,531E0DA0-AC01-4736-A945-03F60F03200E
Is there something I am missing in how the feeder is supposed to work?