Skip to content

Instantly share code, notes, and snippets.

@vamdt
Created March 17, 2016 05:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vamdt/002a7d77850ea6c55ad6 to your computer and use it in GitHub Desktop.
Save vamdt/002a7d77850ea6c55ad6 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
JMETER_PATH=/path/to/jmeter
JMETER_PLAN_DIR=/path/to/jmx
set -xe
cd $(dirname $0)
pwd
for file in $(ls $JMETER_PLAN_DIR); do
name=$(echo $file | cut -d. -f1)
filename="$JMETER_PLAN_DIR/$file"
$JMETER_PATH -n -t $filename -l "$name.jtl" | tee "$name.log"
done;
set +xe
# eg run like this
#/path/to/jmeter -n -t /path/to/jmx/active_count_threads100_time100s.jmx -l jmeter.jtl | tee jmeter_active.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment