diff --git a/doc/3rd-party-licenses.txt b/doc/3rd-party-licenses.txt index e737dfcd..5d967a74 100644 --- a/doc/3rd-party-licenses.txt +++ b/doc/3rd-party-licenses.txt @@ -5,6 +5,7 @@ Apache License 2.0 ------------------ licenses/apache.LICENSE.txt +ant-jmeter commons-beanutils-core commons-betwixt commons-cli diff --git a/utilities/load-testing/build.xml b/utilities/load-testing/build.xml new file mode 100644 index 00000000..4a124955 --- /dev/null +++ b/utilities/load-testing/build.xml @@ -0,0 +1,128 @@ + + + + + + + Run JMeter tests and summarize the results. + + + + + + + +all - Run the tests and summarize the output. +clean - Remove any existing output and summaries. +run - Just run the tests. +report - Just summarize output from previously run tests. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/utilities/load-testing/example.loadtesting.properties b/utilities/load-testing/example.loadtesting.properties new file mode 100644 index 00000000..276fb6c3 --- /dev/null +++ b/utilities/load-testing/example.loadtesting.properties @@ -0,0 +1,22 @@ +# ----------------------------------------------------------------------------- +# +# VIVO load-testing properties +# +# This file is provided as example.loadtesting.properties. +# +# Save a copy of this file as loadtesting.properties, and edit the properties +# as needed for your deployment. +# +# ----------------------------------------------------------------------------- + +# +# The base install directory for JMeter. +# +jmeter.home.dir = /Users/jeb228/Downloads/JMeter/jakarta-jmeter-2.4 + +# +# Where do we find the Vivo instance that we are testing? +# +webapp.host = localhost +webapp.port = 8080 +webapp.name = vivo diff --git a/utilities/load-testing/jmeter-results-report.xsl b/utilities/load-testing/jmeter-results-report.xsl new file mode 100644 index 00000000..0c7d5adb --- /dev/null +++ b/utilities/load-testing/jmeter-results-report.xsl @@ -0,0 +1,299 @@ + + + + + + + + + + + + + Load Test Results + + + + + + + +
+ + +
+ + + + + +
+ + +

Load Test Results

+ + + + + +
Designed for use with JMeter and Ant.
+
+
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Failure + + + + + + + + + +
TestsFailuresSuccess RateAverage TimeMin TimeMax Time
+ + + + + + + + + + + + + + + + + + + +
+
+ + +

Pages

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Failure + + + + + + + + + + + +
URLTestsFailuresSuccess RateAverage TimeMin TimeMax Time
+ + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + +

Failure Detail

+ + + + + + +

+ + + + + + + + + + + + + + +
ResponseFailure Message
-
+
+ +
+
+
+ + + + + NaN + + + + + + + + + + + + + + + NaN + + + + + + + + + + + + + + + + + + + + + +
\ No newline at end of file diff --git a/utilities/load-testing/lib/ant-jmeter-1.0.9.jar b/utilities/load-testing/lib/ant-jmeter-1.0.9.jar new file mode 100644 index 00000000..420eccc1 Binary files /dev/null and b/utilities/load-testing/lib/ant-jmeter-1.0.9.jar differ diff --git a/utilities/load-testing/tests/firstTest.jmx b/utilities/load-testing/tests/firstTest.jmx new file mode 100644 index 00000000..3ce2a223 --- /dev/null +++ b/utilities/load-testing/tests/firstTest.jmx @@ -0,0 +1,140 @@ + + + + + $This file is distributed under the terms of the license in /doc/license.txt$ + false + false + + + + WEBAPP_HOST + ${__property(webapp.host, localhost)} + = + + + WEBAPP_PORT + ${__property(webapp.port, 8080)} + = + + + WEBAPP_NAME + ${__property(webapp.name, vivo)} + = + + + + + + + + continue + + false + 10 + + 1 + 1 + 1293123271000 + 1293123271000 + false + + + + + + + false + rfc2109 + + + + + + + ${WEBAPP_HOST} + ${WEBAPP_PORT} + + + + + + true + + + + + + + + + + + + + ${WEBAPP_NAME}/ + GET + true + false + true + false + false + + + + + + + + + + + + + + ${WEBAPP_NAME}/about + GET + true + false + true + false + false + + + + + + + + + + + + + + ${WEBAPP_NAME}/display/${INDIVIDUAL_URI} + GET + true + false + true + false + false + + + + + , + utf8 + individualUris.csv + false + true + Current thread group + false + INDIVIDUAL_URI + + + + + + + diff --git a/utilities/load-testing/tests/individualUris.csv b/utilities/load-testing/tests/individualUris.csv new file mode 100644 index 00000000..e5308965 --- /dev/null +++ b/utilities/load-testing/tests/individualUris.csv @@ -0,0 +1,9 @@ +n3148 +n1613 +n1451 +n1748 +n2936 +n3084 +n2731 +n432 +n1048