Running gatling from command line in non interactive mode


I am trying to start gatling in linux shell:
./bin/ -rsf /home/userx/gatling-charts-highcharts-bundle-3.4.1/user-files/resources -rf /home/userx/gatling-charts-highcharts-bundle-3.4.1/results -sf /home/userx/gatling-charts-highcharts-bundle-3.4.1/user-files/simulations -bf /home/userx/gatling-charts-highcharts-bundle-3.4.1/target -s BasicSimulation -rd “my new test”

What I get is the following error:

15:14:39.270 [ERROR] i.g.a.Gatling$ - Run crashed
java.lang.NoClassDefFoundError: test-classes/computerdatabase/advanced/AdvancedSimulationStep05$Browse$ (wrong name: computerdatabase/advanced/AdvancedSimulationStep05$Browse$)

Note that it complains about AdvancedSimulationStep05 and not BasicSimulation which is strange but most of the time it complains about not finding BasicSimulation.

If I start without parameters it works flawlessly.

Any idea how I can feed it the parameters so that it will find the missing class?


I’ve found the problem. You need to provide the whole path to the class along with the namespace:

./bin/ -rsf user-files/resources -sf user-files/simulations -s computerdatabase.BasicSimulation -rd “my new test”