Skip to content

Commit

Permalink
Adding options for scalability testing (not removing objects from rep…
Browse files Browse the repository at this point in the history
…o, using a configurable base path for created objects instead of putting them all directly in /rest/objects
  • Loading branch information
escowles committed Nov 7, 2013
1 parent f80e662 commit ccb80ad
Showing 1 changed file with 22 additions and 65 deletions.
87 changes: 22 additions & 65 deletions plans/fedora.jmx
Expand Up @@ -112,6 +112,16 @@
<stringProp name="Argument.value">${__property(pid_ns,,test:)}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="PID_PREFIX" elementType="Argument">
<stringProp name="Argument.name">PID_PREFIX</stringProp>
<stringProp name="Argument.value">${__property(pid_prefix,,objects)}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="DELETE_OBJECTS" elementType="Argument">
<stringProp name="Argument.name">DELETE_OBJECTS</stringProp>
<stringProp name="Argument.value">${__property(delete_objects,,true)}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="MODESHAPE_HOST" elementType="Argument">
<stringProp name="Argument.name">MODESHAPE_HOST</stringProp>
<stringProp name="Argument.value">${__property(modeshape_host,,localhost)}</stringProp>
Expand Down Expand Up @@ -681,7 +691,7 @@ file.close();</stringProp>
<stringProp name="HTTPSampler.response_timeout"></stringProp>
<stringProp name="HTTPSampler.protocol"></stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
<stringProp name="HTTPSampler.path">${FEDORA_SERVER_CONTEXT}/objects/fcr:new</stringProp>
<stringProp name="HTTPSampler.path">${FEDORA_SERVER_CONTEXT}/${PID_PREFIX}/fcr:new</stringProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
Expand Down Expand Up @@ -782,7 +792,7 @@ file.close();</stringProp>
<stringProp name="HTTPSampler.response_timeout"></stringProp>
<stringProp name="HTTPSampler.protocol"></stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
<stringProp name="HTTPSampler.path">/${FEDORA_SERVER_CONTEXT}/objects/${pid}</stringProp>
<stringProp name="HTTPSampler.path">/${FEDORA_SERVER_CONTEXT}/${PID_PREFIX}/${pid}?mixin=fedora:object</stringProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.follow_redirects">false</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
Expand Down Expand Up @@ -850,7 +860,7 @@ file.close();</stringProp>
<stringProp name="HTTPSampler.response_timeout"></stringProp>
<stringProp name="HTTPSampler.protocol"></stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
<stringProp name="HTTPSampler.path">/${FEDORA_SERVER_CONTEXT}/objects/${pid}/datastreams/${dsid}/fcr:content</stringProp>
<stringProp name="HTTPSampler.path">/${FEDORA_SERVER_CONTEXT}/${PID_PREFIX}/${pid}/${dsid}/fcr:content</stringProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.follow_redirects">false</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
Expand Down Expand Up @@ -1010,60 +1020,7 @@ file.delete();</stringProp>
<stringProp name="HTTPSampler.response_timeout"></stringProp>
<stringProp name="HTTPSampler.protocol"></stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
<stringProp name="HTTPSampler.path">/${FEDORA_SERVER_CONTEXT}/objects/${pid}</stringProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.follow_redirects">false</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
<boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
<boolProp name="HTTPSampler.monitor">false</boolProp>
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
</HTTPSamplerProxy>
<hashTree>
<ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="false">
<boolProp name="ResultCollector.error_logging">false</boolProp>
<objProp>
<name>saveConfig</name>
<value class="SampleSaveConfiguration">
<time>true</time>
<latency>true</latency>
<timestamp>true</timestamp>
<success>true</success>
<label>true</label>
<code>true</code>
<message>true</message>
<threadName>true</threadName>
<dataType>true</dataType>
<encoding>false</encoding>
<assertions>true</assertions>
<subresults>true</subresults>
<responseData>false</responseData>
<samplerData>false</samplerData>
<xml>true</xml>
<fieldNames>false</fieldNames>
<responseHeaders>false</responseHeaders>
<requestHeaders>false</requestHeaders>
<responseDataOnError>false</responseDataOnError>
<saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
<assertionsResultsToSave>0</assertionsResultsToSave>
<bytes>true</bytes>
</value>
</objProp>
<stringProp name="filename"></stringProp>
</ResultCollector>
<hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Datastream Path" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
<stringProp name="HTTPSampler.domain"></stringProp>
<stringProp name="HTTPSampler.port"></stringProp>
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
<stringProp name="HTTPSampler.response_timeout"></stringProp>
<stringProp name="HTTPSampler.protocol"></stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
<stringProp name="HTTPSampler.path">/${FEDORA_SERVER_CONTEXT}/objects/${pid}/datastreams</stringProp>
<stringProp name="HTTPSampler.path">/${FEDORA_SERVER_CONTEXT}/${PID_PREFIX}/${pid}?mixin=fedora:object</stringProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.follow_redirects">false</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
Expand Down Expand Up @@ -1131,7 +1088,7 @@ file.delete();</stringProp>
<stringProp name="HTTPSampler.response_timeout"></stringProp>
<stringProp name="HTTPSampler.protocol"></stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
<stringProp name="HTTPSampler.path">/${FEDORA_SERVER_CONTEXT}/objects/${pid}/datastreams/${dsid}/fcr:content</stringProp>
<stringProp name="HTTPSampler.path">/${FEDORA_SERVER_CONTEXT}/${PID_PREFIX}/${pid}/${dsid}/fcr:content</stringProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.follow_redirects">false</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
Expand Down Expand Up @@ -1228,7 +1185,7 @@ file.close();</stringProp>
<stringProp name="HTTPSampler.response_timeout"></stringProp>
<stringProp name="HTTPSampler.protocol"></stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
<stringProp name="HTTPSampler.path">/${FEDORA_SERVER_CONTEXT}/objects/${pid}/datastreams/${dsid}/fcr:content?checksumType=MD5</stringProp>
<stringProp name="HTTPSampler.path">/${FEDORA_SERVER_CONTEXT}/${PID_PREFIX}/${pid}/${dsid}/fcr:content?checksumType=MD5</stringProp>
<stringProp name="HTTPSampler.method">PUT</stringProp>
<boolProp name="HTTPSampler.follow_redirects">false</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
Expand Down Expand Up @@ -1307,7 +1264,7 @@ file.close();</stringProp>
<stringProp name="HTTPSampler.response_timeout"></stringProp>
<stringProp name="HTTPSampler.protocol"></stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
<stringProp name="HTTPSampler.path">/${FEDORA_SERVER_CONTEXT}/objects/${pid}/datastreams/${dsid}/fcr:content</stringProp>
<stringProp name="HTTPSampler.path">/${FEDORA_SERVER_CONTEXT}/${PID_PREFIX}/${pid}/${dsid}/fcr:content</stringProp>
<stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.follow_redirects">false</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
Expand Down Expand Up @@ -1434,7 +1391,7 @@ file.close();</stringProp>
<stringProp name="HTTPSampler.response_timeout"></stringProp>
<stringProp name="HTTPSampler.protocol"></stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
<stringProp name="HTTPSampler.path">/${FEDORA_SERVER_CONTEXT}/objects/${pid}</stringProp>
<stringProp name="HTTPSampler.path">/${FEDORA_SERVER_CONTEXT}/${PID_PREFIX}/${pid}</stringProp>
<stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.follow_redirects">false</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
Expand Down Expand Up @@ -1477,7 +1434,7 @@ file.close();</stringProp>
</ResultCollector>
<hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Object" enabled="true">
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Object" enabled="${DELETE_OBJECTS}">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
Expand All @@ -1487,7 +1444,7 @@ file.close();</stringProp>
<stringProp name="HTTPSampler.response_timeout"></stringProp>
<stringProp name="HTTPSampler.protocol"></stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
<stringProp name="HTTPSampler.path">/${FEDORA_SERVER_CONTEXT}/objects/${pid}</stringProp>
<stringProp name="HTTPSampler.path">/${FEDORA_SERVER_CONTEXT}/${PID_PREFIX}/${pid}</stringProp>
<stringProp name="HTTPSampler.method">DELETE</stringProp>
<boolProp name="HTTPSampler.follow_redirects">false</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
Expand Down Expand Up @@ -1542,7 +1499,7 @@ file.close();</stringProp>
<boolProp name="CounterConfig.per_user">false</boolProp>
</CounterConfig>
<hashTree/>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Fedora Object" enabled="true">
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Fedora Object" enabled="${DELETE_OBJECTS}">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
Expand All @@ -1552,7 +1509,7 @@ file.close();</stringProp>
<stringProp name="HTTPSampler.response_timeout"></stringProp>
<stringProp name="HTTPSampler.protocol"></stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
<stringProp name="HTTPSampler.path">/${FEDORA_SERVER_CONTEXT}/objects/${pid}</stringProp>
<stringProp name="HTTPSampler.path">/${FEDORA_SERVER_CONTEXT}/${PID_PREFIX}/${pid}</stringProp>
<stringProp name="HTTPSampler.method">DELETE</stringProp>
<boolProp name="HTTPSampler.follow_redirects">false</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
Expand Down

0 comments on commit ccb80ad

Please sign in to comment.