|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<jmeterTestPlan version="1.2" properties="2.9" jmeter="3.0 r1743807">
|
|
|
|
|
<jmeterTestPlan version="1.2" properties="3.1" jmeter="3.1 r1770033">
|
|
|
|
|
<hashTree>
|
|
|
|
|
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="App Manager Test Plan" enabled="true">
|
|
|
|
|
<stringProp name="TestPlan.comments"></stringProp>
|
|
|
|
@ -1752,6 +1752,580 @@ vars.put("encoded", encoded);</stringProp>
|
|
|
|
|
</HeaderManager>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
</hashTree>
|
|
|
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Upload a mobile app" enabled="true">
|
|
|
|
|
<elementProp name="HTTPsampler.Files" elementType="HTTPFileArgs">
|
|
|
|
|
<collectionProp name="HTTPFileArgs.files">
|
|
|
|
|
<elementProp name="${script-path}test.apk" elementType="HTTPFileArg">
|
|
|
|
|
<stringProp name="File.path">${script-path}test.apk</stringProp>
|
|
|
|
|
<stringProp name="File.paramname">file</stringProp>
|
|
|
|
|
<stringProp name="File.mimetype">application/vnd.android.package-archive,.apk</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
</collectionProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" enabled="true">
|
|
|
|
|
<collectionProp name="Arguments.arguments"/>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<stringProp name="HTTPSampler.domain">${server}</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.port">${port}</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.protocol">https</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.path">publisher/api/mobileapp/upload</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.method">POST</stringProp>
|
|
|
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.DO_MULTIPART_POST">true</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.monitor">false</boolProp>
|
|
|
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
|
|
</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">X-CSRF-Token</stringProp>
|
|
|
|
|
<stringProp name="Header.value">${X-CSRF-Token}</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="" elementType="Header">
|
|
|
|
|
<stringProp name="Header.name">X-Requested-With</stringProp>
|
|
|
|
|
<stringProp name="Header.value">XmlHttpRequest</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
</collectionProp>
|
|
|
|
|
</HeaderManager>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="Regular Expression Extractor" enabled="true">
|
|
|
|
|
<stringProp name="RegexExtractor.useHeaders">false</stringProp>
|
|
|
|
|
<stringProp name="RegexExtractor.refname">response</stringProp>
|
|
|
|
|
<stringProp name="RegexExtractor.regex">(?s)(^.*)</stringProp>
|
|
|
|
|
<stringProp name="RegexExtractor.template">$1$</stringProp>
|
|
|
|
|
<stringProp name="RegexExtractor.default"></stringProp>
|
|
|
|
|
<stringProp name="RegexExtractor.match_number">1</stringProp>
|
|
|
|
|
</RegexExtractor>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
|
|
<collectionProp name="Asserion.test_strings">
|
|
|
|
|
<stringProp name="1289597910">"package" : "com.apkpure.aegon", "version" : "1.1.10"</stringProp>
|
|
|
|
|
</collectionProp>
|
|
|
|
|
<stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
|
|
|
<intProp name="Assertion.test_type">16</intProp>
|
|
|
|
|
</ResponseAssertion>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
</hashTree>
|
|
|
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Add a mobile app with role restriction" enabled="true">
|
|
|
|
|
<elementProp name="HTTPsampler.Files" elementType="HTTPFileArgs">
|
|
|
|
|
<collectionProp name="HTTPFileArgs.files">
|
|
|
|
|
<elementProp name="${script-path}image.png" elementType="HTTPFileArg">
|
|
|
|
|
<stringProp name="File.path">${script-path}image.png</stringProp>
|
|
|
|
|
<stringProp name="File.paramname">bannerFile</stringProp>
|
|
|
|
|
<stringProp name="File.mimetype">image/png</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="${script-path}image.png" elementType="HTTPFileArg">
|
|
|
|
|
<stringProp name="File.path">${script-path}image.png</stringProp>
|
|
|
|
|
<stringProp name="File.paramname">screenshot1File</stringProp>
|
|
|
|
|
<stringProp name="File.mimetype">image/png</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="${script-path}image.png" elementType="HTTPFileArg">
|
|
|
|
|
<stringProp name="File.path">${script-path}image.png</stringProp>
|
|
|
|
|
<stringProp name="File.paramname">iconFile</stringProp>
|
|
|
|
|
<stringProp name="File.mimetype">image/png</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
</collectionProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" enabled="true">
|
|
|
|
|
<collectionProp name="Arguments.arguments">
|
|
|
|
|
<elementProp name="appmeta" elementType="HTTPArgument">
|
|
|
|
|
<boolProp name="HTTPArgument.always_encode">true</boolProp>
|
|
|
|
|
<stringProp name="Argument.value">${response}</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
<boolProp name="HTTPArgument.use_equals">true</boolProp>
|
|
|
|
|
<stringProp name="Argument.name">appmeta</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="provider" elementType="HTTPArgument">
|
|
|
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
|
|
<stringProp name="Argument.value">1WSO2Mobile</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
<boolProp name="HTTPArgument.use_equals">true</boolProp>
|
|
|
|
|
<stringProp name="Argument.name">provider</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="markettype" elementType="HTTPArgument">
|
|
|
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
|
|
<stringProp name="Argument.value">enterprise</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
<boolProp name="HTTPArgument.use_equals">true</boolProp>
|
|
|
|
|
<stringProp name="Argument.name">markettype</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="platform" elementType="HTTPArgument">
|
|
|
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
|
|
<stringProp name="Argument.value">android</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
<boolProp name="HTTPArgument.use_equals">true</boolProp>
|
|
|
|
|
<stringProp name="Argument.name">platform</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="name" elementType="HTTPArgument">
|
|
|
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
|
|
<stringProp name="Argument.value">${mobile-app}</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
<boolProp name="HTTPArgument.use_equals">true</boolProp>
|
|
|
|
|
<stringProp name="Argument.name">name</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="displayName" elementType="HTTPArgument">
|
|
|
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
|
|
<stringProp name="Argument.value">${mobile-app}</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
<boolProp name="HTTPArgument.use_equals">true</boolProp>
|
|
|
|
|
<stringProp name="Argument.name">displayName</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="description" elementType="HTTPArgument">
|
|
|
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
|
|
<stringProp name="Argument.value">${mobile-app}</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
<boolProp name="HTTPArgument.use_equals">true</boolProp>
|
|
|
|
|
<stringProp name="Argument.name">description</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="version" elementType="HTTPArgument">
|
|
|
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
|
|
<stringProp name="Argument.value">1.1.10</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
<boolProp name="HTTPArgument.use_equals">true</boolProp>
|
|
|
|
|
<stringProp name="Argument.name">version</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="category" elementType="HTTPArgument">
|
|
|
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
|
|
<stringProp name="Argument.value">business</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
<boolProp name="HTTPArgument.use_equals">true</boolProp>
|
|
|
|
|
<stringProp name="Argument.name">category</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="mobileapp" elementType="HTTPArgument">
|
|
|
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
|
|
<stringProp name="Argument.value">mobileapp</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
<boolProp name="HTTPArgument.use_equals">true</boolProp>
|
|
|
|
|
<stringProp name="Argument.name">mobileapp</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="visibility" elementType="HTTPArgument">
|
|
|
|
|
<boolProp name="HTTPArgument.always_encode">true</boolProp>
|
|
|
|
|
<stringProp name="Argument.value">admin</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
<boolProp name="HTTPArgument.use_equals">true</boolProp>
|
|
|
|
|
<stringProp name="Argument.name">visibility</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
</collectionProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<stringProp name="HTTPSampler.domain">${server}</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.port">${port}</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.protocol">https</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.path">publisher/api/asset/mobileapp</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.method">POST</stringProp>
|
|
|
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.DO_MULTIPART_POST">true</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.monitor">false</boolProp>
|
|
|
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
|
|
</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">X-CSRF-Token</stringProp>
|
|
|
|
|
<stringProp name="Header.value">${X-CSRF-Token}</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="" elementType="Header">
|
|
|
|
|
<stringProp name="Header.name">X-Requested-With</stringProp>
|
|
|
|
|
<stringProp name="Header.value">XmlHttpRequest</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
</collectionProp>
|
|
|
|
|
</HeaderManager>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
|
|
<collectionProp name="Asserion.test_strings">
|
|
|
|
|
<stringProp name="-1042603845">"ok" : "true", "message" : "Asset created."</stringProp>
|
|
|
|
|
</collectionProp>
|
|
|
|
|
<stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
|
|
|
<intProp name="Assertion.test_type">16</intProp>
|
|
|
|
|
</ResponseAssertion>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="Regular Expression Extractor" enabled="true">
|
|
|
|
|
<stringProp name="RegexExtractor.useHeaders">false</stringProp>
|
|
|
|
|
<stringProp name="RegexExtractor.refname">id</stringProp>
|
|
|
|
|
<stringProp name="RegexExtractor.regex">"id" : "(.*)"</stringProp>
|
|
|
|
|
<stringProp name="RegexExtractor.template">$1$</stringProp>
|
|
|
|
|
<stringProp name="RegexExtractor.default"></stringProp>
|
|
|
|
|
<stringProp name="RegexExtractor.match_number"></stringProp>
|
|
|
|
|
</RegexExtractor>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
</hashTree>
|
|
|
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Check whether role restriction exists" enabled="true">
|
|
|
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" enabled="true">
|
|
|
|
|
<collectionProp name="Arguments.arguments"/>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<stringProp name="HTTPSampler.domain">${server}</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.port">${port}</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.protocol">https</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.path">publisher/api/asset/mobileapp/${id}</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.method">GET</stringProp>
|
|
|
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.DO_MULTIPART_POST">true</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.monitor">false</boolProp>
|
|
|
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
|
|
</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">X-CSRF-Token</stringProp>
|
|
|
|
|
<stringProp name="Header.value">${X-CSRF-Token}</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="" elementType="Header">
|
|
|
|
|
<stringProp name="Header.name">X-Requested-With</stringProp>
|
|
|
|
|
<stringProp name="Header.value">XmlHttpRequest</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
</collectionProp>
|
|
|
|
|
</HeaderManager>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
|
|
<collectionProp name="Asserion.test_strings">
|
|
|
|
|
<stringProp name="-1653359365">"overview_visibility" : "admin"</stringProp>
|
|
|
|
|
</collectionProp>
|
|
|
|
|
<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>
|
|
|
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete the mobile app with role restriction" enabled="true">
|
|
|
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" enabled="true">
|
|
|
|
|
<collectionProp name="Arguments.arguments"/>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<stringProp name="HTTPSampler.domain">${server}</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.port">${port}</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.protocol">https</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.path">publisher/api/mobile/delete/${id}</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.method">DELETE</stringProp>
|
|
|
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.DO_MULTIPART_POST">true</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.monitor">false</boolProp>
|
|
|
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
|
|
</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">X-CSRF-Token</stringProp>
|
|
|
|
|
<stringProp name="Header.value">${X-CSRF-Token}</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="" elementType="Header">
|
|
|
|
|
<stringProp name="Header.name">X-Requested-With</stringProp>
|
|
|
|
|
<stringProp name="Header.value">XmlHttpRequest</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
</collectionProp>
|
|
|
|
|
</HeaderManager>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
</hashTree>
|
|
|
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Upload a mobile app" enabled="true">
|
|
|
|
|
<elementProp name="HTTPsampler.Files" elementType="HTTPFileArgs">
|
|
|
|
|
<collectionProp name="HTTPFileArgs.files">
|
|
|
|
|
<elementProp name="${script-path}test.apk" elementType="HTTPFileArg">
|
|
|
|
|
<stringProp name="File.path">${script-path}test.apk</stringProp>
|
|
|
|
|
<stringProp name="File.paramname">file</stringProp>
|
|
|
|
|
<stringProp name="File.mimetype">application/vnd.android.package-archive,.apk</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
</collectionProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" enabled="true">
|
|
|
|
|
<collectionProp name="Arguments.arguments"/>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<stringProp name="HTTPSampler.domain">${server}</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.port">${port}</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.protocol">https</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.path">publisher/api/mobileapp/upload</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.method">POST</stringProp>
|
|
|
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.DO_MULTIPART_POST">true</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.monitor">false</boolProp>
|
|
|
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
|
|
</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">X-CSRF-Token</stringProp>
|
|
|
|
|
<stringProp name="Header.value">${X-CSRF-Token}</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="" elementType="Header">
|
|
|
|
|
<stringProp name="Header.name">X-Requested-With</stringProp>
|
|
|
|
|
<stringProp name="Header.value">XmlHttpRequest</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
</collectionProp>
|
|
|
|
|
</HeaderManager>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="Regular Expression Extractor" enabled="true">
|
|
|
|
|
<stringProp name="RegexExtractor.useHeaders">false</stringProp>
|
|
|
|
|
<stringProp name="RegexExtractor.refname">response</stringProp>
|
|
|
|
|
<stringProp name="RegexExtractor.regex">(?s)(^.*)</stringProp>
|
|
|
|
|
<stringProp name="RegexExtractor.template">$1$</stringProp>
|
|
|
|
|
<stringProp name="RegexExtractor.default"></stringProp>
|
|
|
|
|
<stringProp name="RegexExtractor.match_number">1</stringProp>
|
|
|
|
|
</RegexExtractor>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
|
|
<collectionProp name="Asserion.test_strings">
|
|
|
|
|
<stringProp name="1289597910">"package" : "com.apkpure.aegon", "version" : "1.1.10"</stringProp>
|
|
|
|
|
</collectionProp>
|
|
|
|
|
<stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
|
|
|
<intProp name="Assertion.test_type">16</intProp>
|
|
|
|
|
</ResponseAssertion>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
</hashTree>
|
|
|
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Add a mobile app without role restriction" enabled="true">
|
|
|
|
|
<elementProp name="HTTPsampler.Files" elementType="HTTPFileArgs">
|
|
|
|
|
<collectionProp name="HTTPFileArgs.files">
|
|
|
|
|
<elementProp name="${script-path}image.png" elementType="HTTPFileArg">
|
|
|
|
|
<stringProp name="File.path">${script-path}image.png</stringProp>
|
|
|
|
|
<stringProp name="File.paramname">bannerFile</stringProp>
|
|
|
|
|
<stringProp name="File.mimetype">image/png</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="${script-path}image.png" elementType="HTTPFileArg">
|
|
|
|
|
<stringProp name="File.path">${script-path}image.png</stringProp>
|
|
|
|
|
<stringProp name="File.paramname">screenshot1File</stringProp>
|
|
|
|
|
<stringProp name="File.mimetype">image/png</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="${script-path}image.png" elementType="HTTPFileArg">
|
|
|
|
|
<stringProp name="File.path">${script-path}image.png</stringProp>
|
|
|
|
|
<stringProp name="File.paramname">iconFile</stringProp>
|
|
|
|
|
<stringProp name="File.mimetype">image/png</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
</collectionProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" enabled="true">
|
|
|
|
|
<collectionProp name="Arguments.arguments">
|
|
|
|
|
<elementProp name="appmeta" elementType="HTTPArgument">
|
|
|
|
|
<boolProp name="HTTPArgument.always_encode">true</boolProp>
|
|
|
|
|
<stringProp name="Argument.value">${response}</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
<boolProp name="HTTPArgument.use_equals">true</boolProp>
|
|
|
|
|
<stringProp name="Argument.name">appmeta</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="provider" elementType="HTTPArgument">
|
|
|
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
|
|
<stringProp name="Argument.value">1WSO2Mobile</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
<boolProp name="HTTPArgument.use_equals">true</boolProp>
|
|
|
|
|
<stringProp name="Argument.name">provider</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="markettype" elementType="HTTPArgument">
|
|
|
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
|
|
<stringProp name="Argument.value">enterprise</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
<boolProp name="HTTPArgument.use_equals">true</boolProp>
|
|
|
|
|
<stringProp name="Argument.name">markettype</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="platform" elementType="HTTPArgument">
|
|
|
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
|
|
<stringProp name="Argument.value">android</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
<boolProp name="HTTPArgument.use_equals">true</boolProp>
|
|
|
|
|
<stringProp name="Argument.name">platform</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="name" elementType="HTTPArgument">
|
|
|
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
|
|
<stringProp name="Argument.value">${mobile-app}</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
<boolProp name="HTTPArgument.use_equals">true</boolProp>
|
|
|
|
|
<stringProp name="Argument.name">name</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="displayName" elementType="HTTPArgument">
|
|
|
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
|
|
<stringProp name="Argument.value">${mobile-app}</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
<boolProp name="HTTPArgument.use_equals">true</boolProp>
|
|
|
|
|
<stringProp name="Argument.name">displayName</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="description" elementType="HTTPArgument">
|
|
|
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
|
|
<stringProp name="Argument.value">${mobile-app}</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
<boolProp name="HTTPArgument.use_equals">true</boolProp>
|
|
|
|
|
<stringProp name="Argument.name">description</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="version" elementType="HTTPArgument">
|
|
|
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
|
|
<stringProp name="Argument.value">1.1.10</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
<boolProp name="HTTPArgument.use_equals">true</boolProp>
|
|
|
|
|
<stringProp name="Argument.name">version</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="category" elementType="HTTPArgument">
|
|
|
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
|
|
<stringProp name="Argument.value">business</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
<boolProp name="HTTPArgument.use_equals">true</boolProp>
|
|
|
|
|
<stringProp name="Argument.name">category</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="mobileapp" elementType="HTTPArgument">
|
|
|
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
|
|
<stringProp name="Argument.value">mobileapp</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
<boolProp name="HTTPArgument.use_equals">true</boolProp>
|
|
|
|
|
<stringProp name="Argument.name">mobileapp</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="visibility" elementType="HTTPArgument">
|
|
|
|
|
<boolProp name="HTTPArgument.always_encode">true</boolProp>
|
|
|
|
|
<stringProp name="Argument.value"></stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
<boolProp name="HTTPArgument.use_equals">true</boolProp>
|
|
|
|
|
<stringProp name="Argument.name">visibility</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
</collectionProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<stringProp name="HTTPSampler.domain">${server}</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.port">${port}</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.protocol">https</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.path">publisher/api/asset/mobileapp</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.method">POST</stringProp>
|
|
|
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.DO_MULTIPART_POST">true</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.monitor">false</boolProp>
|
|
|
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
|
|
</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">X-CSRF-Token</stringProp>
|
|
|
|
|
<stringProp name="Header.value">${X-CSRF-Token}</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="" elementType="Header">
|
|
|
|
|
<stringProp name="Header.name">X-Requested-With</stringProp>
|
|
|
|
|
<stringProp name="Header.value">XmlHttpRequest</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
</collectionProp>
|
|
|
|
|
</HeaderManager>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
|
|
<collectionProp name="Asserion.test_strings">
|
|
|
|
|
<stringProp name="-1042603845">"ok" : "true", "message" : "Asset created."</stringProp>
|
|
|
|
|
</collectionProp>
|
|
|
|
|
<stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
|
|
|
<intProp name="Assertion.test_type">16</intProp>
|
|
|
|
|
</ResponseAssertion>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="Regular Expression Extractor" enabled="true">
|
|
|
|
|
<stringProp name="RegexExtractor.useHeaders">false</stringProp>
|
|
|
|
|
<stringProp name="RegexExtractor.refname">id</stringProp>
|
|
|
|
|
<stringProp name="RegexExtractor.regex">"id" : "(.*)"</stringProp>
|
|
|
|
|
<stringProp name="RegexExtractor.template">$1$</stringProp>
|
|
|
|
|
<stringProp name="RegexExtractor.default"></stringProp>
|
|
|
|
|
<stringProp name="RegexExtractor.match_number"></stringProp>
|
|
|
|
|
</RegexExtractor>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
</hashTree>
|
|
|
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Check whether role restriction exists" enabled="true">
|
|
|
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" enabled="true">
|
|
|
|
|
<collectionProp name="Arguments.arguments"/>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<stringProp name="HTTPSampler.domain">${server}</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.port">${port}</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.protocol">https</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.path">publisher/api/asset/mobileapp/${id}</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.method">GET</stringProp>
|
|
|
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.DO_MULTIPART_POST">true</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.monitor">false</boolProp>
|
|
|
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
|
|
</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">X-CSRF-Token</stringProp>
|
|
|
|
|
<stringProp name="Header.value">${X-CSRF-Token}</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="" elementType="Header">
|
|
|
|
|
<stringProp name="Header.name">X-Requested-With</stringProp>
|
|
|
|
|
<stringProp name="Header.value">XmlHttpRequest</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
</collectionProp>
|
|
|
|
|
</HeaderManager>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
|
|
<collectionProp name="Asserion.test_strings">
|
|
|
|
|
<stringProp name="-1653359365">"overview_visibility" : "admin"</stringProp>
|
|
|
|
|
</collectionProp>
|
|
|
|
|
<stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
|
|
|
<intProp name="Assertion.test_type">6</intProp>
|
|
|
|
|
</ResponseAssertion>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
</hashTree>
|
|
|
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete the mobile app without role restriction" enabled="true">
|
|
|
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" enabled="true">
|
|
|
|
|
<collectionProp name="Arguments.arguments"/>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<stringProp name="HTTPSampler.domain">${server}</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.port">${port}</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.protocol">https</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.path">publisher/api/mobile/delete/${id}</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.method">DELETE</stringProp>
|
|
|
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.DO_MULTIPART_POST">true</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.monitor">false</boolProp>
|
|
|
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
|
|
</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">X-CSRF-Token</stringProp>
|
|
|
|
|
<stringProp name="Header.value">${X-CSRF-Token}</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
<elementProp name="" elementType="Header">
|
|
|
|
|
<stringProp name="Header.name">X-Requested-With</stringProp>
|
|
|
|
|
<stringProp name="Header.value">XmlHttpRequest</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
</collectionProp>
|
|
|
|
|
</HeaderManager>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
</hashTree>
|
|
|
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Log out from publisher" enabled="true">
|
|
|
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" enabled="true">
|
|
|
|
|
<collectionProp name="Arguments.arguments"/>
|
|
|
|
|