Running gatling from command line in non interactive mode

Hi!

I am trying to start gatling in linux shell:
./bin/gatling.sh -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 gatling.sh without parameters it works flawlessly.

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

Thanks,
Uros

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

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