|
|
|
@ -1,28 +1,12 @@
|
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<jmeterTestPlan version="1.2" properties="2.9" jmeter="3.0 r1743807">
|
|
|
|
|
<jmeterTestPlan version="1.2" properties="2.2">
|
|
|
|
|
<hashTree>
|
|
|
|
|
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Android Device Management API" enabled="true">
|
|
|
|
|
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Group Management API" enabled="true">
|
|
|
|
|
<stringProp name="TestPlan.comments"></stringProp>
|
|
|
|
|
<boolProp name="TestPlan.functional_mode">false</boolProp>
|
|
|
|
|
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
|
|
|
|
|
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
|
|
<collectionProp name="Arguments.arguments">
|
|
|
|
|
<elementProp name="host" elementType="Argument">
|
|
|
|
|
<stringProp name="Argument.name">host</stringProp>
|
|
|
|
|
<stringProp name="Argument.value">172.17.0.1</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="http_port" elementType="Argument">
|
|
|
|
|
<stringProp name="Argument.name">http_port</stringProp>
|
|
|
|
|
<stringProp name="Argument.value">9763</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="https_port" elementType="Argument">
|
|
|
|
|
<stringProp name="Argument.name">https_port</stringProp>
|
|
|
|
|
<stringProp name="Argument.value">9443</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
</collectionProp>
|
|
|
|
|
<collectionProp name="Arguments.arguments"/>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<stringProp name="TestPlan.user_define_classpath"></stringProp>
|
|
|
|
|
</TestPlan>
|
|
|
|
@ -88,9 +72,253 @@
|
|
|
|
|
<stringProp name="Argument.value">group_device</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="tenant_user_name" elementType="Argument">
|
|
|
|
|
<stringProp name="Argument.name">tenant_user_name</stringProp>
|
|
|
|
|
<stringProp name="Argument.value">admin</stringProp>
|
|
|
|
|
<stringProp name="Argument.desc">Name of Tenant</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="domain_name" elementType="Argument">
|
|
|
|
|
<stringProp name="Argument.name">domain_name</stringProp>
|
|
|
|
|
<stringProp name="Argument.value">wso2.com</stringProp>
|
|
|
|
|
<stringProp name="Argument.desc">Name of Domain</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="password" elementType="Argument">
|
|
|
|
|
<stringProp name="Argument.name">password</stringProp>
|
|
|
|
|
<stringProp name="Argument.value">admin</stringProp>
|
|
|
|
|
<stringProp name="Argument.desc">Password</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="email" elementType="Argument">
|
|
|
|
|
<stringProp name="Argument.name">email</stringProp>
|
|
|
|
|
<stringProp name="Argument.value">abc@wso2.com</stringProp>
|
|
|
|
|
<stringProp name="Argument.desc">Email</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="firstName" elementType="Argument">
|
|
|
|
|
<stringProp name="Argument.name">firstName</stringProp>
|
|
|
|
|
<stringProp name="Argument.value">firstName</stringProp>
|
|
|
|
|
<stringProp name="Argument.desc">First Name</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="lastName" elementType="Argument">
|
|
|
|
|
<stringProp name="Argument.name">lastName</stringProp>
|
|
|
|
|
<stringProp name="Argument.value">lastName</stringProp>
|
|
|
|
|
<stringProp name="Argument.desc">Last Name</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="usagePlan" elementType="Argument">
|
|
|
|
|
<stringProp name="Argument.name">usagePlan</stringProp>
|
|
|
|
|
<stringProp name="Argument.value">Demo</stringProp>
|
|
|
|
|
<stringProp name="Argument.desc">Usage Plan</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="createdDate" elementType="Argument">
|
|
|
|
|
<stringProp name="Argument.name">createdDate</stringProp>
|
|
|
|
|
<stringProp name="Argument.value">2013-02-22T08:22:35+)5:30</stringProp>
|
|
|
|
|
<stringProp name="Argument.desc">Created Date</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="management_https_port" elementType="Argument">
|
|
|
|
|
<stringProp name="Argument.name">management_https_port</stringProp>
|
|
|
|
|
<stringProp name="Argument.value">9443</stringProp>
|
|
|
|
|
<stringProp name="Argument.desc">Port for carbon management console</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
</collectionProp>
|
|
|
|
|
</Arguments>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Tenant Creation" enabled="true">
|
|
|
|
|
<stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
|
|
|
|
|
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
|
|
|
|
|
<boolProp name="LoopController.continue_forever">false</boolProp>
|
|
|
|
|
<stringProp name="LoopController.loops">1</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<stringProp name="ThreadGroup.num_threads">1</stringProp>
|
|
|
|
|
<stringProp name="ThreadGroup.ramp_time"></stringProp>
|
|
|
|
|
<longProp name="ThreadGroup.start_time">1342532280000</longProp>
|
|
|
|
|
<longProp name="ThreadGroup.end_time">1342532280000</longProp>
|
|
|
|
|
<boolProp name="ThreadGroup.scheduler">false</boolProp>
|
|
|
|
|
<stringProp name="ThreadGroup.duration"></stringProp>
|
|
|
|
|
<stringProp name="ThreadGroup.delay"></stringProp>
|
|
|
|
|
</ThreadGroup>
|
|
|
|
|
<hashTree>
|
|
|
|
|
<CookieManager guiclass="CookiePanel" testclass="CookieManager" testname="HTTP Cookie Manager" enabled="true">
|
|
|
|
|
<collectionProp name="CookieManager.cookies"/>
|
|
|
|
|
<boolProp name="CookieManager.clearEachIteration">false</boolProp>
|
|
|
|
|
<stringProp name="CookieManager.policy">rfc2109</stringProp>
|
|
|
|
|
</CookieManager>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
<SoapSampler guiclass="SoapSamplerGui" testclass="SoapSampler" testname="Login to Carbon Console" enabled="true">
|
|
|
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
|
|
|
<collectionProp name="Arguments.arguments"/>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<stringProp name="SoapSampler.URL_DATA">https://${host}:${management_https_port}/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/</stringProp>
|
|
|
|
|
<stringProp name="HTTPSamper.xml_data"><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:aut="http://authentication.services.core.carbon.wso2.org">
|
|
|
|
|
<soapenv:Header/>
|
|
|
|
|
<soapenv:Body>
|
|
|
|
|
<aut:login>
|
|
|
|
|
<!--Optional:-->
|
|
|
|
|
<aut:username>admin</aut:username>
|
|
|
|
|
<!--Optional:-->
|
|
|
|
|
<aut:password>admin</aut:password>
|
|
|
|
|
<!--Optional:-->
|
|
|
|
|
<aut:remoteAddress>127.0.0.1</aut:remoteAddress>
|
|
|
|
|
</aut:login>
|
|
|
|
|
</soapenv:Body>
|
|
|
|
|
</soapenv:Envelope></stringProp>
|
|
|
|
|
<stringProp name="SoapSampler.xml_data_file"></stringProp>
|
|
|
|
|
<stringProp name="SoapSampler.SOAP_ACTION">urn:login</stringProp>
|
|
|
|
|
<stringProp name="SoapSampler.SEND_SOAP_ACTION">true</stringProp>
|
|
|
|
|
<boolProp name="HTTPSampler.use_keepalive">false</boolProp>
|
|
|
|
|
</SoapSampler>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
<SoapSampler guiclass="SoapSamplerGui" testclass="SoapSampler" testname="Check Tenant Availability" enabled="true">
|
|
|
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
|
|
|
<collectionProp name="Arguments.arguments"/>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<stringProp name="SoapSampler.URL_DATA">https://${host}:${management_https_port}/services/TenantMgtAdminService.TenantMgtAdminServiceHttpsSoap11Endpoint/</stringProp>
|
|
|
|
|
<stringProp name="HTTPSamper.xml_data"><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.mgt.tenant.carbon.wso2.org">
|
|
|
|
|
<soapenv:Header/>
|
|
|
|
|
<soapenv:Body>
|
|
|
|
|
<ser:getTenant>
|
|
|
|
|
<!--Optional:-->
|
|
|
|
|
<ser:tenantDomain>${domain_name}</ser:tenantDomain>
|
|
|
|
|
</ser:getTenant>
|
|
|
|
|
</soapenv:Body>
|
|
|
|
|
</soapenv:Envelope></stringProp>
|
|
|
|
|
<stringProp name="SoapSampler.xml_data_file"></stringProp>
|
|
|
|
|
<stringProp name="SoapSampler.SOAP_ACTION">urn:getTenant</stringProp>
|
|
|
|
|
<stringProp name="SoapSampler.SEND_SOAP_ACTION">true</stringProp>
|
|
|
|
|
<boolProp name="HTTPSampler.use_keepalive">false</boolProp>
|
|
|
|
|
</SoapSampler>
|
|
|
|
|
<hashTree>
|
|
|
|
|
<XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="XPath Extractor" enabled="true">
|
|
|
|
|
<stringProp name="XPathExtractor.default">undefined</stringProp>
|
|
|
|
|
<stringProp name="XPathExtractor.refname">tenant_exists</stringProp>
|
|
|
|
|
<stringProp name="XPathExtractor.xpathQuery">//*[local-name()='active']/text()</stringProp>
|
|
|
|
|
<boolProp name="XPathExtractor.validate">false</boolProp>
|
|
|
|
|
<boolProp name="XPathExtractor.tolerant">false</boolProp>
|
|
|
|
|
<boolProp name="XPathExtractor.namespace">true</boolProp>
|
|
|
|
|
<stringProp name="Scope.variable">tenant_exists</stringProp>
|
|
|
|
|
</XPathExtractor>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
<DebugPostProcessor guiclass="TestBeanGUI" testclass="DebugPostProcessor" testname="Debug PostProcessor" enabled="true">
|
|
|
|
|
<boolProp name="displayJMeterProperties">false</boolProp>
|
|
|
|
|
<boolProp name="displayJMeterVariables">true</boolProp>
|
|
|
|
|
<boolProp name="displaySamplerProperties">true</boolProp>
|
|
|
|
|
<boolProp name="displaySystemProperties">false</boolProp>
|
|
|
|
|
</DebugPostProcessor>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
</hashTree>
|
|
|
|
|
<IfController guiclass="IfControllerPanel" testclass="IfController" testname="Tenant Creation" enabled="true">
|
|
|
|
|
<stringProp name="IfController.condition">${tenant_exists}==false</stringProp>
|
|
|
|
|
<boolProp name="IfController.evaluateAll">false</boolProp>
|
|
|
|
|
</IfController>
|
|
|
|
|
<hashTree>
|
|
|
|
|
<SoapSampler guiclass="SoapSamplerGui" testclass="SoapSampler" testname="Add Tennant" enabled="true">
|
|
|
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
|
|
|
<collectionProp name="Arguments.arguments"/>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<stringProp name="SoapSampler.URL_DATA">https://${host}:${management_https_port}/services/TenantMgtAdminService.TenantMgtAdminServiceHttpsSoap11Endpoint/</stringProp>
|
|
|
|
|
<stringProp name="HTTPSamper.xml_data"><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.mgt.tenant.carbon.wso2.org" xmlns:xsd="http://beans.common.stratos.carbon.wso2.org/xsd">
|
|
|
|
|
<soapenv:Header/>
|
|
|
|
|
<soapenv:Body>
|
|
|
|
|
<ser:addTenant>
|
|
|
|
|
<!--Optional:-->
|
|
|
|
|
<ser:tenantInfoBean>
|
|
|
|
|
<!--Optional:-->
|
|
|
|
|
<xsd:active>1</xsd:active>
|
|
|
|
|
<!--Optional:-->
|
|
|
|
|
<xsd:admin>${tenant_user_name}</xsd:admin>
|
|
|
|
|
<!--Optional:-->
|
|
|
|
|
<xsd:adminPassword>${password}</xsd:adminPassword>
|
|
|
|
|
<!--Optional:-->
|
|
|
|
|
<xsd:createdDate>${createdDate}</xsd:createdDate>
|
|
|
|
|
<!--Optional:-->
|
|
|
|
|
<xsd:email>${email}</xsd:email>
|
|
|
|
|
<!--Optional:-->
|
|
|
|
|
<xsd:firstname>${firstName}</xsd:firstname>
|
|
|
|
|
<!--Optional:-->
|
|
|
|
|
<xsd:lastname>${lastName}</xsd:lastname>
|
|
|
|
|
<!--Optional:-->
|
|
|
|
|
<xsd:tenantDomain>${domain_name}</xsd:tenantDomain>
|
|
|
|
|
<!--Optional:-->
|
|
|
|
|
<xsd:tenantId>0</xsd:tenantId>
|
|
|
|
|
<!--Optional:-->
|
|
|
|
|
<xsd:usagePlan>${usagePlan}</xsd:usagePlan>
|
|
|
|
|
</ser:tenantInfoBean>
|
|
|
|
|
</ser:addTenant>
|
|
|
|
|
</soapenv:Body>
|
|
|
|
|
</soapenv:Envelope></stringProp>
|
|
|
|
|
<stringProp name="SoapSampler.xml_data_file"></stringProp>
|
|
|
|
|
<stringProp name="SoapSampler.SOAP_ACTION">urn:addTenant</stringProp>
|
|
|
|
|
<stringProp name="SoapSampler.SEND_SOAP_ACTION">true</stringProp>
|
|
|
|
|
<boolProp name="HTTPSampler.use_keepalive">false</boolProp>
|
|
|
|
|
</SoapSampler>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
</hashTree>
|
|
|
|
|
<SoapSampler guiclass="SoapSamplerGui" testclass="SoapSampler" testname="Log Out - Super Tenant" enabled="true">
|
|
|
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
|
|
|
<collectionProp name="Arguments.arguments"/>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<stringProp name="SoapSampler.URL_DATA">https://${host}:${management_https_port}/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/</stringProp>
|
|
|
|
|
<stringProp name="HTTPSamper.xml_data"><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:aut="http://authentication.services.core.carbon.wso2.org">
|
|
|
|
|
<soapenv:Header/>
|
|
|
|
|
<soapenv:Body>
|
|
|
|
|
<aut:logout/>
|
|
|
|
|
</soapenv:Body>
|
|
|
|
|
</soapenv:Envelope></stringProp>
|
|
|
|
|
<stringProp name="SoapSampler.xml_data_file"></stringProp>
|
|
|
|
|
<stringProp name="SoapSampler.SOAP_ACTION">urn:logout</stringProp>
|
|
|
|
|
<stringProp name="SoapSampler.SEND_SOAP_ACTION">true</stringProp>
|
|
|
|
|
<boolProp name="HTTPSampler.use_keepalive">false</boolProp>
|
|
|
|
|
</SoapSampler>
|
|
|
|
|
<hashTree>
|
|
|
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
|
|
<collectionProp name="Asserion.test_strings">
|
|
|
|
|
<stringProp name="49588">202</stringProp>
|
|
|
|
|
</collectionProp>
|
|
|
|
|
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
|
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
|
|
|
<intProp name="Assertion.test_type">1</intProp>
|
|
|
|
|
</ResponseAssertion>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
</hashTree>
|
|
|
|
|
<ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
|
|
|
|
|
<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">/home/ace/Desktop/results_multi_user_multi_tenancy.jtl</stringProp>
|
|
|
|
|
</ResultCollector>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
</hashTree>
|
|
|
|
|
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Group Management" enabled="true">
|
|
|
|
|
<stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
|
|
|
|
|
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
|
|
|
|
|