Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
1253 righe
83 KiB
XML
1253 righe
83 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<jmeterTestPlan version="1.2" properties="3.2" jmeter="3.2 r1790748">
|
|
<hashTree>
|
|
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" 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>
|
|
<stringProp name="TestPlan.user_define_classpath"></stringProp>
|
|
</TestPlan>
|
|
<hashTree>
|
|
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group" enabled="true">
|
|
<stringProp name="ThreadGroup.on_sample_error">startnextloop</stringProp>
|
|
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
|
|
<boolProp name="LoopController.continue_forever">false</boolProp>
|
|
<intProp name="LoopController.loops">-1</intProp>
|
|
</elementProp>
|
|
<stringProp name="ThreadGroup.num_threads">1</stringProp>
|
|
<stringProp name="ThreadGroup.ramp_time">0</stringProp>
|
|
<longProp name="ThreadGroup.start_time">1467960198000</longProp>
|
|
<longProp name="ThreadGroup.end_time">1467960198000</longProp>
|
|
<boolProp name="ThreadGroup.scheduler">false</boolProp>
|
|
<stringProp name="ThreadGroup.duration"></stringProp>
|
|
<stringProp name="ThreadGroup.delay"></stringProp>
|
|
</ThreadGroup>
|
|
<hashTree>
|
|
<Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
<collectionProp name="Arguments.arguments">
|
|
<elementProp name="password" elementType="Argument">
|
|
<stringProp name="Argument.name">password</stringProp>
|
|
<stringProp name="Argument.value">etraffic2008</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
<elementProp name="date" elementType="Argument">
|
|
<stringProp name="Argument.name">date</stringProp>
|
|
<stringProp name="Argument.value">2017-11-25</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
<elementProp name="user" elementType="Argument">
|
|
<stringProp name="Argument.name">user</stringProp>
|
|
<stringProp name="Argument.value">web_www</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
<elementProp name="server" elementType="Argument">
|
|
<stringProp name="Argument.name">server</stringProp>
|
|
<stringProp name="Argument.value">http://localhost:8080/soap/rs</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</Arguments>
|
|
<hashTree/>
|
|
<ConfigTestElement guiclass="HttpDefaultsGui" testclass="ConfigTestElement" testname="HTTP Request Defaults" enabled="true">
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
<collectionProp name="Arguments.arguments"/>
|
|
</elementProp>
|
|
<stringProp name="HTTPSampler.domain"></stringProp>
|
|
<stringProp name="HTTPSampler.port"></stringProp>
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
<stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
|
|
<stringProp name="HTTPSampler.path"></stringProp>
|
|
<stringProp name="HTTPSampler.concurrentPool">4</stringProp>
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
</ConfigTestElement>
|
|
<hashTree/>
|
|
<AuthManager guiclass="AuthPanel" testclass="AuthManager" testname="HTTP Authorization Manager" enabled="true">
|
|
<collectionProp name="AuthManager.auth_list">
|
|
<elementProp name="" elementType="Authorization">
|
|
<stringProp name="Authorization.url"></stringProp>
|
|
<stringProp name="Authorization.username">${__V(user)}</stringProp>
|
|
<stringProp name="Authorization.password">${__V(password)}</stringProp>
|
|
<stringProp name="Authorization.domain"></stringProp>
|
|
<stringProp name="Authorization.realm"></stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
<boolProp name="AuthManager.clearEachIteration">true</boolProp>
|
|
</AuthManager>
|
|
<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/xml; charset=UTF-8</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</HeaderManager>
|
|
<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.implementation">org.apache.jmeter.protocol.http.control.HC4CookieHandler</stringProp>
|
|
</CookieManager>
|
|
<hashTree/>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="echo" enabled="true">
|
|
<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"><?xml version="1.0" encoding="UTF-8"?>
|
|
<EchoRequest>
|
|
<message>Test</message>
|
|
</EchoRequest></stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
<stringProp name="HTTPSampler.domain"></stringProp>
|
|
<stringProp name="HTTPSampler.port"></stringProp>
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
<stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
|
|
<stringProp name="HTTPSampler.path">${__V(server)}/sales/echo</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">false</boolProp>
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
|
|
<hashTree/>
|
|
<XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Проверка ответа" enabled="true">
|
|
<boolProp name="XPath.negate">false</boolProp>
|
|
<stringProp name="XPath.xpath">/EchoResponse/Body/message/text()='Test'</stringProp>
|
|
<boolProp name="XPath.validate">false</boolProp>
|
|
<boolProp name="XPath.whitespace">false</boolProp>
|
|
<boolProp name="XPath.tolerant">false</boolProp>
|
|
<boolProp name="XPath.namespace">false</boolProp>
|
|
</XPathAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="dispatchStations" enabled="true">
|
|
<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"><?xml version="1.0" encoding="UTF-8"?>
|
|
<GetDispatchStationsRequest/></stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
<stringProp name="HTTPSampler.domain"></stringProp>
|
|
<stringProp name="HTTPSampler.port"></stringProp>
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
<stringProp name="HTTPSampler.path">${__V(server)}/sales/getDispatchStations</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">false</boolProp>
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
|
|
<hashTree/>
|
|
<XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Кол-во станций > 0" enabled="true">
|
|
<boolProp name="XPath.negate">false</boolProp>
|
|
<stringProp name="XPath.xpath">count(/GetDispatchStationsResponse/Body/Station)>0</stringProp>
|
|
<boolProp name="XPath.validate">false</boolProp>
|
|
<boolProp name="XPath.whitespace">false</boolProp>
|
|
<boolProp name="XPath.tolerant">false</boolProp>
|
|
<boolProp name="XPath.namespace">false</boolProp>
|
|
</XPathAssertion>
|
|
<hashTree/>
|
|
<XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="Получить все ID станций" enabled="true">
|
|
<stringProp name="XPathExtractor.default"></stringProp>
|
|
<stringProp name="XPathExtractor.refname">dispatchStationIds</stringProp>
|
|
<stringProp name="XPathExtractor.xpathQuery">/GetDispatchStationsResponse/Body/Station/id</stringProp>
|
|
<boolProp name="XPathExtractor.validate">false</boolProp>
|
|
<boolProp name="XPathExtractor.tolerant">false</boolProp>
|
|
<boolProp name="XPathExtractor.namespace">false</boolProp>
|
|
<stringProp name="XPathExtractor.matchNumber">-1</stringProp>
|
|
</XPathExtractor>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<ForeachController guiclass="ForeachControlPanel" testclass="ForeachController" testname="Для каждой станции отправления" enabled="true">
|
|
<stringProp name="ForeachController.inputVal">dispatchStationIds</stringProp>
|
|
<stringProp name="ForeachController.returnVal">dispatchStationId</stringProp>
|
|
<boolProp name="ForeachController.useSeparator">true</boolProp>
|
|
</ForeachController>
|
|
<hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="arrivalStation" enabled="true">
|
|
<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"><?xml version="1.0" encoding="UTF-8"?>
|
|
<GetArrivalStationsRequest>
|
|
<dispatchStationId>${dispatchStationId}</dispatchStationId>
|
|
</GetArrivalStationsRequest></stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
<stringProp name="HTTPSampler.domain"></stringProp>
|
|
<stringProp name="HTTPSampler.port"></stringProp>
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
<stringProp name="HTTPSampler.path">${__V(server)}/sales/getArrivalStations</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">false</boolProp>
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
|
|
<hashTree/>
|
|
<XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="Получить все ID станций" enabled="true">
|
|
<stringProp name="XPathExtractor.default"></stringProp>
|
|
<stringProp name="XPathExtractor.refname">arrivalStationIds</stringProp>
|
|
<stringProp name="XPathExtractor.xpathQuery">/GetArrivalStationsResponse/Body/Station/id</stringProp>
|
|
<boolProp name="XPathExtractor.validate">false</boolProp>
|
|
<boolProp name="XPathExtractor.tolerant">false</boolProp>
|
|
<boolProp name="XPathExtractor.namespace">false</boolProp>
|
|
<stringProp name="XPathExtractor.matchNumber">-1</stringProp>
|
|
</XPathExtractor>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<ForeachController guiclass="ForeachControlPanel" testclass="ForeachController" testname="Для каждой станции назначения" enabled="true">
|
|
<stringProp name="ForeachController.inputVal">arrivalStationIds</stringProp>
|
|
<stringProp name="ForeachController.returnVal">arrivalStationId</stringProp>
|
|
<boolProp name="ForeachController.useSeparator">true</boolProp>
|
|
</ForeachController>
|
|
<hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="searchTrips" enabled="true">
|
|
<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"><?xml version="1.0" encoding="UTF-8"?>
|
|
<SearchTripsRequest>
|
|
<dispatchStationId>${dispatchStationId}</dispatchStationId>
|
|
<arrivalStationId>${arrivalStationId}</arrivalStationId>
|
|
<date>${__V(date)}</date>
|
|
</SearchTripsRequest>
|
|
</stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
<stringProp name="HTTPSampler.domain"></stringProp>
|
|
<stringProp name="HTTPSampler.port"></stringProp>
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
<stringProp name="HTTPSampler.path">${__V(server)}/sales/searchTrips</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">false</boolProp>
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
|
|
<hashTree/>
|
|
<XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="Получить все ID рейсов" enabled="true">
|
|
<stringProp name="XPathExtractor.default"></stringProp>
|
|
<stringProp name="XPathExtractor.refname">tripIds</stringProp>
|
|
<stringProp name="XPathExtractor.xpathQuery">/SearchTripsResponse/Body/Trip[status='ON_SALE']/id</stringProp>
|
|
<boolProp name="XPathExtractor.validate">false</boolProp>
|
|
<boolProp name="XPathExtractor.tolerant">false</boolProp>
|
|
<boolProp name="XPathExtractor.namespace">false</boolProp>
|
|
<stringProp name="XPathExtractor.matchNumber">-1</stringProp>
|
|
</XPathExtractor>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<ForeachController guiclass="ForeachControlPanel" testclass="ForeachController" testname="Для каждого рейса" enabled="true">
|
|
<stringProp name="ForeachController.inputVal">tripIds</stringProp>
|
|
<stringProp name="ForeachController.returnVal">tripId</stringProp>
|
|
<boolProp name="ForeachController.useSeparator">true</boolProp>
|
|
<stringProp name="ForeachController.endIndex">1</stringProp>
|
|
</ForeachController>
|
|
<hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Запрос остановочных пунктов" enabled="true">
|
|
<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"><?xml version="1.0" encoding="UTF-8"?>
|
|
<GetTripStopsRequest>
|
|
<tripId>${tripId}</tripId>
|
|
</GetTripStopsRequest></stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
<stringProp name="HTTPSampler.domain"></stringProp>
|
|
<stringProp name="HTTPSampler.port"></stringProp>
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
<stringProp name="HTTPSampler.path">${__V(server)}/sales/getTripStops</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">false</boolProp>
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
|
|
<hashTree/>
|
|
<XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Кол-во остановок > 0" enabled="true">
|
|
<boolProp name="XPath.negate">false</boolProp>
|
|
<stringProp name="XPath.xpath">count(/GetTripStopsResponse/Body/Stop)>0</stringProp>
|
|
<boolProp name="XPath.validate">false</boolProp>
|
|
<boolProp name="XPath.whitespace">false</boolProp>
|
|
<boolProp name="XPath.tolerant">false</boolProp>
|
|
<boolProp name="XPath.namespace">false</boolProp>
|
|
</XPathAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Запрос типов билетов" enabled="true">
|
|
<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"><?xml version="1.0" encoding="UTF-8"?>
|
|
<GetTicketTypesRequest>
|
|
<tripId>${tripId}</tripId>
|
|
<dispatchStationId>${dispatchStationId}</dispatchStationId>
|
|
<arrivalStationId>${arrivalStationId}</arrivalStationId> 
|
|
</GetTicketTypesRequest></stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
<stringProp name="HTTPSampler.domain"></stringProp>
|
|
<stringProp name="HTTPSampler.port"></stringProp>
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
<stringProp name="HTTPSampler.path">${__V(server)}/sales/getTicketTypes</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">false</boolProp>
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
|
|
<hashTree/>
|
|
<XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Кол-во типов билетов > 0" enabled="true">
|
|
<boolProp name="XPath.negate">false</boolProp>
|
|
<stringProp name="XPath.xpath">count(/GetTicketTypesResponse/Body/TicketType)>0</stringProp>
|
|
<boolProp name="XPath.validate">false</boolProp>
|
|
<boolProp name="XPath.whitespace">false</boolProp>
|
|
<boolProp name="XPath.tolerant">false</boolProp>
|
|
<boolProp name="XPath.namespace">false</boolProp>
|
|
</XPathAssertion>
|
|
<hashTree/>
|
|
<XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="Получить все ID типов билетов" enabled="true">
|
|
<stringProp name="XPathExtractor.default"></stringProp>
|
|
<stringProp name="XPathExtractor.refname">ticketTypeIds</stringProp>
|
|
<stringProp name="XPathExtractor.xpathQuery">/GetTicketTypesResponse/Body/TicketType/id</stringProp>
|
|
<boolProp name="XPathExtractor.validate">false</boolProp>
|
|
<boolProp name="XPathExtractor.tolerant">false</boolProp>
|
|
<boolProp name="XPathExtractor.namespace">false</boolProp>
|
|
<stringProp name="XPathExtractor.matchNumber">-1</stringProp>
|
|
</XPathExtractor>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Запрос типов документов" enabled="true">
|
|
<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"><?xml version="1.0" encoding="UTF-8"?>
|
|
<GetDocumentTypesRequest>
|
|
<tripId>${tripId}</tripId>
|
|
<dispatchStationId>${dispatchStationId}</dispatchStationId>
|
|
<arrivalStationId>${arrivalStationId}</arrivalStationId> 
|
|
</GetDocumentTypesRequest></stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
<stringProp name="HTTPSampler.domain"></stringProp>
|
|
<stringProp name="HTTPSampler.port"></stringProp>
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
<stringProp name="HTTPSampler.path">${__V(server)}/sales/getDocumentTypes</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">false</boolProp>
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
|
|
<hashTree/>
|
|
<XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Кол-во типов документов > 0" enabled="true">
|
|
<boolProp name="XPath.negate">false</boolProp>
|
|
<stringProp name="XPath.xpath">count(/GetDocumentTypesResponse/Body/DocumentType)>0</stringProp>
|
|
<boolProp name="XPath.validate">false</boolProp>
|
|
<boolProp name="XPath.whitespace">false</boolProp>
|
|
<boolProp name="XPath.tolerant">false</boolProp>
|
|
<boolProp name="XPath.namespace">false</boolProp>
|
|
</XPathAssertion>
|
|
<hashTree/>
|
|
<XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Среди документов есть паспорт" enabled="true">
|
|
<boolProp name="XPath.negate">false</boolProp>
|
|
<stringProp name="XPath.xpath">count(/GetDocumentTypesResponse/Body/DocumentType/id[text()='00' or text()='0']) > 0</stringProp>
|
|
<boolProp name="XPath.validate">false</boolProp>
|
|
<boolProp name="XPath.whitespace">false</boolProp>
|
|
<boolProp name="XPath.tolerant">false</boolProp>
|
|
<boolProp name="XPath.namespace">false</boolProp>
|
|
</XPathAssertion>
|
|
<hashTree/>
|
|
<XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="Получить все ID типов документов" enabled="true">
|
|
<stringProp name="XPathExtractor.default"></stringProp>
|
|
<stringProp name="XPathExtractor.refname">documentTypeIds</stringProp>
|
|
<stringProp name="XPathExtractor.xpathQuery">/GetDocumentTypesResponse/Body/DocumentType/id[text()='00' or text()='0']/text()</stringProp>
|
|
<boolProp name="XPathExtractor.validate">false</boolProp>
|
|
<boolProp name="XPathExtractor.tolerant">false</boolProp>
|
|
<boolProp name="XPathExtractor.namespace">false</boolProp>
|
|
<stringProp name="XPathExtractor.matchNumber">-1</stringProp>
|
|
</XPathExtractor>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Бронирование, Подтверждение, Отмена" enabled="true"/>
|
|
<hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Поиск свободных мест" enabled="true">
|
|
<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"><?xml version="1.0" encoding="UTF-8"?>
|
|
<GetFreeSeatsRequest>
|
|
<tripId>${tripId}</tripId>
|
|
<dispatchStationId>${dispatchStationId}</dispatchStationId>
|
|
<arrivalStationId>${arrivalStationId}</arrivalStationId> 
|
|
</GetFreeSeatsRequest></stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
<stringProp name="HTTPSampler.domain"></stringProp>
|
|
<stringProp name="HTTPSampler.port"></stringProp>
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
<stringProp name="HTTPSampler.path">${__V(server)}/sales/getFreeSeats</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">false</boolProp>
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
|
|
<hashTree/>
|
|
<XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="Получить все ID мест" enabled="true">
|
|
<stringProp name="XPathExtractor.default"></stringProp>
|
|
<stringProp name="XPathExtractor.refname">seatId</stringProp>
|
|
<stringProp name="XPathExtractor.xpathQuery">/GetFreeSeatsResponse/Body/Seat/id</stringProp>
|
|
<boolProp name="XPathExtractor.validate">false</boolProp>
|
|
<boolProp name="XPathExtractor.tolerant">false</boolProp>
|
|
<boolProp name="XPathExtractor.namespace">false</boolProp>
|
|
<stringProp name="XPathExtractor.matchNumber">-1</stringProp>
|
|
</XPathExtractor>
|
|
<hashTree/>
|
|
<XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Есть места" enabled="true">
|
|
<boolProp name="XPath.negate">false</boolProp>
|
|
<stringProp name="XPath.xpath">count(/GetFreeSeatsResponse/Body/Seat)>0</stringProp>
|
|
<boolProp name="XPath.validate">false</boolProp>
|
|
<boolProp name="XPath.whitespace">false</boolProp>
|
|
<boolProp name="XPath.tolerant">false</boolProp>
|
|
<boolProp name="XPath.namespace">false</boolProp>
|
|
</XPathAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Создание договора" enabled="true">
|
|
<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"><?xml version="1.0" encoding="UTF-8"?>
|
|
<BookOrderRequest>
|
|
<tripId>${tripId}</tripId>
|
|
<dispatchStationId>${dispatchStationId}</dispatchStationId>
|
|
<arrivalStationId>${arrivalStationId}</arrivalStationId> 
|
|
<Sale>
|
|
<seatId>${__V(seatId_${__Random(1,${seatId_matchNr})})}</seatId>
|
|
<ticketTypeId>${ticketTypeIds_1}</ticketTypeId>
|
|
<Passenger>
|
|
<firstName>${__RandomString(10,ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz)}</firstName>
|
|
<lastName>${__RandomString(10,ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz)}</lastName>
|
|
<middleName>${__RandomString(10,ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz)}</middleName> 
|
|
<docNum>${__RandomString(6,0123456789)}</docNum> 
|
|
<docSeries>${__RandomString(4,0123456789)}</docSeries> 
|
|
<docTypeId>${documentTypeIds_1}</docTypeId> 
|
|
<birthday>1985-01-01</birthday>
|
|
<citizenshipISO2>RU</citizenshipISO2>
|
|
<gender>MALE</gender>
|
|
</Passenger>
|
|
</Sale> 
|
|
<Agent>
|
|
<name>Test</name>
|
|
<inn>2345678901</inn>
|
|
</Agent> 
|
|
</BookOrderRequest></stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
<stringProp name="HTTPSampler.domain"></stringProp>
|
|
<stringProp name="HTTPSampler.port"></stringProp>
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
<stringProp name="HTTPSampler.path">${__V(server)}/sales/bookOrder</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">false</boolProp>
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
|
|
<hashTree/>
|
|
<XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="Получить ID договора" enabled="true">
|
|
<stringProp name="XPathExtractor.default"></stringProp>
|
|
<stringProp name="XPathExtractor.refname">orderId</stringProp>
|
|
<stringProp name="XPathExtractor.xpathQuery">/BookOrderResponse/Body/orderId</stringProp>
|
|
<boolProp name="XPathExtractor.validate">false</boolProp>
|
|
<boolProp name="XPathExtractor.tolerant">false</boolProp>
|
|
<boolProp name="XPathExtractor.namespace">false</boolProp>
|
|
<stringProp name="XPathExtractor.matchNumber">-1</stringProp>
|
|
</XPathExtractor>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Запрос информации по договору" enabled="true">
|
|
<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"><?xml version="1.0" encoding="UTF-8"?>
|
|
<GetOrderRequest>
|
|
<orderId>${orderId}</orderId>
|
|
</GetOrderRequest></stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
<stringProp name="HTTPSampler.domain"></stringProp>
|
|
<stringProp name="HTTPSampler.port"></stringProp>
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
<stringProp name="HTTPSampler.path">${__V(server)}/sales/getOrder</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">false</boolProp>
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
|
|
<hashTree/>
|
|
<XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Кол-во билетов = 1" enabled="true">
|
|
<boolProp name="XPath.negate">false</boolProp>
|
|
<stringProp name="XPath.xpath">count(/GetOrderResponse/Body/Ticket)=1</stringProp>
|
|
<boolProp name="XPath.validate">false</boolProp>
|
|
<boolProp name="XPath.whitespace">false</boolProp>
|
|
<boolProp name="XPath.tolerant">false</boolProp>
|
|
<boolProp name="XPath.namespace">false</boolProp>
|
|
</XPathAssertion>
|
|
<hashTree/>
|
|
<XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="Получить ID билета" enabled="true">
|
|
<stringProp name="XPathExtractor.default"></stringProp>
|
|
<stringProp name="XPathExtractor.refname">ticketId</stringProp>
|
|
<stringProp name="XPathExtractor.xpathQuery">/GetOrderResponse/Body/Ticket/id</stringProp>
|
|
<boolProp name="XPathExtractor.validate">false</boolProp>
|
|
<boolProp name="XPathExtractor.tolerant">false</boolProp>
|
|
<boolProp name="XPathExtractor.namespace">false</boolProp>
|
|
<stringProp name="XPathExtractor.matchNumber">-1</stringProp>
|
|
</XPathExtractor>
|
|
<hashTree/>
|
|
<XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Статус договора" enabled="true">
|
|
<boolProp name="XPath.negate">false</boolProp>
|
|
<stringProp name="XPath.xpath">/GetOrderResponse/Body/Ticket/status/text()='RESERVED'</stringProp>
|
|
<boolProp name="XPath.validate">false</boolProp>
|
|
<boolProp name="XPath.whitespace">false</boolProp>
|
|
<boolProp name="XPath.tolerant">false</boolProp>
|
|
<boolProp name="XPath.namespace">false</boolProp>
|
|
</XPathAssertion>
|
|
<hashTree/>
|
|
<XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Страна" enabled="false">
|
|
<boolProp name="XPath.negate">false</boolProp>
|
|
<stringProp name="XPath.xpath">/GetOrderResponse/Body/Ticket/Passenger/citizenshipISO2/text()='RU'</stringProp>
|
|
<boolProp name="XPath.validate">false</boolProp>
|
|
<boolProp name="XPath.whitespace">false</boolProp>
|
|
<boolProp name="XPath.tolerant">false</boolProp>
|
|
<boolProp name="XPath.namespace">false</boolProp>
|
|
</XPathAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Изменения данных пассажира" enabled="true">
|
|
<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"><?xml version="1.0" encoding="UTF-8"?>
|
|
<UpdateTicketRequest>
|
|
<ticketId>${ticketId}</ticketId>
|
|
<Passenger>
|
|
<firstName>${__RandomString(10,ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz)}</firstName>
|
|
<lastName>${__RandomString(10,ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz)}</lastName>
|
|
<middleName>${__RandomString(10,ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz)}</middleName> 
|
|
<docNum>${__RandomString(6,0123456789)}</docNum> 
|
|
<docSeries>${__RandomString(4,0123456789)}</docSeries> 
|
|
<docTypeId>${documentTypeIds_1}</docTypeId> 
|
|
<birthday>1986-01-01</birthday>
|
|
<citizenshipISO2>RU</citizenshipISO2>
|
|
<gender>FEMALE</gender>
|
|
</Passenger>
|
|
</UpdateTicketRequest></stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
<stringProp name="HTTPSampler.domain"></stringProp>
|
|
<stringProp name="HTTPSampler.port"></stringProp>
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
<stringProp name="HTTPSampler.path">${__V(server)}/sales/updateTicket</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">false</boolProp>
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Подтверждение оплаты" enabled="true">
|
|
<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"><?xml version="1.0" encoding="UTF-8"?>
|
|
<ConfirmOrderRequest>
|
|
<orderId>${orderId}</orderId>
|
|
<Agent>
|
|
<inn>2345678901</inn>
|
|
</Agent>
|
|
</ConfirmOrderRequest></stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
<stringProp name="HTTPSampler.domain"></stringProp>
|
|
<stringProp name="HTTPSampler.port"></stringProp>
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
<stringProp name="HTTPSampler.path">${__V(server)}/sales/confirmOrder</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">false</boolProp>
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
|
|
<hashTree/>
|
|
<XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Кол-во билетов = 1" enabled="true">
|
|
<boolProp name="XPath.negate">false</boolProp>
|
|
<stringProp name="XPath.xpath">count(/ConfirmOrderResponse/Body/Ticket)=1</stringProp>
|
|
<boolProp name="XPath.validate">false</boolProp>
|
|
<boolProp name="XPath.whitespace">false</boolProp>
|
|
<boolProp name="XPath.tolerant">false</boolProp>
|
|
<boolProp name="XPath.namespace">false</boolProp>
|
|
</XPathAssertion>
|
|
<hashTree/>
|
|
<XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="Получить ID билета" enabled="true">
|
|
<stringProp name="XPathExtractor.default"></stringProp>
|
|
<stringProp name="XPathExtractor.refname">orderId</stringProp>
|
|
<stringProp name="XPathExtractor.xpathQuery">/ConfirmOrderResponse/Body/Ticket/id</stringProp>
|
|
<boolProp name="XPathExtractor.validate">false</boolProp>
|
|
<boolProp name="XPathExtractor.tolerant">false</boolProp>
|
|
<boolProp name="XPathExtractor.namespace">false</boolProp>
|
|
<stringProp name="XPathExtractor.matchNumber">-1</stringProp>
|
|
</XPathExtractor>
|
|
<hashTree/>
|
|
<XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Статус договора" enabled="true">
|
|
<boolProp name="XPath.negate">false</boolProp>
|
|
<stringProp name="XPath.xpath">/ConfirmOrderResponse/Body/Ticket/status/text()='SOLD'</stringProp>
|
|
<boolProp name="XPath.validate">false</boolProp>
|
|
<boolProp name="XPath.whitespace">false</boolProp>
|
|
<boolProp name="XPath.tolerant">false</boolProp>
|
|
<boolProp name="XPath.namespace">false</boolProp>
|
|
</XPathAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Отмена билета" enabled="true">
|
|
<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"><?xml version="1.0" encoding="UTF-8"?>
|
|
<CancelTicketRequest>
|
|
<ticketId>${ticketId}</ticketId>
|
|
<Agent><inn>1234567890</inn></Agent>
|
|
</CancelTicketRequest></stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
<stringProp name="HTTPSampler.domain"></stringProp>
|
|
<stringProp name="HTTPSampler.port"></stringProp>
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
<stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
|
|
<stringProp name="HTTPSampler.path">${__V(server)}/sales/cancelTicket</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">false</boolProp>
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
|
|
<hashTree/>
|
|
<XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Кол-во билетов = 1" enabled="true">
|
|
<boolProp name="XPath.negate">false</boolProp>
|
|
<stringProp name="XPath.xpath">count(/CancelTicketResponse/Body/Ticket)=1</stringProp>
|
|
<boolProp name="XPath.validate">false</boolProp>
|
|
<boolProp name="XPath.whitespace">false</boolProp>
|
|
<boolProp name="XPath.tolerant">false</boolProp>
|
|
<boolProp name="XPath.namespace">false</boolProp>
|
|
</XPathAssertion>
|
|
<hashTree/>
|
|
<XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Статус договора" enabled="true">
|
|
<boolProp name="XPath.negate">false</boolProp>
|
|
<stringProp name="XPath.xpath">/CancelTicketResponse/Body/Ticket/status/text()='CANCELED'</stringProp>
|
|
<boolProp name="XPath.validate">false</boolProp>
|
|
<boolProp name="XPath.whitespace">false</boolProp>
|
|
<boolProp name="XPath.tolerant">false</boolProp>
|
|
<boolProp name="XPath.namespace">false</boolProp>
|
|
</XPathAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
</hashTree>
|
|
<GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Бронирование, Подтверждение, Возврат" enabled="true"/>
|
|
<hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Поиск свободных мест" enabled="true">
|
|
<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"><?xml version="1.0" encoding="UTF-8"?>
|
|
<GetFreeSeatsRequest>
|
|
<tripId>${tripId}</tripId>
|
|
<dispatchStationId>${dispatchStationId}</dispatchStationId>
|
|
<arrivalStationId>${arrivalStationId}</arrivalStationId> 
|
|
</GetFreeSeatsRequest></stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
<stringProp name="HTTPSampler.domain"></stringProp>
|
|
<stringProp name="HTTPSampler.port"></stringProp>
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
<stringProp name="HTTPSampler.path">${__V(server)}/sales/getFreeSeats</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">false</boolProp>
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
|
|
<hashTree/>
|
|
<XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="Получить все ID мест" enabled="true">
|
|
<stringProp name="XPathExtractor.default"></stringProp>
|
|
<stringProp name="XPathExtractor.refname">seatId</stringProp>
|
|
<stringProp name="XPathExtractor.xpathQuery">/GetFreeSeatsResponse/Body/Seat/id</stringProp>
|
|
<boolProp name="XPathExtractor.validate">false</boolProp>
|
|
<boolProp name="XPathExtractor.tolerant">false</boolProp>
|
|
<boolProp name="XPathExtractor.namespace">false</boolProp>
|
|
<stringProp name="XPathExtractor.matchNumber">-1</stringProp>
|
|
</XPathExtractor>
|
|
<hashTree/>
|
|
<XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Есть места" enabled="true">
|
|
<boolProp name="XPath.negate">false</boolProp>
|
|
<stringProp name="XPath.xpath">count(/GetFreeSeatsResponse/Body/Seat)>1</stringProp>
|
|
<boolProp name="XPath.validate">false</boolProp>
|
|
<boolProp name="XPath.whitespace">false</boolProp>
|
|
<boolProp name="XPath.tolerant">false</boolProp>
|
|
<boolProp name="XPath.namespace">false</boolProp>
|
|
</XPathAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Создание договора" enabled="true">
|
|
<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"><?xml version="1.0" encoding="UTF-8"?>
|
|
<BookOrderRequest>
|
|
<tripId>${tripId}</tripId>
|
|
<dispatchStationId>${dispatchStationId}</dispatchStationId>
|
|
<arrivalStationId>${arrivalStationId}</arrivalStationId> 
|
|
<Sale>
|
|
<seatId>${__V(seatId_${__Random(1,${seatId_matchNr})})}</seatId>
|
|
<ticketTypeId>${ticketTypeIds_1}</ticketTypeId>
|
|
<Passenger>
|
|
<firstName>${__RandomString(10,ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz)}</firstName>
|
|
<lastName>${__RandomString(10,ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz)}</lastName>
|
|
<middleName>${__RandomString(10,ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz)}</middleName> 
|
|
<docNum>${__RandomString(6,0123456789)}</docNum> 
|
|
<docSeries>${__RandomString(4,0123456789)}</docSeries> 
|
|
<docTypeId>${documentTypeIds_1}</docTypeId> 
|
|
<birthday>1985-01-01</birthday>
|
|
<citizenshipISO2>RU</citizenshipISO2>
|
|
<gender>MALE</gender>
|
|
</Passenger>
|
|
</Sale> 
|
|
</BookOrderRequest></stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
<stringProp name="HTTPSampler.domain"></stringProp>
|
|
<stringProp name="HTTPSampler.port"></stringProp>
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
<stringProp name="HTTPSampler.path">${__V(server)}/sales/bookOrder</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">false</boolProp>
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
|
|
<hashTree/>
|
|
<XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="Получить ID договора" enabled="true">
|
|
<stringProp name="XPathExtractor.default"></stringProp>
|
|
<stringProp name="XPathExtractor.refname">orderId</stringProp>
|
|
<stringProp name="XPathExtractor.xpathQuery">/BookOrderResponse/Body/orderId</stringProp>
|
|
<boolProp name="XPathExtractor.validate">false</boolProp>
|
|
<boolProp name="XPathExtractor.tolerant">false</boolProp>
|
|
<boolProp name="XPathExtractor.namespace">false</boolProp>
|
|
<stringProp name="XPathExtractor.matchNumber">-1</stringProp>
|
|
</XPathExtractor>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Запрос информации по договору" enabled="true">
|
|
<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"><?xml version="1.0" encoding="UTF-8"?>
|
|
<GetOrderRequest>
|
|
<orderId>${orderId}</orderId>
|
|
</GetOrderRequest></stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
<stringProp name="HTTPSampler.domain"></stringProp>
|
|
<stringProp name="HTTPSampler.port"></stringProp>
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
<stringProp name="HTTPSampler.path">${__V(server)}/sales/getOrder</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">false</boolProp>
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
|
|
<hashTree/>
|
|
<XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Кол-во билетов = 1" enabled="true">
|
|
<boolProp name="XPath.negate">false</boolProp>
|
|
<stringProp name="XPath.xpath">count(/GetOrderResponse/Body/Ticket)=1</stringProp>
|
|
<boolProp name="XPath.validate">false</boolProp>
|
|
<boolProp name="XPath.whitespace">false</boolProp>
|
|
<boolProp name="XPath.tolerant">false</boolProp>
|
|
<boolProp name="XPath.namespace">false</boolProp>
|
|
</XPathAssertion>
|
|
<hashTree/>
|
|
<XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="Получить ID билета" enabled="true">
|
|
<stringProp name="XPathExtractor.default"></stringProp>
|
|
<stringProp name="XPathExtractor.refname">ticketId</stringProp>
|
|
<stringProp name="XPathExtractor.xpathQuery">/GetOrderResponse/Body/Ticket/id</stringProp>
|
|
<boolProp name="XPathExtractor.validate">false</boolProp>
|
|
<boolProp name="XPathExtractor.tolerant">false</boolProp>
|
|
<boolProp name="XPathExtractor.namespace">false</boolProp>
|
|
<stringProp name="XPathExtractor.matchNumber">-1</stringProp>
|
|
</XPathExtractor>
|
|
<hashTree/>
|
|
<XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Статус договора" enabled="true">
|
|
<boolProp name="XPath.negate">false</boolProp>
|
|
<stringProp name="XPath.xpath">/GetOrderResponse/Body/Ticket/status/text()='RESERVED'</stringProp>
|
|
<boolProp name="XPath.validate">false</boolProp>
|
|
<boolProp name="XPath.whitespace">false</boolProp>
|
|
<boolProp name="XPath.tolerant">false</boolProp>
|
|
<boolProp name="XPath.namespace">false</boolProp>
|
|
</XPathAssertion>
|
|
<hashTree/>
|
|
<XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Страна" enabled="false">
|
|
<boolProp name="XPath.negate">false</boolProp>
|
|
<stringProp name="XPath.xpath">/GetOrderResponse/Body/Ticket/Passenger/citizenshipISO2/text()='RU'</stringProp>
|
|
<boolProp name="XPath.validate">false</boolProp>
|
|
<boolProp name="XPath.whitespace">false</boolProp>
|
|
<boolProp name="XPath.tolerant">false</boolProp>
|
|
<boolProp name="XPath.namespace">false</boolProp>
|
|
</XPathAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Изменения данных пассажира" enabled="true">
|
|
<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"><?xml version="1.0" encoding="UTF-8"?>
|
|
<UpdateTicketRequest>
|
|
<ticketId>${ticketId}</ticketId>
|
|
<Passenger>
|
|
<firstName>${__RandomString(10,ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz)}</firstName>
|
|
<lastName>${__RandomString(10,ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz)}</lastName>
|
|
<middleName>${__RandomString(10,ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz)}</middleName> 
|
|
<docNum>${__RandomString(6,0123456789)}</docNum> 
|
|
<docSeries>${__RandomString(4,0123456789)}</docSeries> 
|
|
<docTypeId>${documentTypeIds_1}</docTypeId> 
|
|
<birthday>1986-01-01</birthday>
|
|
<citizenshipISO2>RU</citizenshipISO2>
|
|
<gender>FEMALE</gender>
|
|
</Passenger>
|
|
</UpdateTicketRequest></stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
<stringProp name="HTTPSampler.domain"></stringProp>
|
|
<stringProp name="HTTPSampler.port"></stringProp>
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
<stringProp name="HTTPSampler.path">${__V(server)}/sales/updateTicket</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">false</boolProp>
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Подтверждение оплаты" enabled="true">
|
|
<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"><?xml version="1.0" encoding="UTF-8"?>
|
|
<ConfirmOrderRequest>
|
|
<orderId>${orderId}</orderId>
|
|
<Agent>
|
|
<inn>2345678901</inn>
|
|
<name>Test</name>
|
|
</Agent>
|
|
</ConfirmOrderRequest></stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
<stringProp name="HTTPSampler.domain"></stringProp>
|
|
<stringProp name="HTTPSampler.port"></stringProp>
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
<stringProp name="HTTPSampler.path">${__V(server)}/sales/confirmOrder</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">false</boolProp>
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
|
|
<hashTree/>
|
|
<XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Кол-во билетов = 1" enabled="true">
|
|
<boolProp name="XPath.negate">false</boolProp>
|
|
<stringProp name="XPath.xpath">count(/ConfirmOrderResponse/Body/Ticket)=1</stringProp>
|
|
<boolProp name="XPath.validate">false</boolProp>
|
|
<boolProp name="XPath.whitespace">false</boolProp>
|
|
<boolProp name="XPath.tolerant">false</boolProp>
|
|
<boolProp name="XPath.namespace">false</boolProp>
|
|
</XPathAssertion>
|
|
<hashTree/>
|
|
<XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="Получить ID билета" enabled="true">
|
|
<stringProp name="XPathExtractor.default"></stringProp>
|
|
<stringProp name="XPathExtractor.refname">orderId</stringProp>
|
|
<stringProp name="XPathExtractor.xpathQuery">/ConfirmOrderResponse/Body/Ticket/id</stringProp>
|
|
<boolProp name="XPathExtractor.validate">false</boolProp>
|
|
<boolProp name="XPathExtractor.tolerant">false</boolProp>
|
|
<boolProp name="XPathExtractor.namespace">false</boolProp>
|
|
<stringProp name="XPathExtractor.matchNumber">-1</stringProp>
|
|
</XPathExtractor>
|
|
<hashTree/>
|
|
<XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Статус договора" enabled="true">
|
|
<boolProp name="XPath.negate">false</boolProp>
|
|
<stringProp name="XPath.xpath">/ConfirmOrderResponse/Body/Ticket/status/text()='SOLD'</stringProp>
|
|
<boolProp name="XPath.validate">false</boolProp>
|
|
<boolProp name="XPath.whitespace">false</boolProp>
|
|
<boolProp name="XPath.tolerant">false</boolProp>
|
|
<boolProp name="XPath.namespace">false</boolProp>
|
|
</XPathAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Возврат билета" enabled="true">
|
|
<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"><?xml version="1.0" encoding="UTF-8"?>
|
|
<ReturnTicketRequest>
|
|
<ticketId>${ticketId}</ticketId>
|
|
<Agent>
|
|
<inn>2345678901</inn>
|
|
</Agent>
|
|
</ReturnTicketRequest></stringProp>
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
</elementProp>
|
|
</collectionProp>
|
|
</elementProp>
|
|
<stringProp name="HTTPSampler.domain"></stringProp>
|
|
<stringProp name="HTTPSampler.port"></stringProp>
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
<stringProp name="HTTPSampler.path">${__V(server)}/sales/returnTicket</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">false</boolProp>
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
</HTTPSamplerProxy>
|
|
<hashTree>
|
|
<XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
|
|
<hashTree/>
|
|
<XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Кол-во билетов = 1" enabled="true">
|
|
<boolProp name="XPath.negate">false</boolProp>
|
|
<stringProp name="XPath.xpath">count(/ReturnTicketResponse/Body/Ticket)=1</stringProp>
|
|
<boolProp name="XPath.validate">false</boolProp>
|
|
<boolProp name="XPath.whitespace">false</boolProp>
|
|
<boolProp name="XPath.tolerant">false</boolProp>
|
|
<boolProp name="XPath.namespace">false</boolProp>
|
|
</XPathAssertion>
|
|
<hashTree/>
|
|
<XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Статус договора" enabled="true">
|
|
<boolProp name="XPath.negate">false</boolProp>
|
|
<stringProp name="XPath.xpath">/ReturnTicketResponse/Body/Ticket/status/text()='RETURNED'</stringProp>
|
|
<boolProp name="XPath.validate">false</boolProp>
|
|
<boolProp name="XPath.whitespace">false</boolProp>
|
|
<boolProp name="XPath.tolerant">false</boolProp>
|
|
<boolProp name="XPath.namespace">false</boolProp>
|
|
</XPathAssertion>
|
|
<hashTree/>
|
|
</hashTree>
|
|
</hashTree>
|
|
</hashTree>
|
|
</hashTree>
|
|
</hashTree>
|
|
<DebugSampler guiclass="TestBeanGUI" testclass="DebugSampler" testname="Debug Sampler" enabled="true">
|
|
<boolProp name="displayJMeterProperties">false</boolProp>
|
|
<boolProp name="displayJMeterVariables">true</boolProp>
|
|
<boolProp name="displaySystemProperties">false</boolProp>
|
|
</DebugSampler>
|
|
<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>false</xml>
|
|
<fieldNames>false</fieldNames>
|
|
<responseHeaders>false</responseHeaders>
|
|
<requestHeaders>false</requestHeaders>
|
|
<responseDataOnError>false</responseDataOnError>
|
|
<saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
|
|
<assertionsResultsToSave>0</assertionsResultsToSave>
|
|
<bytes>true</bytes>
|
|
<threadCounts>true</threadCounts>
|
|
</value>
|
|
</objProp>
|
|
<stringProp name="filename"></stringProp>
|
|
</ResultCollector>
|
|
<hashTree/>
|
|
<ResultCollector guiclass="StatVisualizer" testclass="ResultCollector" testname="Aggregate Report" 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>false</xml>
|
|
<fieldNames>false</fieldNames>
|
|
<responseHeaders>false</responseHeaders>
|
|
<requestHeaders>false</requestHeaders>
|
|
<responseDataOnError>false</responseDataOnError>
|
|
<saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
|
|
<assertionsResultsToSave>0</assertionsResultsToSave>
|
|
<bytes>true</bytes>
|
|
<threadCounts>true</threadCounts>
|
|
</value>
|
|
</objProp>
|
|
<stringProp name="filename"></stringProp>
|
|
</ResultCollector>
|
|
<hashTree/>
|
|
<ResultCollector guiclass="StatGraphVisualizer" testclass="ResultCollector" testname="Aggregate Graph" 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>false</xml>
|
|
<fieldNames>false</fieldNames>
|
|
<responseHeaders>false</responseHeaders>
|
|
<requestHeaders>false</requestHeaders>
|
|
<responseDataOnError>false</responseDataOnError>
|
|
<saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
|
|
<assertionsResultsToSave>0</assertionsResultsToSave>
|
|
<bytes>true</bytes>
|
|
<threadCounts>true</threadCounts>
|
|
</value>
|
|
</objProp>
|
|
<stringProp name="filename"></stringProp>
|
|
</ResultCollector>
|
|
<hashTree/>
|
|
</hashTree>
|
|
</hashTree>
|
|
<WorkBench guiclass="WorkBenchGui" testclass="WorkBench" testname="WorkBench" enabled="true">
|
|
<boolProp name="WorkBench.save">true</boolProp>
|
|
</WorkBench>
|
|
<hashTree/>
|
|
</hashTree>
|
|
</jmeterTestPlan>
|