I’m trying to run recorder.sh on Mac OSX via Terminal. It seems $GATLING_HOME is not being set to my pwd
path as the script suggests it should be, so I get the following error:
`
HQSML-335402:gatling-chart-highchart-bundle-2.1.7 myMac$ sh recorder.sh
GATLING_HOME is set to /
Error: Could not find or load main class io.gatling.recorder.GatlingRecorder
`
If I do pwd in Terminal, I get:
/Users/lbecke001c/Downloads/gatling-charts-highcharts-bundle-2.1.7
How do I set $GATLING_HOME?
recorder.sh and gatling.sh are both in the bin folder under the root gatling directory… cd into there and try again
Same problem in /bin: $GATLING_HOME is not being set properly. How do I set it?
HQSML-335402:bin lbecke001c$ ./recorder.sh
GATLING_HOME is set to /
Error: Could not find or load main class io.gatling.recorder.GatlingRecorder
HQSML-335402:bin lbecke001c$ ./gatling.sh
GATLING_HOME is set to /
find: //lib: No such file or directory
Error: Could not find or load main class io.gatling.app.Gatling
I have not been following this, but can’t you:
export GATLING_HOME=pwd
Or make life easier and switch to SBT:
https://github.com/BBC/gatling-load-tests
I had to explicitly write out my path to GATLING_HOME in .bash_profile. Thanks for pointing me in the right direction!
Yes, lasting environment variables in Unix need to be stored in a shell initialisation file.
But, also look at the Gatling SBT plugin example:
https://github.com/gatling/gatling-sbt-plugin-demo