forked from crimefire/performance-tests
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjmeter.sh.inc
52 lines (43 loc) · 1.72 KB
/
jmeter.sh.inc
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
# Configuration of the ILIAS Performance Testsuite
#
# You must restart jMeter for any changes to take effect.
#
# This bash script defines local variables used by `bin/run.sh`,
# `bin\jmeter.sh`, etc.
WORK_DIR=$(pwd) # do not change this, unless necessary
TESTPLAN="testcases/suite.jmx" # TODO: interpret bash parameters $(echo $1; shift)
JMETER_CMD=/usr/share/jmeter/apache-jmeter-3.3/bin/jmeter.sh # jMeter Command -- default: jmeter, if in PATH env variable
OUT_DIR="${WORK_DIR}/out"
LOG="${OUT_DIR}/jmeter.log" # may want to add a timestamp YYYY-MM-DD...
##### Save results as CSV or XML #####
# RESULTS="${OUT_DIR}/results.csv"
# PROPFILE="${WORK_DIR}/config/jmeter/csv-results.properties"
RESULTS="${OUT_DIR}/results.xml"
PROPFILE="${WORK_DIR}/config/jmeter/xml-results.properties"
#####
# Each of these KEY=VALUE pairs will be passed to jMeter
# via `--jmeterproperty KEY=VALUE`
JMETER_PROPERTIES=(
"PROTOCOL=http" # http, https, file
"HOST=localhost-php7" # domain or ip, e.g. www.ilias.de, localhost, 127.0.0.1
"PATH=/1_dev/trunk/www/" # must not be empty - e.g. /, /path/to/ilias, /docu, /test51, ..
"PORT=80" # e.g. 80, 443
"CLIENT_ID=default" # e.g. ilias
"IS_ADMIN=false" # default: false
"READ_ONLY=false" # default: true
OUT_DIR="${OUT_DIR}"
# Default: Static Credentials
"USERNAME=dummy27" # ILIAS-User
"PASSWORD=dummy" # ILIAS-Password
# Alternative: Credentials from CSV
"CREDENTIALS_CSV=$WORK_DIR/config/users.csv" # OVERRIDE username and password with values from this CSV file
"THREADS=1" # default: 1
"RAMP_UP=1" # default: 1
"LOOPS=1" # default: 1
"WORK_DIR=$WORK_DIR"
)
# Each of these KEY=VALUE pairs will be passed to jMeter
# via `--systemproperty KEY=VALUE`
SYSTEM_PROPERTIES=(
)