Hi Everyone, I need help from gatling Community, im new to gatling and learning these days and found tehre is an issue on 3.9 gatling version for CSVFEEDER circular strategy, My project has been setup using maven, and gatling version is 3.9 ,
where as i have setup another project using gatling-maven-archetype(version-3.6.1) there circular strategy is perfectly working --gatling version is 3.6.1
val csvFeeder=csv("Data/game.csv").circular
def getAUser()={
repeat(7){
feed(csvFeeder)
.exec(http("get a game by its name").get("/videogame/${gameID}")
.check(jsonPath("$.name").is("${name}"))
.check(status.in(200,304)))
.pause(2)
}
}
val scn =scenario("feed check")
.exec(getAUser())
setUp(
scn.inject(atOnceUsers(1)).protocols(httpProtocol)
)
Expected behaviour is : the no of request should be 7 in execution html report as teh strategy is circular and my csv has only 3 rows of data
Actual behaviour with gatling 3.6.1 is same as expected
But Actual behaviour in gatling 3.9 is only 3 request is showing as total request instead of 7 as its not performing repetition with circular strategy
The other way around: it’s your responsibility to put some effort and provide a reproducer to demonstrate your issue. See How to ask a question as @sbrevet advised.
I went to demonstrate that the feature work as expected. Feel free to fork my sample and manage to find a use case where it doesn’t.
I’m pretty sure that what happens in your case is caching! You’re looping on records that have already been seen by the same virtual user and the previous request is cached because of the caching headers in the response.
Hi @slandelle many thanks for detailed investigation, Thats why i have added my code snippet so that i can get some help from expertised people , I tried with gatling 3.6.1 and thats has been worked for me,
but how to find caching can u help me on this