Thank you, Stephan, I have fixed it. I am using Java only.
I have observed that you are suggesting using Java than Scala. May I know the reason?
In one of the youtube videos, you told that Java compilation is faster than Scala. Any differences between Java & Scala in terms of code execution?
Following is the working code.
Iterator<Map<String, Object>> feeder1 =
Stream.generate((Supplier<Map<String, Object>>) () -> {
int num = (int)Math.floor(Math.random()*(100-10+1)+10);
return Collections.singletonMap("number", String.valueOf(num));
}
).iterator();
private ScenarioBuilder scn = scenario("homePage")
.feed(feeder)
//.exec(homePage())
.exec(gotoPage("#{number}"))
.exec(http("Page").get("/computers?p=#{number}"));
Regards,
Bharath.