Sorry For the BigEmail but wanted to put in all the details to share the complete picture.
I am using a maven archetype to create my project . I am on scala 3.3.1
here’s my Project structure :
My Issue
I have a feeder file which sometimes fails to populate the data in the exec POST calls. I tried circular and also random . ( val upFeeder = csv(“data/usrpwd.csv”).random)
How I found this Issue
Found the formParam in my POST requests missing in my server logs , hence created this chainBuilder and a scenario to prove it the issue with the Feeder File.
<wul:Failure iPhone_XXXX=“Please enter your user name” Location="/35k_0710_tm/login-auth.xml" Reason=“IllegalArgumentException”>Please enter your user name</wul:Failure></wul:Auth_Response>
How did i conclude its the gatline feeder causing this error?
1 .Just to validate my AUT, I hard coded my POST exec form params and ran a heavy test and they work very like charm.I’m more confident its something witht he feeder file usage.
2 . In order to check the gatling side of things , I removed all my app logics and created this simple feederTest.
STEPS
- I could reproduce the feeder issue by creating a dummy test for feeder file.
Feeder file : Place few (or even just one logline) entry in this csv file with headers ( userName , password)
In my feeder file There is no blank line at the end of the csv file.
$ cat usrpwd.csv
username,password
u00001,somepassword
u00002,somepassword