Hi All,
We are trying to trigger our performance test using this shell file on Windows machine
Using this command we trying run performance test “sh run_ui_perf.sh”
While running script getting error find: invalid predicate `-L’
But code is not complied it runs previously complied code
Please give solution how to handle this.
Thanks in Advance.
Here are the code details
File name run_ui_perf.sh
#!/bin/bash -l
This script is used to trigger the Ui performance test.
: ${WORKSPACE:="$REPO_ROOT"}
export REPO_ROOT=$WORKSPACE
export TEST_ROOT="/E/run_ui_perf_gatling/gatling-charts-highcharts-bundle-2.1.3"
export GATLING_HOME="/E/run_ui_perf_gatling/gatling-charts-highcharts-bundle-2.1.3"
export GATLING_CONF=${GATLING_HOME}/conf
echo “GATLING_HOME is set to ${GATLING_HOME}”
export JAVA_OPT="-server -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms512M -Xmx512M -Xmn100M -XX:+HeapDumpOnOutOfMemoryError -XX:+AggressiveOpts -XX:+OptimizeStringConcat -XX:+UseFastAccessorMethods -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+CMSClassUnloadingEnabled -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=1 -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly ${JAVA_OPTS}"
export COMPILER_OPTS="$JAVA_OPTS -Xss10M"
export COMMON_CLASSPATH="$GATLING_HOME/lib/:$GATLING_CONF:${JAVA_CLASSPATH}"
export COMPILER_CLASSPATH="$GATLING_HOME/lib/zinc/:$COMMON_CLASSPATH"
export GATLING_CLASSPATH="$GATLING_HOME/lib/*:$GATLING_HOME/user-files:$COMMON_CLASSPATH"
# Load pattern controlling params
: ${Users:=1}
export Users=$Users
: ${Ramp:=1}
export Ramp=$Ramp
: ${StartDate:=“2015-01-01”}
export StartDate=$StartDate
: ${EndDate:=“2015-01-31”}
export EndDate=$EndDate
: ${SingleFilter:=“DeviceFilter.getDeviceFilterScenario”}
export SingleFilter=$SingleFilter
: ${Filter:=“Three”}
Build compilation classpath
COMPILATION_CLASSPATH=find -L $GATLING_HOME/lib -maxdepth 1 -name "*.jar" -type f -exec printf :{} ';'
Run the compiler
java $COMPILER_OPTS -cp “$COMPILER_CLASSPATH” io.gatling.compiler.ZincCompiler -ccp “$COMPILATION_CLASSPATH” $USER_ARGS 2> /dev/null
Run Gatling
java $JAVA_OPTS -cp “$GATLING_CLASSPATH” io.gatling.app.Gatling -s folder_name.$1