Created
March 17, 2016 05:33
-
-
Save vamdt/002a7d77850ea6c55ad6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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