100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.6.3">
<hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="BZT Generated Test Plan">
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments">
<collectionProp name="Arguments.arguments">
<elementProp name="MANAGER_HOSTNAME" elementType="Argument">
<stringProp name="Argument.name">MANAGER_HOSTNAME</stringProp>
<stringProp name="Argument.value">test2.openremote.app</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="THREAD_COUNT" elementType="Argument">
<stringProp name="Argument.name">THREAD_COUNT</stringProp>
<stringProp name="Argument.value">10</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="DURAITON" elementType="Argument">
<stringProp name="Argument.name">DURAITON</stringProp>
<stringProp name="Argument.value">30</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
</collectionProp>
</elementProp>
</TestPlan>
<hashTree>
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="consoles">
<boolProp name="ThreadGroup.delayedStart">true</boolProp>
<stringProp name="ThreadGroup.num_threads">${__groovy(props.get("THREAD_COUNT") ?: "1000",)}</stringProp>
<stringProp name="ThreadGroup.ramp_time">${__groovy(Math.max(1\,(int)((props.get("THREAD_COUNT") ?: "1000").toInteger() / (props.get("RAMP_RATE") ?: "50").toInteger())),)}</stringProp>
<stringProp name="ThreadGroup.duration">${__groovy(props.get("DURATION") ?: "300",)}</stringProp>
<boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
<boolProp name="ThreadGroup.scheduler">true</boolProp>
<stringProp name="ThreadGroup.on_sample_error">stopthread</stringProp>
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController">
<stringProp name="LoopController.loops">1</stringProp>
<boolProp name="LoopController.continue_forever">false</boolProp>
</elementProp>
</ThreadGroup>
<hashTree>
<CacheManager guiclass="CacheManagerGui" testclass="CacheManager" testname="Cache" enabled="true">
<boolProp name="clearEachIteration">true</boolProp>
<boolProp name="useExpires">true</boolProp>
<boolProp name="CacheManager.controlledByThread">false</boolProp>
</CacheManager>
<hashTree/>
<DNSCacheManager guiclass="DNSCachePanel" testclass="DNSCacheManager" testname="DNS Cache Manager" enabled="true">
<collectionProp name="DNSCacheManager.servers"/>
<collectionProp name="DNSCacheManager.hosts"/>
<boolProp name="DNSCacheManager.clearEachIteration">false</boolProp>
<boolProp name="DNSCacheManager.isCustomResolver">false</boolProp>
</DNSCacheManager>
<hashTree/>
<ConfigTestElement guiclass="HttpDefaultsGui" testclass="ConfigTestElement" testname="Defaults" enabled="true">
<intProp name="HTTPSampler.connect_timeout">60000</intProp>
<intProp name="HTTPSampler.response_timeout">60000</intProp>
<stringProp name="HTTPSampler.domain">${__P(MANAGER_HOSTNAME,127.0.0.1)}</stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables">
<collectionProp name="Arguments.arguments"/>
</elementProp>
<stringProp name="HTTPSampler.implementation">HttpClient4</stringProp>
</ConfigTestElement>
<hashTree/>
<LoopController guiclass="LoopControlPanel" testclass="LoopController" testname="Console Loop" enabled="true">
<intProp name="LoopController.loops">-1</intProp>
</LoopController>
<hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get access token" enabled="true">
<stringProp name="HTTPSampler.path">/auth/realms/master/protocol/openid-connect/token</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
<boolProp name="HTTPSampler.postBodyRaw">false</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables">
<collectionProp name="Arguments.arguments">
<elementProp name="grant_type" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">password</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
<boolProp name="HTTPArgument.use_equals">true</boolProp>
<stringProp name="Argument.name">grant_type</stringProp>
<stringProp name="HTTPArgument.content_type"></stringProp>
</elementProp>
<elementProp name="client_id" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">openremote</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
<boolProp name="HTTPArgument.use_equals">true</boolProp>
<stringProp name="Argument.name">client_id</stringProp>
<stringProp name="HTTPArgument.content_type"></stringProp>
</elementProp>
<elementProp name="username" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">user${__threadNum}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
<boolProp name="HTTPArgument.use_equals">true</boolProp>
<stringProp name="Argument.name">username</stringProp>
<stringProp name="HTTPArgument.content_type"></stringProp>
</elementProp>
<elementProp name="password" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">user${__threadNum}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
<boolProp name="HTTPArgument.use_equals">true</boolProp>
<stringProp name="Argument.name">password</stringProp>
<stringProp name="HTTPArgument.content_type"></stringProp>
</elementProp>
</collectionProp>
</elementProp>
</HTTPSamplerProxy>
<hashTree>
<HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
<collectionProp name="HeaderManager.headers">
<elementProp name="" elementType="Header">
<stringProp name="Header.name">Content-Type</stringProp>
<stringProp name="Header.value">application/x-www-form-urlencoded</stringProp>
</elementProp>
</collectionProp>
</HeaderManager>
<hashTree/>
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="JSON Extractor" enabled="true">
<stringProp name="JSONPostProcessor.referenceNames">access_token</stringProp>
<stringProp name="JSONPostProcessor.jsonPathExprs">$.access_token</stringProp>
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
</JSONPostProcessor>
<hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Register Console" enabled="true">
<stringProp name="HTTPSampler.path">/api/master/console/register</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
<elementProp name="" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">{
"name": "Load ${__threadNum}",
"version": "121.0.0.0",
"platform": "Windows 10 64-bit",
"apps": [
"manager"
],
"model": "",
"providers": {
"push": {
"version": "web",
"requiresPermission": false,
"hasPermission": true,
"success": true,
"enabled": true,
"disabled": false
},
"storage": {
"version": "1.0.0",
"requiresPermission": false,
"hasPermission": true,
"success": true,
"enabled": true,
"disabled": false
}
}
}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
</collectionProp>
</elementProp>
</HTTPSamplerProxy>
<hashTree>
<HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
<collectionProp name="HeaderManager.headers">
<elementProp name="" elementType="Header">
<stringProp name="Header.name">Authorization</stringProp>
<stringProp name="Header.value">Bearer ${access_token}</stringProp>
</elementProp>
<elementProp name="" elementType="Header">
<stringProp name="Header.name">Content-Type</stringProp>
<stringProp name="Header.value">application/json</stringProp>
</elementProp>
</collectionProp>
</HeaderManager>
<hashTree/>
</hashTree>
<eu.luminis.jmeter.wssampler.OpenWebSocketSampler guiclass="eu.luminis.jmeter.wssampler.OpenWebSocketSamplerGui" testclass="eu.luminis.jmeter.wssampler.OpenWebSocketSampler" testname="WebSocket Open Connection" enabled="true">
<boolProp name="TLS">true</boolProp>
<stringProp name="server">${__P(MANAGER_HOSTNAME,127.0.0.1)}</stringProp>
<stringProp name="port">443</stringProp>
<stringProp name="path">/websocket/events?Realm=master&Authorization=Bearer%20${access_token}</stringProp>
<stringProp name="connectTimeout">20000</stringProp>
<stringProp name="readTimeout">20000</stringProp>
</eu.luminis.jmeter.wssampler.OpenWebSocketSampler>
<hashTree/>
<eu.luminis.jmeter.wssampler.RequestResponseWebSocketSampler guiclass="eu.luminis.jmeter.wssampler.RequestResponseWebSocketSamplerGui" testclass="eu.luminis.jmeter.wssampler.RequestResponseWebSocketSampler" testname="Subscribe attributes" enabled="true">
<boolProp name="createNewConnection">false</boolProp>
<boolProp name="TLS">true</boolProp>
<stringProp name="server">${__P(MANAGER_HOSTNAME,127.0.0.1)}</stringProp>
<stringProp name="port">443</stringProp>
<stringProp name="path">/websocket/events?Realm=master&Authorization=Bearer%20${access_token}</stringProp>
<stringProp name="connectTimeout">20000</stringProp>
<stringProp name="payloadType">Text</stringProp>
<stringProp name="requestData">SUBSCRIBE:{
"eventType": "attribute",
"filter": {
"filterType": "asset",
"assetNames": [
"device${__threadNum}"
]
},
"subscriptionId": "user${__threadNum}"
}</stringProp>
<stringProp name="readTimeout">20000</stringProp>
<boolProp name="loadDataFromFile">false</boolProp>
<stringProp name="dataFile"></stringProp>
</eu.luminis.jmeter.wssampler.RequestResponseWebSocketSampler>
<hashTree>
<ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Subscribe delay" enabled="true">
<stringProp name="ConstantTimer.delay">2000</stringProp>
</ConstantTimer>
<hashTree/>
<eu.luminis.jmeter.wssampler.TextFrameFilter guiclass="eu.luminis.jmeter.wssampler.TextFrameFilterGui" testclass="eu.luminis.jmeter.wssampler.TextFrameFilter" testname="Websocket Filter" enabled="true">
<stringProp name="comparisonType">StartsWith</stringProp>
<stringProp name="matchValue">TRIGGERED</stringProp>
</eu.luminis.jmeter.wssampler.TextFrameFilter>
<hashTree/>
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Check Subscribed response" enabled="true">
<collectionProp name="Asserion.test_strings">
<stringProp name="-1649864357">SUBSCRIBED:{</stringProp>
</collectionProp>
<stringProp name="Assertion.custom_message"></stringProp>
<stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
<boolProp name="Assertion.assume_success">false</boolProp>
<intProp name="Assertion.test_type">2</intProp>
</ResponseAssertion>
<hashTree/>
</hashTree>
<LoopController guiclass="LoopControlPanel" testclass="LoopController" testname="Read Events Loop">
<boolProp name="LoopController.continue_forever">true</boolProp>
<intProp name="LoopController.loops">-1</intProp>
</LoopController>
<hashTree>
<eu.luminis.jmeter.wssampler.SingleReadWebSocketSampler guiclass="eu.luminis.jmeter.wssampler.SingleReadWebSocketSamplerGui" testclass="eu.luminis.jmeter.wssampler.SingleReadWebSocketSampler" testname="WebSocket Read">
<boolProp name="TLS">false</boolProp>
<stringProp name="server"></stringProp>
<stringProp name="port">80</stringProp>
<stringProp name="path"></stringProp>
<stringProp name="connectTimeout">20000</stringProp>
<stringProp name="dataType">Text</stringProp>
<boolProp name="createNewConnection">false</boolProp>
<stringProp name="readTimeout">5000</stringProp>
<boolProp name="optional">true</boolProp>
</eu.luminis.jmeter.wssampler.SingleReadWebSocketSampler>
<hashTree/>
</hashTree>
<LoopController guiclass="LoopControlPanel" testclass="LoopController" testname="Read Events Loop" enabled="false">
<boolProp name="LoopController.continue_forever">true</boolProp>
<stringProp name="LoopController.loops">${__Random(1,100)}</stringProp>
</LoopController>
<hashTree>
<eu.luminis.jmeter.wssampler.SingleReadWebSocketSampler guiclass="eu.luminis.jmeter.wssampler.SingleReadWebSocketSamplerGui" testclass="eu.luminis.jmeter.wssampler.SingleReadWebSocketSampler" testname="WebSocket Read" enabled="false">
<boolProp name="TLS">false</boolProp>
<stringProp name="server"></stringProp>
<stringProp name="port">80</stringProp>
<stringProp name="path"></stringProp>
<stringProp name="connectTimeout">20000</stringProp>
<stringProp name="dataType">Text</stringProp>
<boolProp name="createNewConnection">false</boolProp>
<stringProp name="readTimeout">5000</stringProp>
<boolProp name="optional">true</boolProp>
</eu.luminis.jmeter.wssampler.SingleReadWebSocketSampler>
<hashTree/>
</hashTree>
<eu.luminis.jmeter.wssampler.SingleWriteWebSocketSampler guiclass="eu.luminis.jmeter.wssampler.SingleWriteWebSocketSamplerGui" testclass="eu.luminis.jmeter.wssampler.SingleWriteWebSocketSampler" testname="Unsubscribe attributes" enabled="false">
<boolProp name="TLS">false</boolProp>
<stringProp name="server"></stringProp>
<stringProp name="port">80</stringProp>
<stringProp name="path"></stringProp>
<stringProp name="connectTimeout">20000</stringProp>
<stringProp name="payloadType">Text</stringProp>
<stringProp name="requestData">UNSUBSCRIBE:{
"subscriptionId": "user${__threadNum}"
}</stringProp>
<boolProp name="createNewConnection">false</boolProp>
<boolProp name="loadDataFromFile">false</boolProp>
<stringProp name="dataFile"></stringProp>
</eu.luminis.jmeter.wssampler.SingleWriteWebSocketSampler>
<hashTree/>
<eu.luminis.jmeter.wssampler.CloseWebSocketSampler guiclass="eu.luminis.jmeter.wssampler.CloseWebSocketSamplerGui" testclass="eu.luminis.jmeter.wssampler.CloseWebSocketSampler" testname="WebSocket Close" enabled="false">
<stringProp name="statusCode">1000</stringProp>
<stringProp name="readTimeout">20000</stringProp>
</eu.luminis.jmeter.wssampler.CloseWebSocketSampler>
<hashTree>
<eu.luminis.jmeter.wssampler.TextFrameFilter guiclass="eu.luminis.jmeter.wssampler.TextFrameFilterGui" testclass="eu.luminis.jmeter.wssampler.TextFrameFilter" testname="Websocket Filter" enabled="true">
<stringProp name="comparisonType">StartsWith</stringProp>
<stringProp name="matchValue">TRIGGERED</stringProp>
</eu.luminis.jmeter.wssampler.TextFrameFilter>
<hashTree/>
</hashTree>
</hashTree>
<ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree">
<boolProp name="ResultCollector.error_logging">true</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>false</xml>
<fieldNames>true</fieldNames>
<responseHeaders>false</responseHeaders>
<requestHeaders>false</requestHeaders>
<responseDataOnError>false</responseDataOnError>
<saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
<assertionsResultsToSave>0</assertionsResultsToSave>
<bytes>true</bytes>
<sentBytes>true</sentBytes>
<url>true</url>
<threadCounts>true</threadCounts>
<idleTime>true</idleTime>
<connectTime>true</connectTime>
</value>
</objProp>
<stringProp name="filename"></stringProp>
</ResultCollector>
<hashTree/>
</hashTree>
</hashTree>
</hashTree>
</jmeterTestPlan>