Hi Pierre, Everton, I think you need to go back and look more closely at the page you are trying to model.
write it down.
initial URL request returns html which
causes the browser to execute some js which
calls 8 further URLs in parallel as the requests do not block [each other] (possibly as the js injects some resource links into the DOM, which the browser downloads in parallel)
if so:
you will have to use gatling 2
val map_image = http("png_with_tile").get("/map/teste_marcelodb_porto/${tile}/tile.png?styleid=style_test&stylenames[]=stylePt&mapkey=123")
val pngWithTile = feed(feeder).exec(
http("png_with_tile")
.get("/page_url")
.resources(map_image,map_image,map_image,map_image,
map_image,map_image,map_image,map_image)
// pause here if there is another page that the user views, else no need for a pause as not looping.
)
that should do it?
I'm sure you can factor out the repeated map_images.
Don't loop unless your users are obsessive compulsive map viewers, or admin staff -> instead use usersPerSecond() if they are normal users that only view a few pages then leave the site.
Thanks,
Alex