-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathjtl_to_csv_converter_baseline.sh
32 lines (25 loc) · 1.75 KB
/
jtl_to_csv_converter_baseline.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
test_path="/home/opc/zm-load-testing"
JMETER_DIR="/opt/apache-jmeter-5.4.3"
#Cleanup old build comparison transaction response time files
rm -rf ${test_path}/build_comparison/*
commands=(
"java -jar ${JMETER_DIR}/lib/cmdrunner-2.2.jar --tool Reporter --plugin-type SynthesisReport --input-jtl /tmp/soap/generic_zsoap.jtl --generate-csv /tmp/results/generic_zsoap.csv"
"java -jar ${JMETER_DIR}/lib/cmdrunner-2.2.jar --tool Reporter --plugin-type SynthesisReport --input-jtl /tmp/imap/generic_imap.jtl --generate-csv /tmp/results/generic_imap.csv"
"java -jar ${JMETER_DIR}/lib/cmdrunner-2.2.jar --tool Reporter --plugin-type SynthesisReport --input-jtl /tmp/pop/generic_pop.jtl --generate-csv /tmp/results/generic_pop.csv"
"java -jar ${JMETER_DIR}/lib/cmdrunner-2.2.jar --tool Reporter --plugin-type SynthesisReport --input-jtl /tmp/lmtp/generic_lmtp.jtl --generate-csv /tmp/results/generic_lmtp.csv"
"java -jar ${JMETER_DIR}/lib/cmdrunner-2.2.jar --tool Reporter --plugin-type SynthesisReport --input-jtl /tmp/eas/generic_eas.jtl --generate-csv /tmp/results/generic_eas.csv"
)
# Run commands in parallel
for command in "${commands[@]}"; do
$command &
done
# Wait for all commands to finish
wait
# Copy CSV file to build_comparison folder for response time comparison across build
cp /tmp/results/generic_zsoap.csv ${test_path}/build_comparison/generic_zsoap_baseline.csv
cp /tmp/results/generic_imap.csv ${test_path}/build_comparison/generic_imap_baseline.csv
cp /tmp/results/generic_pop.csv ${test_path}/build_comparison/generic_pop_baseline.csv
cp /tmp/results/generic_lmtp.csv ${test_path}/build_comparison/generic_lmtp_baseline.csv
cp /tmp/results/generic_eas.csv ${test_path}/build_comparison/generic_eas_baseline.csv
echo "JTL to CSV file conversion is successful..!!"