Improving scripts

application-manager-new
megala21 8 years ago
parent 0fea4d6eb0
commit fb5d73ecbe

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?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> <hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Android Device Management API" enabled="true"> <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Android Device Management API" enabled="true">
<stringProp name="TestPlan.comments"></stringProp> <stringProp name="TestPlan.comments"></stringProp>
@ -45,12 +45,12 @@
</elementProp> </elementProp>
<elementProp name="https_port" elementType="Argument"> <elementProp name="https_port" elementType="Argument">
<stringProp name="Argument.name">https_port</stringProp> <stringProp name="Argument.name">https_port</stringProp>
<stringProp name="Argument.value">9443</stringProp> <stringProp name="Argument.value">8243</stringProp>
<stringProp name="Argument.metadata">=</stringProp> <stringProp name="Argument.metadata">=</stringProp>
</elementProp> </elementProp>
<elementProp name="http_port" elementType="Argument"> <elementProp name="http_port" elementType="Argument">
<stringProp name="Argument.name">http_port</stringProp> <stringProp name="Argument.name">http_port</stringProp>
<stringProp name="Argument.value">9763</stringProp> <stringProp name="Argument.value">8280</stringProp>
<stringProp name="Argument.metadata">=</stringProp> <stringProp name="Argument.metadata">=</stringProp>
</elementProp> </elementProp>
<elementProp name="token_ep_host" elementType="Argument"> <elementProp name="token_ep_host" elementType="Argument">
@ -60,7 +60,12 @@
</elementProp> </elementProp>
<elementProp name="token_ep_port" elementType="Argument"> <elementProp name="token_ep_port" elementType="Argument">
<stringProp name="Argument.name">token_ep_port</stringProp> <stringProp name="Argument.name">token_ep_port</stringProp>
<stringProp name="Argument.value">9763</stringProp> <stringProp name="Argument.value">8280</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="https_management_port" elementType="Argument">
<stringProp name="Argument.name">https_management_port</stringProp>
<stringProp name="Argument.value">9443</stringProp>
<stringProp name="Argument.metadata">=</stringProp> <stringProp name="Argument.metadata">=</stringProp>
</elementProp> </elementProp>
</collectionProp> </collectionProp>
@ -108,7 +113,7 @@
<elementProp name="HTTPsampler.Arguments" elementType="Arguments"> <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments"/> <collectionProp name="Arguments.arguments"/>
</elementProp> </elementProp>
<stringProp name="SoapSampler.URL_DATA">https://${host}:${https_port}/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/</stringProp> <stringProp name="SoapSampler.URL_DATA">https://${host}:${https_management_port}/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/</stringProp>
<stringProp name="HTTPSamper.xml_data">&lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:aut=&quot;http://authentication.services.core.carbon.wso2.org&quot;&gt; <stringProp name="HTTPSamper.xml_data">&lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:aut=&quot;http://authentication.services.core.carbon.wso2.org&quot;&gt;
&lt;soapenv:Header/&gt; &lt;soapenv:Header/&gt;
&lt;soapenv:Body&gt; &lt;soapenv:Body&gt;
@ -136,7 +141,7 @@
<elementProp name="HTTPsampler.Arguments" elementType="Arguments"> <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments"/> <collectionProp name="Arguments.arguments"/>
</elementProp> </elementProp>
<stringProp name="SoapSampler.URL_DATA">https://${host}:${https_port}/services/UserAdmin.UserAdminHttpsSoap11Endpoint/</stringProp> <stringProp name="SoapSampler.URL_DATA">https://${host}:${https_management_port}/services/UserAdmin.UserAdminHttpsSoap11Endpoint/</stringProp>
<stringProp name="HTTPSamper.xml_data">&lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:xsd=&quot;http://org.apache.axis2/xsd&quot; xmlns:xsd1=&quot;http://common.mgt.user.carbon.wso2.org/xsd&quot;&gt; <stringProp name="HTTPSamper.xml_data">&lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:xsd=&quot;http://org.apache.axis2/xsd&quot; xmlns:xsd1=&quot;http://common.mgt.user.carbon.wso2.org/xsd&quot;&gt;
&lt;soapenv:Header/&gt; &lt;soapenv:Header/&gt;
&lt;soapenv:Body&gt; &lt;soapenv:Body&gt;
@ -162,7 +167,7 @@
<elementProp name="HTTPsampler.Arguments" elementType="Arguments"> <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments"/> <collectionProp name="Arguments.arguments"/>
</elementProp> </elementProp>
<stringProp name="SoapSampler.URL_DATA">https://${host}:${https_port}/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/</stringProp> <stringProp name="SoapSampler.URL_DATA">https://${host}:${https_management_port}/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/</stringProp>
<stringProp name="HTTPSamper.xml_data">&lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:aut=&quot;http://authentication.services.core.carbon.wso2.org&quot;&gt; <stringProp name="HTTPSamper.xml_data">&lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:aut=&quot;http://authentication.services.core.carbon.wso2.org&quot;&gt;
&lt;soapenv:Header/&gt; &lt;soapenv:Header/&gt;
&lt;soapenv:Body&gt; &lt;soapenv:Body&gt;
@ -189,7 +194,7 @@
<elementProp name="HTTPsampler.Arguments" elementType="Arguments"> <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments"/> <collectionProp name="Arguments.arguments"/>
</elementProp> </elementProp>
<stringProp name="SoapSampler.URL_DATA">https://${host}:${https_port}/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/</stringProp> <stringProp name="SoapSampler.URL_DATA">https://${host}:${https_management_port}/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/</stringProp>
<stringProp name="HTTPSamper.xml_data">&lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:aut=&quot;http://authentication.services.core.carbon.wso2.org&quot;&gt; <stringProp name="HTTPSamper.xml_data">&lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:aut=&quot;http://authentication.services.core.carbon.wso2.org&quot;&gt;
&lt;soapenv:Header/&gt; &lt;soapenv:Header/&gt;
&lt;soapenv:Body&gt; &lt;soapenv:Body&gt;
@ -217,7 +222,7 @@
<elementProp name="HTTPsampler.Arguments" elementType="Arguments"> <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments"/> <collectionProp name="Arguments.arguments"/>
</elementProp> </elementProp>
<stringProp name="SoapSampler.URL_DATA">https://${host}:${https_port}/services/UserAdmin.UserAdminHttpsSoap11Endpoint/</stringProp> <stringProp name="SoapSampler.URL_DATA">https://${host}:${https_management_port}/services/UserAdmin.UserAdminHttpsSoap11Endpoint/</stringProp>
<stringProp name="HTTPSamper.xml_data">&lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:xsd=&quot;http://org.apache.axis2/xsd&quot; xmlns:xsd1=&quot;http://common.mgt.user.carbon.wso2.org/xsd&quot;&gt; <stringProp name="HTTPSamper.xml_data">&lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:xsd=&quot;http://org.apache.axis2/xsd&quot; xmlns:xsd1=&quot;http://common.mgt.user.carbon.wso2.org/xsd&quot;&gt;
&lt;soapenv:Header/&gt; &lt;soapenv:Header/&gt;
&lt;soapenv:Body&gt; &lt;soapenv:Body&gt;
@ -243,7 +248,7 @@
<elementProp name="HTTPsampler.Arguments" elementType="Arguments"> <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments"/> <collectionProp name="Arguments.arguments"/>
</elementProp> </elementProp>
<stringProp name="SoapSampler.URL_DATA">https://${host}:${https_port}/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/</stringProp> <stringProp name="SoapSampler.URL_DATA">https://${host}:${https_management_port}/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/</stringProp>
<stringProp name="HTTPSamper.xml_data">&lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:aut=&quot;http://authentication.services.core.carbon.wso2.org&quot;&gt; <stringProp name="HTTPSamper.xml_data">&lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:aut=&quot;http://authentication.services.core.carbon.wso2.org&quot;&gt;
&lt;soapenv:Header/&gt; &lt;soapenv:Header/&gt;
&lt;soapenv:Body&gt; &lt;soapenv:Body&gt;
@ -264,7 +269,7 @@
<elementProp name="HTTPsampler.Arguments" elementType="Arguments"> <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments"/> <collectionProp name="Arguments.arguments"/>
</elementProp> </elementProp>
<stringProp name="SoapSampler.URL_DATA">https://${host}:${https_port}/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/</stringProp> <stringProp name="SoapSampler.URL_DATA">https://${host}:${https_management_port}/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/</stringProp>
<stringProp name="HTTPSamper.xml_data">&lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:aut=&quot;http://authentication.services.core.carbon.wso2.org&quot;&gt; <stringProp name="HTTPSamper.xml_data">&lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:aut=&quot;http://authentication.services.core.carbon.wso2.org&quot;&gt;
&lt;soapenv:Header/&gt; &lt;soapenv:Header/&gt;
&lt;soapenv:Body&gt; &lt;soapenv:Body&gt;
@ -292,7 +297,7 @@
<elementProp name="HTTPsampler.Arguments" elementType="Arguments"> <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments"/> <collectionProp name="Arguments.arguments"/>
</elementProp> </elementProp>
<stringProp name="SoapSampler.URL_DATA">https://${host}:${https_port}/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/</stringProp> <stringProp name="SoapSampler.URL_DATA">https://${host}:${https_management_port}/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/</stringProp>
<stringProp name="HTTPSamper.xml_data">&lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:aut=&quot;http://authentication.services.core.carbon.wso2.org&quot;&gt; <stringProp name="HTTPSamper.xml_data">&lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:aut=&quot;http://authentication.services.core.carbon.wso2.org&quot;&gt;
&lt;soapenv:Header/&gt; &lt;soapenv:Header/&gt;
&lt;soapenv:Body&gt; &lt;soapenv:Body&gt;
@ -12420,9 +12425,9 @@ vars.put(&quot;base64encodedId&quot;,new String(encryptedId));</stringProp>
</ResultCollector> </ResultCollector>
<hashTree/> <hashTree/>
</hashTree> </hashTree>
<ResultSaver guiclass="ResultSaverGui" testclass="ResultSaver" testname="Save Responses to a file" enabled="false"> <ResultSaver guiclass="ResultSaverGui" testclass="ResultSaver" testname="Save Responses to a file" enabled="true">
<stringProp name="FileSaver.filename">Results</stringProp> <stringProp name="FileSaver.filename">Results</stringProp>
<boolProp name="FileSaver.errorsonly">false</boolProp> <boolProp name="FileSaver.errorsonly">true</boolProp>
<boolProp name="FileSaver.skipautonumber">false</boolProp> <boolProp name="FileSaver.skipautonumber">false</boolProp>
<boolProp name="FileSaver.skipsuffix">false</boolProp> <boolProp name="FileSaver.skipsuffix">false</boolProp>
<boolProp name="FileSaver.successonly">false</boolProp> <boolProp name="FileSaver.successonly">false</boolProp>

@ -1,28 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?> <?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> <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> <stringProp name="TestPlan.comments"></stringProp>
<boolProp name="TestPlan.functional_mode">false</boolProp> <boolProp name="TestPlan.functional_mode">false</boolProp>
<boolProp name="TestPlan.serialize_threadgroups">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"> <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"> <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>
</elementProp> </elementProp>
<stringProp name="TestPlan.user_define_classpath"></stringProp> <stringProp name="TestPlan.user_define_classpath"></stringProp>
</TestPlan> </TestPlan>
@ -88,9 +72,253 @@
<stringProp name="Argument.value">group_device</stringProp> <stringProp name="Argument.value">group_device</stringProp>
<stringProp name="Argument.metadata">=</stringProp> <stringProp name="Argument.metadata">=</stringProp>
</elementProp> </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> </collectionProp>
</Arguments> </Arguments>
<hashTree/> <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">&lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:aut=&quot;http://authentication.services.core.carbon.wso2.org&quot;&gt;
&lt;soapenv:Header/&gt;
&lt;soapenv:Body&gt;
&lt;aut:login&gt;
&lt;!--Optional:--&gt;
&lt;aut:username&gt;admin&lt;/aut:username&gt;
&lt;!--Optional:--&gt;
&lt;aut:password&gt;admin&lt;/aut:password&gt;
&lt;!--Optional:--&gt;
&lt;aut:remoteAddress&gt;127.0.0.1&lt;/aut:remoteAddress&gt;
&lt;/aut:login&gt;
&lt;/soapenv:Body&gt;
&lt;/soapenv:Envelope&gt;</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">&lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:ser=&quot;http://services.mgt.tenant.carbon.wso2.org&quot;&gt;
&lt;soapenv:Header/&gt;
&lt;soapenv:Body&gt;
&lt;ser:getTenant&gt;
&lt;!--Optional:--&gt;
&lt;ser:tenantDomain&gt;${domain_name}&lt;/ser:tenantDomain&gt;
&lt;/ser:getTenant&gt;
&lt;/soapenv:Body&gt;
&lt;/soapenv:Envelope&gt;</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()=&apos;active&apos;]/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">&lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:ser=&quot;http://services.mgt.tenant.carbon.wso2.org&quot; xmlns:xsd=&quot;http://beans.common.stratos.carbon.wso2.org/xsd&quot;&gt;
&lt;soapenv:Header/&gt;
&lt;soapenv:Body&gt;
&lt;ser:addTenant&gt;
&lt;!--Optional:--&gt;
&lt;ser:tenantInfoBean&gt;
&lt;!--Optional:--&gt;
&lt;xsd:active&gt;1&lt;/xsd:active&gt;
&lt;!--Optional:--&gt;
&lt;xsd:admin&gt;${tenant_user_name}&lt;/xsd:admin&gt;
&lt;!--Optional:--&gt;
&lt;xsd:adminPassword&gt;${password}&lt;/xsd:adminPassword&gt;
&lt;!--Optional:--&gt;
&lt;xsd:createdDate&gt;${createdDate}&lt;/xsd:createdDate&gt;
&lt;!--Optional:--&gt;
&lt;xsd:email&gt;${email}&lt;/xsd:email&gt;
&lt;!--Optional:--&gt;
&lt;xsd:firstname&gt;${firstName}&lt;/xsd:firstname&gt;
&lt;!--Optional:--&gt;
&lt;xsd:lastname&gt;${lastName}&lt;/xsd:lastname&gt;
&lt;!--Optional:--&gt;
&lt;xsd:tenantDomain&gt;${domain_name}&lt;/xsd:tenantDomain&gt;
&lt;!--Optional:--&gt;
&lt;xsd:tenantId&gt;0&lt;/xsd:tenantId&gt;
&lt;!--Optional:--&gt;
&lt;xsd:usagePlan&gt;${usagePlan}&lt;/xsd:usagePlan&gt;
&lt;/ser:tenantInfoBean&gt;
&lt;/ser:addTenant&gt;
&lt;/soapenv:Body&gt;
&lt;/soapenv:Envelope&gt;</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">&lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:aut=&quot;http://authentication.services.core.carbon.wso2.org&quot;&gt;
&lt;soapenv:Header/&gt;
&lt;soapenv:Body&gt;
&lt;aut:logout/&gt;
&lt;/soapenv:Body&gt;
&lt;/soapenv:Envelope&gt;</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"> <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Group Management" enabled="true">
<stringProp name="ThreadGroup.on_sample_error">continue</stringProp> <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true"> <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">

Loading…
Cancel
Save