Протокол AV5 для интеграции систем продажи электронных билетов перевозчиков и системы GDS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

avs5rs.jmx 82KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <jmeterTestPlan version="1.2" properties="4.0" jmeter="4.0 r1823414">
  3. <hashTree>
  4. <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true">
  5. <stringProp name="TestPlan.comments"></stringProp>
  6. <boolProp name="TestPlan.functional_mode">false</boolProp>
  7. <boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
  8. <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  9. <collectionProp name="Arguments.arguments"/>
  10. </elementProp>
  11. <stringProp name="TestPlan.user_define_classpath"></stringProp>
  12. </TestPlan>
  13. <hashTree>
  14. <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group" enabled="true">
  15. <stringProp name="ThreadGroup.on_sample_error">stoptest</stringProp>
  16. <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
  17. <boolProp name="LoopController.continue_forever">false</boolProp>
  18. <stringProp name="LoopController.loops">1</stringProp>
  19. </elementProp>
  20. <stringProp name="ThreadGroup.num_threads">1</stringProp>
  21. <stringProp name="ThreadGroup.ramp_time">0</stringProp>
  22. <longProp name="ThreadGroup.start_time">1467960198000</longProp>
  23. <longProp name="ThreadGroup.end_time">1467960198000</longProp>
  24. <boolProp name="ThreadGroup.scheduler">false</boolProp>
  25. <stringProp name="ThreadGroup.duration"></stringProp>
  26. <stringProp name="ThreadGroup.delay"></stringProp>
  27. </ThreadGroup>
  28. <hashTree>
  29. <Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  30. <collectionProp name="Arguments.arguments">
  31. <elementProp name="password" elementType="Argument">
  32. <stringProp name="Argument.name">password</stringProp>
  33. <stringProp name="Argument.value"></stringProp>
  34. <stringProp name="Argument.metadata">=</stringProp>
  35. </elementProp>
  36. <elementProp name="date" elementType="Argument">
  37. <stringProp name="Argument.name">date</stringProp>
  38. <stringProp name="Argument.value">2018-06-01</stringProp>
  39. <stringProp name="Argument.metadata">=</stringProp>
  40. </elementProp>
  41. <elementProp name="user" elementType="Argument">
  42. <stringProp name="Argument.name">user</stringProp>
  43. <stringProp name="Argument.value"></stringProp>
  44. <stringProp name="Argument.metadata">=</stringProp>
  45. </elementProp>
  46. <elementProp name="server" elementType="Argument">
  47. <stringProp name="Argument.name">server</stringProp>
  48. <stringProp name="Argument.value">http://webapp.avtovokzal.ru/avs5test/soap/rs</stringProp>
  49. <stringProp name="Argument.metadata">=</stringProp>
  50. </elementProp>
  51. </collectionProp>
  52. </Arguments>
  53. <hashTree/>
  54. <ConfigTestElement guiclass="HttpDefaultsGui" testclass="ConfigTestElement" testname="HTTP Request Defaults" enabled="true">
  55. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  56. <collectionProp name="Arguments.arguments"/>
  57. </elementProp>
  58. <stringProp name="HTTPSampler.domain"></stringProp>
  59. <stringProp name="HTTPSampler.port"></stringProp>
  60. <stringProp name="HTTPSampler.protocol"></stringProp>
  61. <stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
  62. <stringProp name="HTTPSampler.path"></stringProp>
  63. <stringProp name="HTTPSampler.concurrentPool">4</stringProp>
  64. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  65. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  66. </ConfigTestElement>
  67. <hashTree/>
  68. <AuthManager guiclass="AuthPanel" testclass="AuthManager" testname="HTTP Authorization Manager" enabled="true">
  69. <collectionProp name="AuthManager.auth_list">
  70. <elementProp name="" elementType="Authorization">
  71. <stringProp name="Authorization.url"></stringProp>
  72. <stringProp name="Authorization.username">${__V(user)}</stringProp>
  73. <stringProp name="Authorization.password">${__V(password)}</stringProp>
  74. <stringProp name="Authorization.domain"></stringProp>
  75. <stringProp name="Authorization.realm"></stringProp>
  76. </elementProp>
  77. </collectionProp>
  78. <boolProp name="AuthManager.clearEachIteration">true</boolProp>
  79. </AuthManager>
  80. <hashTree/>
  81. <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
  82. <collectionProp name="HeaderManager.headers">
  83. <elementProp name="" elementType="Header">
  84. <stringProp name="Header.name">Content-type</stringProp>
  85. <stringProp name="Header.value">application/xml; charset=UTF-8</stringProp>
  86. </elementProp>
  87. </collectionProp>
  88. </HeaderManager>
  89. <hashTree/>
  90. <CookieManager guiclass="CookiePanel" testclass="CookieManager" testname="HTTP Cookie Manager" enabled="true">
  91. <collectionProp name="CookieManager.cookies"/>
  92. <boolProp name="CookieManager.clearEachIteration">false</boolProp>
  93. </CookieManager>
  94. <hashTree/>
  95. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="echo" enabled="true">
  96. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  97. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  98. <collectionProp name="Arguments.arguments">
  99. <elementProp name="" elementType="HTTPArgument">
  100. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  101. <stringProp name="Argument.value">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#xd;
  102. &lt;EchoRequest&gt;&#xd;
  103. &lt;message&gt;Test&lt;/message&gt;&#xd;
  104. &lt;/EchoRequest&gt;</stringProp>
  105. <stringProp name="Argument.metadata">=</stringProp>
  106. </elementProp>
  107. </collectionProp>
  108. </elementProp>
  109. <stringProp name="HTTPSampler.domain"></stringProp>
  110. <stringProp name="HTTPSampler.port"></stringProp>
  111. <stringProp name="HTTPSampler.protocol"></stringProp>
  112. <stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
  113. <stringProp name="HTTPSampler.path">${__V(server)}/sales/echo</stringProp>
  114. <stringProp name="HTTPSampler.method">POST</stringProp>
  115. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  116. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  117. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  118. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  119. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  120. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  121. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  122. </HTTPSamplerProxy>
  123. <hashTree>
  124. <XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
  125. <hashTree/>
  126. <XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Проверка ответа" enabled="true">
  127. <boolProp name="XPath.negate">false</boolProp>
  128. <stringProp name="XPath.xpath">/EchoResponse/Body/message/text()=&apos;Test&apos;</stringProp>
  129. <boolProp name="XPath.validate">false</boolProp>
  130. <boolProp name="XPath.whitespace">false</boolProp>
  131. <boolProp name="XPath.tolerant">false</boolProp>
  132. <boolProp name="XPath.namespace">false</boolProp>
  133. </XPathAssertion>
  134. <hashTree/>
  135. </hashTree>
  136. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="dispatchStations" enabled="true">
  137. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  138. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  139. <collectionProp name="Arguments.arguments">
  140. <elementProp name="" elementType="HTTPArgument">
  141. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  142. <stringProp name="Argument.value">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#xd;
  143. &lt;GetDispatchStationsRequest/&gt;</stringProp>
  144. <stringProp name="Argument.metadata">=</stringProp>
  145. </elementProp>
  146. </collectionProp>
  147. </elementProp>
  148. <stringProp name="HTTPSampler.domain"></stringProp>
  149. <stringProp name="HTTPSampler.port"></stringProp>
  150. <stringProp name="HTTPSampler.protocol"></stringProp>
  151. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  152. <stringProp name="HTTPSampler.path">${__V(server)}/sales/getDispatchStations</stringProp>
  153. <stringProp name="HTTPSampler.method">POST</stringProp>
  154. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  155. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  156. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  157. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  158. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  159. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  160. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  161. </HTTPSamplerProxy>
  162. <hashTree>
  163. <XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
  164. <hashTree/>
  165. <XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Кол-во станций &gt; 0" enabled="true">
  166. <boolProp name="XPath.negate">false</boolProp>
  167. <stringProp name="XPath.xpath">count(/GetDispatchStationsResponse/Body/Station)&gt;0</stringProp>
  168. <boolProp name="XPath.validate">false</boolProp>
  169. <boolProp name="XPath.whitespace">false</boolProp>
  170. <boolProp name="XPath.tolerant">false</boolProp>
  171. <boolProp name="XPath.namespace">false</boolProp>
  172. </XPathAssertion>
  173. <hashTree/>
  174. <XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="Получить все ID станций" enabled="true">
  175. <stringProp name="XPathExtractor.default"></stringProp>
  176. <stringProp name="XPathExtractor.refname">dispatchStationIds</stringProp>
  177. <stringProp name="XPathExtractor.xpathQuery">/GetDispatchStationsResponse/Body/Station/id</stringProp>
  178. <boolProp name="XPathExtractor.validate">false</boolProp>
  179. <boolProp name="XPathExtractor.tolerant">false</boolProp>
  180. <boolProp name="XPathExtractor.namespace">false</boolProp>
  181. <stringProp name="XPathExtractor.matchNumber">-1</stringProp>
  182. </XPathExtractor>
  183. <hashTree/>
  184. </hashTree>
  185. <ForeachController guiclass="ForeachControlPanel" testclass="ForeachController" testname="Для каждой станции отправления" enabled="true">
  186. <stringProp name="ForeachController.inputVal">dispatchStationIds</stringProp>
  187. <stringProp name="ForeachController.returnVal">dispatchStationId</stringProp>
  188. <boolProp name="ForeachController.useSeparator">true</boolProp>
  189. </ForeachController>
  190. <hashTree>
  191. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="arrivalStation" enabled="true">
  192. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  193. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  194. <collectionProp name="Arguments.arguments">
  195. <elementProp name="" elementType="HTTPArgument">
  196. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  197. <stringProp name="Argument.value">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#xd;
  198. &lt;GetArrivalStationsRequest&gt;&#xd;
  199. &lt;dispatchStationId&gt;${dispatchStationId}&lt;/dispatchStationId&gt;&#xd;
  200. &lt;/GetArrivalStationsRequest&gt;</stringProp>
  201. <stringProp name="Argument.metadata">=</stringProp>
  202. </elementProp>
  203. </collectionProp>
  204. </elementProp>
  205. <stringProp name="HTTPSampler.domain"></stringProp>
  206. <stringProp name="HTTPSampler.port"></stringProp>
  207. <stringProp name="HTTPSampler.protocol"></stringProp>
  208. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  209. <stringProp name="HTTPSampler.path">${__V(server)}/sales/getArrivalStations</stringProp>
  210. <stringProp name="HTTPSampler.method">POST</stringProp>
  211. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  212. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  213. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  214. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  215. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  216. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  217. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  218. </HTTPSamplerProxy>
  219. <hashTree>
  220. <XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
  221. <hashTree/>
  222. <XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="Получить все ID станций" enabled="true">
  223. <stringProp name="XPathExtractor.default"></stringProp>
  224. <stringProp name="XPathExtractor.refname">arrivalStationIds</stringProp>
  225. <stringProp name="XPathExtractor.xpathQuery">/GetArrivalStationsResponse/Body/Station/id</stringProp>
  226. <boolProp name="XPathExtractor.validate">false</boolProp>
  227. <boolProp name="XPathExtractor.tolerant">false</boolProp>
  228. <boolProp name="XPathExtractor.namespace">false</boolProp>
  229. <stringProp name="XPathExtractor.matchNumber">-1</stringProp>
  230. </XPathExtractor>
  231. <hashTree/>
  232. </hashTree>
  233. <ForeachController guiclass="ForeachControlPanel" testclass="ForeachController" testname="Для каждой станции назначения" enabled="true">
  234. <stringProp name="ForeachController.inputVal">arrivalStationIds</stringProp>
  235. <stringProp name="ForeachController.returnVal">arrivalStationId</stringProp>
  236. <boolProp name="ForeachController.useSeparator">true</boolProp>
  237. </ForeachController>
  238. <hashTree>
  239. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="searchTrips" enabled="true">
  240. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  241. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  242. <collectionProp name="Arguments.arguments">
  243. <elementProp name="" elementType="HTTPArgument">
  244. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  245. <stringProp name="Argument.value">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#xd;
  246. &lt;SearchTripsRequest&gt;&#xd;
  247. &lt;dispatchStationId&gt;${dispatchStationId}&lt;/dispatchStationId&gt;&#xd;
  248. &lt;arrivalStationId&gt;${arrivalStationId}&lt;/arrivalStationId&gt;&#xd;
  249. &lt;date&gt;${__V(date)}&lt;/date&gt;&#xd;
  250. &lt;/SearchTripsRequest&gt;&#xd;
  251. </stringProp>
  252. <stringProp name="Argument.metadata">=</stringProp>
  253. </elementProp>
  254. </collectionProp>
  255. </elementProp>
  256. <stringProp name="HTTPSampler.domain"></stringProp>
  257. <stringProp name="HTTPSampler.port"></stringProp>
  258. <stringProp name="HTTPSampler.protocol"></stringProp>
  259. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  260. <stringProp name="HTTPSampler.path">${__V(server)}/sales/searchTrips</stringProp>
  261. <stringProp name="HTTPSampler.method">POST</stringProp>
  262. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  263. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  264. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  265. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  266. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  267. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  268. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  269. </HTTPSamplerProxy>
  270. <hashTree>
  271. <XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
  272. <hashTree/>
  273. <XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="Получить все ID рейсов" enabled="true">
  274. <stringProp name="XPathExtractor.default"></stringProp>
  275. <stringProp name="XPathExtractor.refname">tripIds</stringProp>
  276. <stringProp name="XPathExtractor.xpathQuery">/SearchTripsResponse/Body/Trip[status=&apos;ON_SALE&apos;]/id</stringProp>
  277. <boolProp name="XPathExtractor.validate">false</boolProp>
  278. <boolProp name="XPathExtractor.tolerant">false</boolProp>
  279. <boolProp name="XPathExtractor.namespace">false</boolProp>
  280. <stringProp name="XPathExtractor.matchNumber">-1</stringProp>
  281. </XPathExtractor>
  282. <hashTree/>
  283. </hashTree>
  284. <ForeachController guiclass="ForeachControlPanel" testclass="ForeachController" testname="Для каждого рейса" enabled="true">
  285. <stringProp name="ForeachController.inputVal">tripIds</stringProp>
  286. <stringProp name="ForeachController.returnVal">tripId</stringProp>
  287. <boolProp name="ForeachController.useSeparator">true</boolProp>
  288. <stringProp name="ForeachController.endIndex">1</stringProp>
  289. </ForeachController>
  290. <hashTree>
  291. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Запрос остановочных пунктов" enabled="true">
  292. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  293. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  294. <collectionProp name="Arguments.arguments">
  295. <elementProp name="" elementType="HTTPArgument">
  296. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  297. <stringProp name="Argument.value">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#xd;
  298. &lt;GetTripStopsRequest&gt;&#xd;
  299. &lt;tripId&gt;${tripId}&lt;/tripId&gt;&#xd;
  300. &lt;/GetTripStopsRequest&gt;</stringProp>
  301. <stringProp name="Argument.metadata">=</stringProp>
  302. </elementProp>
  303. </collectionProp>
  304. </elementProp>
  305. <stringProp name="HTTPSampler.domain"></stringProp>
  306. <stringProp name="HTTPSampler.port"></stringProp>
  307. <stringProp name="HTTPSampler.protocol"></stringProp>
  308. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  309. <stringProp name="HTTPSampler.path">${__V(server)}/sales/getTripStops</stringProp>
  310. <stringProp name="HTTPSampler.method">POST</stringProp>
  311. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  312. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  313. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  314. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  315. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  316. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  317. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  318. </HTTPSamplerProxy>
  319. <hashTree>
  320. <XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
  321. <hashTree/>
  322. <XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Кол-во остановок &gt; 0" enabled="true">
  323. <boolProp name="XPath.negate">false</boolProp>
  324. <stringProp name="XPath.xpath">count(/GetTripStopsResponse/Body/Stop)&gt;0</stringProp>
  325. <boolProp name="XPath.validate">false</boolProp>
  326. <boolProp name="XPath.whitespace">false</boolProp>
  327. <boolProp name="XPath.tolerant">false</boolProp>
  328. <boolProp name="XPath.namespace">false</boolProp>
  329. </XPathAssertion>
  330. <hashTree/>
  331. </hashTree>
  332. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Запрос типов билетов" enabled="true">
  333. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  334. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  335. <collectionProp name="Arguments.arguments">
  336. <elementProp name="" elementType="HTTPArgument">
  337. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  338. <stringProp name="Argument.value">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#xd;
  339. &lt;GetTicketTypesRequest&gt;&#xd;
  340. &lt;tripId&gt;${tripId}&lt;/tripId&gt;&#xd;
  341. &lt;dispatchStationId&gt;${dispatchStationId}&lt;/dispatchStationId&gt;&#xd;
  342. &lt;arrivalStationId&gt;${arrivalStationId}&lt;/arrivalStationId&gt; &#xd;
  343. &lt;/GetTicketTypesRequest&gt;</stringProp>
  344. <stringProp name="Argument.metadata">=</stringProp>
  345. </elementProp>
  346. </collectionProp>
  347. </elementProp>
  348. <stringProp name="HTTPSampler.domain"></stringProp>
  349. <stringProp name="HTTPSampler.port"></stringProp>
  350. <stringProp name="HTTPSampler.protocol"></stringProp>
  351. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  352. <stringProp name="HTTPSampler.path">${__V(server)}/sales/getTicketTypes</stringProp>
  353. <stringProp name="HTTPSampler.method">POST</stringProp>
  354. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  355. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  356. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  357. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  358. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  359. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  360. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  361. </HTTPSamplerProxy>
  362. <hashTree>
  363. <XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
  364. <hashTree/>
  365. <XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Кол-во типов билетов &gt; 0" enabled="true">
  366. <boolProp name="XPath.negate">false</boolProp>
  367. <stringProp name="XPath.xpath">count(/GetTicketTypesResponse/Body/TicketType)&gt;0</stringProp>
  368. <boolProp name="XPath.validate">false</boolProp>
  369. <boolProp name="XPath.whitespace">false</boolProp>
  370. <boolProp name="XPath.tolerant">false</boolProp>
  371. <boolProp name="XPath.namespace">false</boolProp>
  372. </XPathAssertion>
  373. <hashTree/>
  374. <XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="Получить все ID типов билетов" enabled="true">
  375. <stringProp name="XPathExtractor.default"></stringProp>
  376. <stringProp name="XPathExtractor.refname">ticketTypeIds</stringProp>
  377. <stringProp name="XPathExtractor.xpathQuery">/GetTicketTypesResponse/Body/TicketType/id</stringProp>
  378. <boolProp name="XPathExtractor.validate">false</boolProp>
  379. <boolProp name="XPathExtractor.tolerant">false</boolProp>
  380. <boolProp name="XPathExtractor.namespace">false</boolProp>
  381. <stringProp name="XPathExtractor.matchNumber">-1</stringProp>
  382. </XPathExtractor>
  383. <hashTree/>
  384. </hashTree>
  385. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Запрос типов документов" enabled="true">
  386. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  387. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  388. <collectionProp name="Arguments.arguments">
  389. <elementProp name="" elementType="HTTPArgument">
  390. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  391. <stringProp name="Argument.value">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#xd;
  392. &lt;GetDocumentTypesRequest&gt;&#xd;
  393. &lt;tripId&gt;${tripId}&lt;/tripId&gt;&#xd;
  394. &lt;dispatchStationId&gt;${dispatchStationId}&lt;/dispatchStationId&gt;&#xd;
  395. &lt;arrivalStationId&gt;${arrivalStationId}&lt;/arrivalStationId&gt; &#xd;
  396. &lt;/GetDocumentTypesRequest&gt;</stringProp>
  397. <stringProp name="Argument.metadata">=</stringProp>
  398. </elementProp>
  399. </collectionProp>
  400. </elementProp>
  401. <stringProp name="HTTPSampler.domain"></stringProp>
  402. <stringProp name="HTTPSampler.port"></stringProp>
  403. <stringProp name="HTTPSampler.protocol"></stringProp>
  404. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  405. <stringProp name="HTTPSampler.path">${__V(server)}/sales/getDocumentTypes</stringProp>
  406. <stringProp name="HTTPSampler.method">POST</stringProp>
  407. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  408. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  409. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  410. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  411. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  412. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  413. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  414. </HTTPSamplerProxy>
  415. <hashTree>
  416. <XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
  417. <hashTree/>
  418. <XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Кол-во типов документов &gt; 0" enabled="true">
  419. <boolProp name="XPath.negate">false</boolProp>
  420. <stringProp name="XPath.xpath">count(/GetDocumentTypesResponse/Body/DocumentType)&gt;0</stringProp>
  421. <boolProp name="XPath.validate">false</boolProp>
  422. <boolProp name="XPath.whitespace">false</boolProp>
  423. <boolProp name="XPath.tolerant">false</boolProp>
  424. <boolProp name="XPath.namespace">false</boolProp>
  425. </XPathAssertion>
  426. <hashTree/>
  427. <XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Среди документов есть паспорт" enabled="true">
  428. <boolProp name="XPath.negate">false</boolProp>
  429. <stringProp name="XPath.xpath">count(/GetDocumentTypesResponse/Body/DocumentType/id[text()=&apos;00&apos; or text()=&apos;0&apos;]) &gt; 0</stringProp>
  430. <boolProp name="XPath.validate">false</boolProp>
  431. <boolProp name="XPath.whitespace">false</boolProp>
  432. <boolProp name="XPath.tolerant">false</boolProp>
  433. <boolProp name="XPath.namespace">false</boolProp>
  434. </XPathAssertion>
  435. <hashTree/>
  436. <XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="Получить все ID типов документов" enabled="true">
  437. <stringProp name="XPathExtractor.default"></stringProp>
  438. <stringProp name="XPathExtractor.refname">documentTypeIds</stringProp>
  439. <stringProp name="XPathExtractor.xpathQuery">/GetDocumentTypesResponse/Body/DocumentType/id[text()=&apos;00&apos; or text()=&apos;0&apos;]/text()</stringProp>
  440. <boolProp name="XPathExtractor.validate">false</boolProp>
  441. <boolProp name="XPathExtractor.tolerant">false</boolProp>
  442. <boolProp name="XPathExtractor.namespace">false</boolProp>
  443. <stringProp name="XPathExtractor.matchNumber">-1</stringProp>
  444. </XPathExtractor>
  445. <hashTree/>
  446. </hashTree>
  447. <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Бронирование, Подтверждение, Отмена" enabled="true"/>
  448. <hashTree>
  449. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Поиск свободных мест" enabled="true">
  450. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  451. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  452. <collectionProp name="Arguments.arguments">
  453. <elementProp name="" elementType="HTTPArgument">
  454. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  455. <stringProp name="Argument.value">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#xd;
  456. &lt;GetFreeSeatsRequest&gt;&#xd;
  457. &lt;tripId&gt;${tripId}&lt;/tripId&gt;&#xd;
  458. &lt;dispatchStationId&gt;${dispatchStationId}&lt;/dispatchStationId&gt;&#xd;
  459. &lt;arrivalStationId&gt;${arrivalStationId}&lt;/arrivalStationId&gt; &#xd;
  460. &lt;/GetFreeSeatsRequest&gt;</stringProp>
  461. <stringProp name="Argument.metadata">=</stringProp>
  462. </elementProp>
  463. </collectionProp>
  464. </elementProp>
  465. <stringProp name="HTTPSampler.domain"></stringProp>
  466. <stringProp name="HTTPSampler.port"></stringProp>
  467. <stringProp name="HTTPSampler.protocol"></stringProp>
  468. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  469. <stringProp name="HTTPSampler.path">${__V(server)}/sales/getFreeSeats</stringProp>
  470. <stringProp name="HTTPSampler.method">POST</stringProp>
  471. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  472. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  473. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  474. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  475. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  476. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  477. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  478. </HTTPSamplerProxy>
  479. <hashTree>
  480. <XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
  481. <hashTree/>
  482. <XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="Получить все ID мест" enabled="true">
  483. <stringProp name="XPathExtractor.default"></stringProp>
  484. <stringProp name="XPathExtractor.refname">seatId</stringProp>
  485. <stringProp name="XPathExtractor.xpathQuery">/GetFreeSeatsResponse/Body/Seat/id</stringProp>
  486. <boolProp name="XPathExtractor.validate">false</boolProp>
  487. <boolProp name="XPathExtractor.tolerant">false</boolProp>
  488. <boolProp name="XPathExtractor.namespace">false</boolProp>
  489. <stringProp name="XPathExtractor.matchNumber">-1</stringProp>
  490. </XPathExtractor>
  491. <hashTree/>
  492. <XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Есть места" enabled="true">
  493. <boolProp name="XPath.negate">false</boolProp>
  494. <stringProp name="XPath.xpath">count(/GetFreeSeatsResponse/Body/Seat)&gt;0</stringProp>
  495. <boolProp name="XPath.validate">false</boolProp>
  496. <boolProp name="XPath.whitespace">false</boolProp>
  497. <boolProp name="XPath.tolerant">false</boolProp>
  498. <boolProp name="XPath.namespace">false</boolProp>
  499. </XPathAssertion>
  500. <hashTree/>
  501. </hashTree>
  502. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Создание договора" enabled="true">
  503. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  504. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  505. <collectionProp name="Arguments.arguments">
  506. <elementProp name="" elementType="HTTPArgument">
  507. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  508. <stringProp name="Argument.value">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#xd;
  509. &lt;BookOrderRequest&gt;&#xd;
  510. &lt;tripId&gt;${tripId}&lt;/tripId&gt;&#xd;
  511. &lt;dispatchStationId&gt;${dispatchStationId}&lt;/dispatchStationId&gt;&#xd;
  512. &lt;arrivalStationId&gt;${arrivalStationId}&lt;/arrivalStationId&gt; &#xd;
  513. &lt;Sale&gt;&#xd;
  514. &lt;seatId&gt;${__V(seatId_${__Random(1,${seatId_matchNr})})}&lt;/seatId&gt;&#xd;
  515. &lt;ticketTypeId&gt;${ticketTypeIds_1}&lt;/ticketTypeId&gt;&#xd;
  516. &lt;Passenger&gt;&#xd;
  517. &lt;firstName&gt;${__RandomString(10,ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz)}&lt;/firstName&gt;&#xd;
  518. &lt;lastName&gt;${__RandomString(10,ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz)}&lt;/lastName&gt;&#xd;
  519. &lt;middleName&gt;${__RandomString(10,ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz)}&lt;/middleName&gt; &#xd;
  520. &lt;docNum&gt;${__RandomString(6,0123456789)}&lt;/docNum&gt; &#xd;
  521. &lt;docSeries&gt;${__RandomString(4,0123456789)}&lt;/docSeries&gt; &#xd;
  522. &lt;docTypeId&gt;${documentTypeIds_1}&lt;/docTypeId&gt; &#xd;
  523. &lt;birthday&gt;1985-01-01&lt;/birthday&gt;&#xd;
  524. &lt;citizenshipISO2&gt;RU&lt;/citizenshipISO2&gt;&#xd;
  525. &lt;gender&gt;MALE&lt;/gender&gt;&#xd;
  526. &lt;/Passenger&gt;&#xd;
  527. &lt;/Sale&gt; &#xd;
  528. &lt;Agent&gt;&#xd;
  529. &lt;name&gt;Test&lt;/name&gt;&#xd;
  530. &lt;inn&gt;2345678901&lt;/inn&gt;&#xd;
  531. &lt;/Agent&gt; &#xd;
  532. &lt;/BookOrderRequest&gt;</stringProp>
  533. <stringProp name="Argument.metadata">=</stringProp>
  534. </elementProp>
  535. </collectionProp>
  536. </elementProp>
  537. <stringProp name="HTTPSampler.domain"></stringProp>
  538. <stringProp name="HTTPSampler.port"></stringProp>
  539. <stringProp name="HTTPSampler.protocol"></stringProp>
  540. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  541. <stringProp name="HTTPSampler.path">${__V(server)}/sales/bookOrder</stringProp>
  542. <stringProp name="HTTPSampler.method">POST</stringProp>
  543. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  544. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  545. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  546. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  547. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  548. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  549. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  550. </HTTPSamplerProxy>
  551. <hashTree>
  552. <XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
  553. <hashTree/>
  554. <XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="Получить ID договора" enabled="true">
  555. <stringProp name="XPathExtractor.default"></stringProp>
  556. <stringProp name="XPathExtractor.refname">orderId</stringProp>
  557. <stringProp name="XPathExtractor.xpathQuery">/BookOrderResponse/Body/orderId</stringProp>
  558. <boolProp name="XPathExtractor.validate">false</boolProp>
  559. <boolProp name="XPathExtractor.tolerant">false</boolProp>
  560. <boolProp name="XPathExtractor.namespace">false</boolProp>
  561. <stringProp name="XPathExtractor.matchNumber">-1</stringProp>
  562. </XPathExtractor>
  563. <hashTree/>
  564. </hashTree>
  565. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Запрос информации по договору" enabled="true">
  566. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  567. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  568. <collectionProp name="Arguments.arguments">
  569. <elementProp name="" elementType="HTTPArgument">
  570. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  571. <stringProp name="Argument.value">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#xd;
  572. &lt;GetOrderRequest&gt;&#xd;
  573. &lt;orderId&gt;${orderId}&lt;/orderId&gt;&#xd;
  574. &lt;/GetOrderRequest&gt;</stringProp>
  575. <stringProp name="Argument.metadata">=</stringProp>
  576. </elementProp>
  577. </collectionProp>
  578. </elementProp>
  579. <stringProp name="HTTPSampler.domain"></stringProp>
  580. <stringProp name="HTTPSampler.port"></stringProp>
  581. <stringProp name="HTTPSampler.protocol"></stringProp>
  582. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  583. <stringProp name="HTTPSampler.path">${__V(server)}/sales/getOrder</stringProp>
  584. <stringProp name="HTTPSampler.method">POST</stringProp>
  585. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  586. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  587. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  588. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  589. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  590. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  591. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  592. </HTTPSamplerProxy>
  593. <hashTree>
  594. <XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
  595. <hashTree/>
  596. <XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Кол-во билетов = 1" enabled="true">
  597. <boolProp name="XPath.negate">false</boolProp>
  598. <stringProp name="XPath.xpath">count(/GetOrderResponse/Body/Ticket)=1</stringProp>
  599. <boolProp name="XPath.validate">false</boolProp>
  600. <boolProp name="XPath.whitespace">false</boolProp>
  601. <boolProp name="XPath.tolerant">false</boolProp>
  602. <boolProp name="XPath.namespace">false</boolProp>
  603. </XPathAssertion>
  604. <hashTree/>
  605. <XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="Получить ID билета" enabled="true">
  606. <stringProp name="XPathExtractor.default"></stringProp>
  607. <stringProp name="XPathExtractor.refname">ticketId</stringProp>
  608. <stringProp name="XPathExtractor.xpathQuery">/GetOrderResponse/Body/Ticket/id</stringProp>
  609. <boolProp name="XPathExtractor.validate">false</boolProp>
  610. <boolProp name="XPathExtractor.tolerant">false</boolProp>
  611. <boolProp name="XPathExtractor.namespace">false</boolProp>
  612. <stringProp name="XPathExtractor.matchNumber">-1</stringProp>
  613. </XPathExtractor>
  614. <hashTree/>
  615. <XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Статус договора" enabled="true">
  616. <boolProp name="XPath.negate">false</boolProp>
  617. <stringProp name="XPath.xpath">/GetOrderResponse/Body/Ticket/status/text()=&apos;RESERVED&apos;</stringProp>
  618. <boolProp name="XPath.validate">false</boolProp>
  619. <boolProp name="XPath.whitespace">false</boolProp>
  620. <boolProp name="XPath.tolerant">false</boolProp>
  621. <boolProp name="XPath.namespace">false</boolProp>
  622. </XPathAssertion>
  623. <hashTree/>
  624. <XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Страна" enabled="false">
  625. <boolProp name="XPath.negate">false</boolProp>
  626. <stringProp name="XPath.xpath">/GetOrderResponse/Body/Ticket/Passenger/citizenshipISO2/text()=&apos;RU&apos;</stringProp>
  627. <boolProp name="XPath.validate">false</boolProp>
  628. <boolProp name="XPath.whitespace">false</boolProp>
  629. <boolProp name="XPath.tolerant">false</boolProp>
  630. <boolProp name="XPath.namespace">false</boolProp>
  631. </XPathAssertion>
  632. <hashTree/>
  633. </hashTree>
  634. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Изменения данных пассажира" enabled="true">
  635. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  636. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  637. <collectionProp name="Arguments.arguments">
  638. <elementProp name="" elementType="HTTPArgument">
  639. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  640. <stringProp name="Argument.value">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#xd;
  641. &lt;UpdateTicketRequest&gt;&#xd;
  642. &lt;ticketId&gt;${ticketId}&lt;/ticketId&gt;&#xd;
  643. &lt;Passenger&gt;&#xd;
  644. &lt;firstName&gt;${__RandomString(10,ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz)}&lt;/firstName&gt;&#xd;
  645. &lt;lastName&gt;${__RandomString(10,ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz)}&lt;/lastName&gt;&#xd;
  646. &lt;middleName&gt;${__RandomString(10,ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz)}&lt;/middleName&gt; &#xd;
  647. &lt;docNum&gt;${__RandomString(6,0123456789)}&lt;/docNum&gt; &#xd;
  648. &lt;docSeries&gt;${__RandomString(4,0123456789)}&lt;/docSeries&gt; &#xd;
  649. &lt;docTypeId&gt;${documentTypeIds_1}&lt;/docTypeId&gt; &#xd;
  650. &lt;birthday&gt;1986-01-01&lt;/birthday&gt;&#xd;
  651. &lt;citizenshipISO2&gt;RU&lt;/citizenshipISO2&gt;&#xd;
  652. &lt;gender&gt;FEMALE&lt;/gender&gt;&#xd;
  653. &lt;/Passenger&gt;&#xd;
  654. &lt;/UpdateTicketRequest&gt;</stringProp>
  655. <stringProp name="Argument.metadata">=</stringProp>
  656. </elementProp>
  657. </collectionProp>
  658. </elementProp>
  659. <stringProp name="HTTPSampler.domain"></stringProp>
  660. <stringProp name="HTTPSampler.port"></stringProp>
  661. <stringProp name="HTTPSampler.protocol"></stringProp>
  662. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  663. <stringProp name="HTTPSampler.path">${__V(server)}/sales/updateTicket</stringProp>
  664. <stringProp name="HTTPSampler.method">POST</stringProp>
  665. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  666. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  667. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  668. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  669. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  670. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  671. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  672. </HTTPSamplerProxy>
  673. <hashTree>
  674. <XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
  675. <hashTree/>
  676. </hashTree>
  677. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Подтверждение оплаты" enabled="true">
  678. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  679. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  680. <collectionProp name="Arguments.arguments">
  681. <elementProp name="" elementType="HTTPArgument">
  682. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  683. <stringProp name="Argument.value">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#xd;
  684. &lt;ConfirmOrderRequest&gt;&#xd;
  685. &lt;orderId&gt;${orderId}&lt;/orderId&gt;&#xd;
  686. &lt;Agent&gt;&#xd;
  687. &lt;inn&gt;2345678901&lt;/inn&gt;&#xd;
  688. &lt;/Agent&gt;&#xd;
  689. &lt;/ConfirmOrderRequest&gt;</stringProp>
  690. <stringProp name="Argument.metadata">=</stringProp>
  691. </elementProp>
  692. </collectionProp>
  693. </elementProp>
  694. <stringProp name="HTTPSampler.domain"></stringProp>
  695. <stringProp name="HTTPSampler.port"></stringProp>
  696. <stringProp name="HTTPSampler.protocol"></stringProp>
  697. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  698. <stringProp name="HTTPSampler.path">${__V(server)}/sales/confirmOrder</stringProp>
  699. <stringProp name="HTTPSampler.method">POST</stringProp>
  700. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  701. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  702. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  703. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  704. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  705. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  706. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  707. </HTTPSamplerProxy>
  708. <hashTree>
  709. <XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
  710. <hashTree/>
  711. <XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Кол-во билетов = 1" enabled="true">
  712. <boolProp name="XPath.negate">false</boolProp>
  713. <stringProp name="XPath.xpath">count(/ConfirmOrderResponse/Body/Ticket)=1</stringProp>
  714. <boolProp name="XPath.validate">false</boolProp>
  715. <boolProp name="XPath.whitespace">false</boolProp>
  716. <boolProp name="XPath.tolerant">false</boolProp>
  717. <boolProp name="XPath.namespace">false</boolProp>
  718. </XPathAssertion>
  719. <hashTree/>
  720. <XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="Получить ID билета" enabled="true">
  721. <stringProp name="XPathExtractor.default"></stringProp>
  722. <stringProp name="XPathExtractor.refname">orderId</stringProp>
  723. <stringProp name="XPathExtractor.xpathQuery">/ConfirmOrderResponse/Body/Ticket/id</stringProp>
  724. <boolProp name="XPathExtractor.validate">false</boolProp>
  725. <boolProp name="XPathExtractor.tolerant">false</boolProp>
  726. <boolProp name="XPathExtractor.namespace">false</boolProp>
  727. <stringProp name="XPathExtractor.matchNumber">-1</stringProp>
  728. </XPathExtractor>
  729. <hashTree/>
  730. <XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Статус договора" enabled="true">
  731. <boolProp name="XPath.negate">false</boolProp>
  732. <stringProp name="XPath.xpath">/ConfirmOrderResponse/Body/Ticket/status/text()=&apos;SOLD&apos;</stringProp>
  733. <boolProp name="XPath.validate">false</boolProp>
  734. <boolProp name="XPath.whitespace">false</boolProp>
  735. <boolProp name="XPath.tolerant">false</boolProp>
  736. <boolProp name="XPath.namespace">false</boolProp>
  737. </XPathAssertion>
  738. <hashTree/>
  739. </hashTree>
  740. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Отмена билета" enabled="true">
  741. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  742. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  743. <collectionProp name="Arguments.arguments">
  744. <elementProp name="" elementType="HTTPArgument">
  745. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  746. <stringProp name="Argument.value">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#xd;
  747. &lt;CancelTicketRequest&gt;&#xd;
  748. &lt;ticketId&gt;${ticketId}&lt;/ticketId&gt;&#xd;
  749. &lt;Agent&gt;&lt;inn&gt;1234567890&lt;/inn&gt;&lt;/Agent&gt;&#xd;
  750. &lt;/CancelTicketRequest&gt;</stringProp>
  751. <stringProp name="Argument.metadata">=</stringProp>
  752. </elementProp>
  753. </collectionProp>
  754. </elementProp>
  755. <stringProp name="HTTPSampler.domain"></stringProp>
  756. <stringProp name="HTTPSampler.port"></stringProp>
  757. <stringProp name="HTTPSampler.protocol"></stringProp>
  758. <stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
  759. <stringProp name="HTTPSampler.path">${__V(server)}/sales/cancelTicket</stringProp>
  760. <stringProp name="HTTPSampler.method">POST</stringProp>
  761. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  762. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  763. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  764. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  765. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  766. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  767. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  768. </HTTPSamplerProxy>
  769. <hashTree>
  770. <XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
  771. <hashTree/>
  772. <XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Кол-во билетов = 1" enabled="true">
  773. <boolProp name="XPath.negate">false</boolProp>
  774. <stringProp name="XPath.xpath">count(/CancelTicketResponse/Body/Ticket)=1</stringProp>
  775. <boolProp name="XPath.validate">false</boolProp>
  776. <boolProp name="XPath.whitespace">false</boolProp>
  777. <boolProp name="XPath.tolerant">false</boolProp>
  778. <boolProp name="XPath.namespace">false</boolProp>
  779. </XPathAssertion>
  780. <hashTree/>
  781. <XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Статус договора" enabled="true">
  782. <boolProp name="XPath.negate">false</boolProp>
  783. <stringProp name="XPath.xpath">/CancelTicketResponse/Body/Ticket/status/text()=&apos;CANCELED&apos;</stringProp>
  784. <boolProp name="XPath.validate">false</boolProp>
  785. <boolProp name="XPath.whitespace">false</boolProp>
  786. <boolProp name="XPath.tolerant">false</boolProp>
  787. <boolProp name="XPath.namespace">false</boolProp>
  788. </XPathAssertion>
  789. <hashTree/>
  790. </hashTree>
  791. </hashTree>
  792. <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Бронирование, Подтверждение, Возврат" enabled="true"/>
  793. <hashTree>
  794. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Поиск свободных мест" enabled="true">
  795. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  796. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  797. <collectionProp name="Arguments.arguments">
  798. <elementProp name="" elementType="HTTPArgument">
  799. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  800. <stringProp name="Argument.value">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#xd;
  801. &lt;GetFreeSeatsRequest&gt;&#xd;
  802. &lt;tripId&gt;${tripId}&lt;/tripId&gt;&#xd;
  803. &lt;dispatchStationId&gt;${dispatchStationId}&lt;/dispatchStationId&gt;&#xd;
  804. &lt;arrivalStationId&gt;${arrivalStationId}&lt;/arrivalStationId&gt; &#xd;
  805. &lt;/GetFreeSeatsRequest&gt;</stringProp>
  806. <stringProp name="Argument.metadata">=</stringProp>
  807. </elementProp>
  808. </collectionProp>
  809. </elementProp>
  810. <stringProp name="HTTPSampler.domain"></stringProp>
  811. <stringProp name="HTTPSampler.port"></stringProp>
  812. <stringProp name="HTTPSampler.protocol"></stringProp>
  813. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  814. <stringProp name="HTTPSampler.path">${__V(server)}/sales/getFreeSeats</stringProp>
  815. <stringProp name="HTTPSampler.method">POST</stringProp>
  816. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  817. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  818. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  819. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  820. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  821. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  822. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  823. </HTTPSamplerProxy>
  824. <hashTree>
  825. <XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
  826. <hashTree/>
  827. <XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="Получить все ID мест" enabled="true">
  828. <stringProp name="XPathExtractor.default"></stringProp>
  829. <stringProp name="XPathExtractor.refname">seatId</stringProp>
  830. <stringProp name="XPathExtractor.xpathQuery">/GetFreeSeatsResponse/Body/Seat/id</stringProp>
  831. <boolProp name="XPathExtractor.validate">false</boolProp>
  832. <boolProp name="XPathExtractor.tolerant">false</boolProp>
  833. <boolProp name="XPathExtractor.namespace">false</boolProp>
  834. <stringProp name="XPathExtractor.matchNumber">-1</stringProp>
  835. </XPathExtractor>
  836. <hashTree/>
  837. <XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Есть места" enabled="true">
  838. <boolProp name="XPath.negate">false</boolProp>
  839. <stringProp name="XPath.xpath">count(/GetFreeSeatsResponse/Body/Seat)&gt;1</stringProp>
  840. <boolProp name="XPath.validate">false</boolProp>
  841. <boolProp name="XPath.whitespace">false</boolProp>
  842. <boolProp name="XPath.tolerant">false</boolProp>
  843. <boolProp name="XPath.namespace">false</boolProp>
  844. </XPathAssertion>
  845. <hashTree/>
  846. </hashTree>
  847. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Создание договора" enabled="true">
  848. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  849. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  850. <collectionProp name="Arguments.arguments">
  851. <elementProp name="" elementType="HTTPArgument">
  852. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  853. <stringProp name="Argument.value">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#xd;
  854. &lt;BookOrderRequest&gt;&#xd;
  855. &lt;tripId&gt;${tripId}&lt;/tripId&gt;&#xd;
  856. &lt;dispatchStationId&gt;${dispatchStationId}&lt;/dispatchStationId&gt;&#xd;
  857. &lt;arrivalStationId&gt;${arrivalStationId}&lt;/arrivalStationId&gt; &#xd;
  858. &lt;Sale&gt;&#xd;
  859. &lt;seatId&gt;${__V(seatId_${__Random(1,${seatId_matchNr})})}&lt;/seatId&gt;&#xd;
  860. &lt;ticketTypeId&gt;${ticketTypeIds_1}&lt;/ticketTypeId&gt;&#xd;
  861. &lt;Passenger&gt;&#xd;
  862. &lt;firstName&gt;${__RandomString(10,ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz)}&lt;/firstName&gt;&#xd;
  863. &lt;lastName&gt;${__RandomString(10,ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz)}&lt;/lastName&gt;&#xd;
  864. &lt;middleName&gt;${__RandomString(10,ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz)}&lt;/middleName&gt; &#xd;
  865. &lt;docNum&gt;${__RandomString(6,0123456789)}&lt;/docNum&gt; &#xd;
  866. &lt;docSeries&gt;${__RandomString(4,0123456789)}&lt;/docSeries&gt; &#xd;
  867. &lt;docTypeId&gt;${documentTypeIds_1}&lt;/docTypeId&gt; &#xd;
  868. &lt;birthday&gt;1985-01-01&lt;/birthday&gt;&#xd;
  869. &lt;citizenshipISO2&gt;RU&lt;/citizenshipISO2&gt;&#xd;
  870. &lt;gender&gt;MALE&lt;/gender&gt;&#xd;
  871. &lt;/Passenger&gt;&#xd;
  872. &lt;/Sale&gt; &#xd;
  873. &lt;/BookOrderRequest&gt;</stringProp>
  874. <stringProp name="Argument.metadata">=</stringProp>
  875. </elementProp>
  876. </collectionProp>
  877. </elementProp>
  878. <stringProp name="HTTPSampler.domain"></stringProp>
  879. <stringProp name="HTTPSampler.port"></stringProp>
  880. <stringProp name="HTTPSampler.protocol"></stringProp>
  881. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  882. <stringProp name="HTTPSampler.path">${__V(server)}/sales/bookOrder</stringProp>
  883. <stringProp name="HTTPSampler.method">POST</stringProp>
  884. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  885. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  886. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  887. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  888. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  889. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  890. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  891. </HTTPSamplerProxy>
  892. <hashTree>
  893. <XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
  894. <hashTree/>
  895. <XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="Получить ID договора" enabled="true">
  896. <stringProp name="XPathExtractor.default"></stringProp>
  897. <stringProp name="XPathExtractor.refname">orderId</stringProp>
  898. <stringProp name="XPathExtractor.xpathQuery">/BookOrderResponse/Body/orderId</stringProp>
  899. <boolProp name="XPathExtractor.validate">false</boolProp>
  900. <boolProp name="XPathExtractor.tolerant">false</boolProp>
  901. <boolProp name="XPathExtractor.namespace">false</boolProp>
  902. <stringProp name="XPathExtractor.matchNumber">-1</stringProp>
  903. </XPathExtractor>
  904. <hashTree/>
  905. </hashTree>
  906. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Запрос информации по договору" enabled="true">
  907. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  908. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  909. <collectionProp name="Arguments.arguments">
  910. <elementProp name="" elementType="HTTPArgument">
  911. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  912. <stringProp name="Argument.value">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#xd;
  913. &lt;GetOrderRequest&gt;&#xd;
  914. &lt;orderId&gt;${orderId}&lt;/orderId&gt;&#xd;
  915. &lt;/GetOrderRequest&gt;</stringProp>
  916. <stringProp name="Argument.metadata">=</stringProp>
  917. </elementProp>
  918. </collectionProp>
  919. </elementProp>
  920. <stringProp name="HTTPSampler.domain"></stringProp>
  921. <stringProp name="HTTPSampler.port"></stringProp>
  922. <stringProp name="HTTPSampler.protocol"></stringProp>
  923. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  924. <stringProp name="HTTPSampler.path">${__V(server)}/sales/getOrder</stringProp>
  925. <stringProp name="HTTPSampler.method">POST</stringProp>
  926. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  927. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  928. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  929. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  930. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  931. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  932. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  933. </HTTPSamplerProxy>
  934. <hashTree>
  935. <XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
  936. <hashTree/>
  937. <XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Кол-во билетов = 1" enabled="true">
  938. <boolProp name="XPath.negate">false</boolProp>
  939. <stringProp name="XPath.xpath">count(/GetOrderResponse/Body/Ticket)=1</stringProp>
  940. <boolProp name="XPath.validate">false</boolProp>
  941. <boolProp name="XPath.whitespace">false</boolProp>
  942. <boolProp name="XPath.tolerant">false</boolProp>
  943. <boolProp name="XPath.namespace">false</boolProp>
  944. </XPathAssertion>
  945. <hashTree/>
  946. <XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="Получить ID билета" enabled="true">
  947. <stringProp name="XPathExtractor.default"></stringProp>
  948. <stringProp name="XPathExtractor.refname">ticketId</stringProp>
  949. <stringProp name="XPathExtractor.xpathQuery">/GetOrderResponse/Body/Ticket/id</stringProp>
  950. <boolProp name="XPathExtractor.validate">false</boolProp>
  951. <boolProp name="XPathExtractor.tolerant">false</boolProp>
  952. <boolProp name="XPathExtractor.namespace">false</boolProp>
  953. <stringProp name="XPathExtractor.matchNumber">-1</stringProp>
  954. </XPathExtractor>
  955. <hashTree/>
  956. <XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Статус договора" enabled="true">
  957. <boolProp name="XPath.negate">false</boolProp>
  958. <stringProp name="XPath.xpath">/GetOrderResponse/Body/Ticket/status/text()=&apos;RESERVED&apos;</stringProp>
  959. <boolProp name="XPath.validate">false</boolProp>
  960. <boolProp name="XPath.whitespace">false</boolProp>
  961. <boolProp name="XPath.tolerant">false</boolProp>
  962. <boolProp name="XPath.namespace">false</boolProp>
  963. </XPathAssertion>
  964. <hashTree/>
  965. <XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Страна" enabled="false">
  966. <boolProp name="XPath.negate">false</boolProp>
  967. <stringProp name="XPath.xpath">/GetOrderResponse/Body/Ticket/Passenger/citizenshipISO2/text()=&apos;RU&apos;</stringProp>
  968. <boolProp name="XPath.validate">false</boolProp>
  969. <boolProp name="XPath.whitespace">false</boolProp>
  970. <boolProp name="XPath.tolerant">false</boolProp>
  971. <boolProp name="XPath.namespace">false</boolProp>
  972. </XPathAssertion>
  973. <hashTree/>
  974. </hashTree>
  975. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Изменения данных пассажира" enabled="true">
  976. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  977. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  978. <collectionProp name="Arguments.arguments">
  979. <elementProp name="" elementType="HTTPArgument">
  980. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  981. <stringProp name="Argument.value">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#xd;
  982. &lt;UpdateTicketRequest&gt;&#xd;
  983. &lt;ticketId&gt;${ticketId}&lt;/ticketId&gt;&#xd;
  984. &lt;Passenger&gt;&#xd;
  985. &lt;firstName&gt;${__RandomString(10,ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz)}&lt;/firstName&gt;&#xd;
  986. &lt;lastName&gt;${__RandomString(10,ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz)}&lt;/lastName&gt;&#xd;
  987. &lt;middleName&gt;${__RandomString(10,ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz)}&lt;/middleName&gt; &#xd;
  988. &lt;docNum&gt;${__RandomString(6,0123456789)}&lt;/docNum&gt; &#xd;
  989. &lt;docSeries&gt;${__RandomString(4,0123456789)}&lt;/docSeries&gt; &#xd;
  990. &lt;docTypeId&gt;${documentTypeIds_1}&lt;/docTypeId&gt; &#xd;
  991. &lt;birthday&gt;1986-01-01&lt;/birthday&gt;&#xd;
  992. &lt;citizenshipISO2&gt;RU&lt;/citizenshipISO2&gt;&#xd;
  993. &lt;gender&gt;FEMALE&lt;/gender&gt;&#xd;
  994. &lt;/Passenger&gt;&#xd;
  995. &lt;/UpdateTicketRequest&gt;</stringProp>
  996. <stringProp name="Argument.metadata">=</stringProp>
  997. </elementProp>
  998. </collectionProp>
  999. </elementProp>
  1000. <stringProp name="HTTPSampler.domain"></stringProp>
  1001. <stringProp name="HTTPSampler.port"></stringProp>
  1002. <stringProp name="HTTPSampler.protocol"></stringProp>
  1003. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  1004. <stringProp name="HTTPSampler.path">${__V(server)}/sales/updateTicket</stringProp>
  1005. <stringProp name="HTTPSampler.method">POST</stringProp>
  1006. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  1007. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  1008. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  1009. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  1010. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  1011. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  1012. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  1013. </HTTPSamplerProxy>
  1014. <hashTree>
  1015. <XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
  1016. <hashTree/>
  1017. </hashTree>
  1018. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Подтверждение оплаты" enabled="true">
  1019. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  1020. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  1021. <collectionProp name="Arguments.arguments">
  1022. <elementProp name="" elementType="HTTPArgument">
  1023. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  1024. <stringProp name="Argument.value">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#xd;
  1025. &lt;ConfirmOrderRequest&gt;&#xd;
  1026. &lt;orderId&gt;${orderId}&lt;/orderId&gt;&#xd;
  1027. &lt;Agent&gt;&#xd;
  1028. &lt;inn&gt;2345678901&lt;/inn&gt;&#xd;
  1029. &lt;name&gt;Test&lt;/name&gt;&#xd;
  1030. &lt;/Agent&gt;&#xd;
  1031. &lt;/ConfirmOrderRequest&gt;</stringProp>
  1032. <stringProp name="Argument.metadata">=</stringProp>
  1033. </elementProp>
  1034. </collectionProp>
  1035. </elementProp>
  1036. <stringProp name="HTTPSampler.domain"></stringProp>
  1037. <stringProp name="HTTPSampler.port"></stringProp>
  1038. <stringProp name="HTTPSampler.protocol"></stringProp>
  1039. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  1040. <stringProp name="HTTPSampler.path">${__V(server)}/sales/confirmOrder</stringProp>
  1041. <stringProp name="HTTPSampler.method">POST</stringProp>
  1042. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  1043. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  1044. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  1045. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  1046. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  1047. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  1048. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  1049. </HTTPSamplerProxy>
  1050. <hashTree>
  1051. <XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
  1052. <hashTree/>
  1053. <XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Кол-во билетов = 1" enabled="true">
  1054. <boolProp name="XPath.negate">false</boolProp>
  1055. <stringProp name="XPath.xpath">count(/ConfirmOrderResponse/Body/Ticket)=1</stringProp>
  1056. <boolProp name="XPath.validate">false</boolProp>
  1057. <boolProp name="XPath.whitespace">false</boolProp>
  1058. <boolProp name="XPath.tolerant">false</boolProp>
  1059. <boolProp name="XPath.namespace">false</boolProp>
  1060. </XPathAssertion>
  1061. <hashTree/>
  1062. <XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="Получить ID билета" enabled="true">
  1063. <stringProp name="XPathExtractor.default"></stringProp>
  1064. <stringProp name="XPathExtractor.refname">orderId</stringProp>
  1065. <stringProp name="XPathExtractor.xpathQuery">/ConfirmOrderResponse/Body/Ticket/id</stringProp>
  1066. <boolProp name="XPathExtractor.validate">false</boolProp>
  1067. <boolProp name="XPathExtractor.tolerant">false</boolProp>
  1068. <boolProp name="XPathExtractor.namespace">false</boolProp>
  1069. <stringProp name="XPathExtractor.matchNumber">-1</stringProp>
  1070. </XPathExtractor>
  1071. <hashTree/>
  1072. <XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Статус договора" enabled="true">
  1073. <boolProp name="XPath.negate">false</boolProp>
  1074. <stringProp name="XPath.xpath">/ConfirmOrderResponse/Body/Ticket/status/text()=&apos;SOLD&apos;</stringProp>
  1075. <boolProp name="XPath.validate">false</boolProp>
  1076. <boolProp name="XPath.whitespace">false</boolProp>
  1077. <boolProp name="XPath.tolerant">false</boolProp>
  1078. <boolProp name="XPath.namespace">false</boolProp>
  1079. </XPathAssertion>
  1080. <hashTree/>
  1081. </hashTree>
  1082. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Возврат билета" enabled="true">
  1083. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  1084. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  1085. <collectionProp name="Arguments.arguments">
  1086. <elementProp name="" elementType="HTTPArgument">
  1087. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  1088. <stringProp name="Argument.value">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#xd;
  1089. &lt;ReturnTicketRequest&gt;&#xd;
  1090. &lt;ticketId&gt;${ticketId}&lt;/ticketId&gt;&#xd;
  1091. &lt;Agent&gt;&#xd;
  1092. &lt;inn&gt;2345678901&lt;/inn&gt;&#xd;
  1093. &lt;/Agent&gt;&#xd;
  1094. &lt;/ReturnTicketRequest&gt;</stringProp>
  1095. <stringProp name="Argument.metadata">=</stringProp>
  1096. </elementProp>
  1097. </collectionProp>
  1098. </elementProp>
  1099. <stringProp name="HTTPSampler.domain"></stringProp>
  1100. <stringProp name="HTTPSampler.port"></stringProp>
  1101. <stringProp name="HTTPSampler.protocol"></stringProp>
  1102. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  1103. <stringProp name="HTTPSampler.path">${__V(server)}/sales/returnTicket</stringProp>
  1104. <stringProp name="HTTPSampler.method">POST</stringProp>
  1105. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  1106. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  1107. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  1108. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  1109. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  1110. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  1111. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  1112. </HTTPSamplerProxy>
  1113. <hashTree>
  1114. <XMLAssertion guiclass="XMLAssertionGui" testclass="XMLAssertion" testname="Это XML?" enabled="false"/>
  1115. <hashTree/>
  1116. <XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Кол-во билетов = 1" enabled="true">
  1117. <boolProp name="XPath.negate">false</boolProp>
  1118. <stringProp name="XPath.xpath">count(/ReturnTicketResponse/Body/Ticket)=1</stringProp>
  1119. <boolProp name="XPath.validate">false</boolProp>
  1120. <boolProp name="XPath.whitespace">false</boolProp>
  1121. <boolProp name="XPath.tolerant">false</boolProp>
  1122. <boolProp name="XPath.namespace">false</boolProp>
  1123. </XPathAssertion>
  1124. <hashTree/>
  1125. <XPathAssertion guiclass="XPathAssertionGui" testclass="XPathAssertion" testname="Статус договора" enabled="true">
  1126. <boolProp name="XPath.negate">false</boolProp>
  1127. <stringProp name="XPath.xpath">/ReturnTicketResponse/Body/Ticket/status/text()=&apos;RETURNED&apos;</stringProp>
  1128. <boolProp name="XPath.validate">false</boolProp>
  1129. <boolProp name="XPath.whitespace">false</boolProp>
  1130. <boolProp name="XPath.tolerant">false</boolProp>
  1131. <boolProp name="XPath.namespace">false</boolProp>
  1132. </XPathAssertion>
  1133. <hashTree/>
  1134. </hashTree>
  1135. </hashTree>
  1136. </hashTree>
  1137. </hashTree>
  1138. </hashTree>
  1139. <DebugSampler guiclass="TestBeanGUI" testclass="DebugSampler" testname="Debug Sampler" enabled="true">
  1140. <boolProp name="displayJMeterProperties">false</boolProp>
  1141. <boolProp name="displayJMeterVariables">true</boolProp>
  1142. <boolProp name="displaySystemProperties">false</boolProp>
  1143. </DebugSampler>
  1144. <hashTree/>
  1145. <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
  1146. <boolProp name="ResultCollector.error_logging">false</boolProp>
  1147. <objProp>
  1148. <name>saveConfig</name>
  1149. <value class="SampleSaveConfiguration">
  1150. <time>true</time>
  1151. <latency>true</latency>
  1152. <timestamp>true</timestamp>
  1153. <success>true</success>
  1154. <label>true</label>
  1155. <code>true</code>
  1156. <message>true</message>
  1157. <threadName>true</threadName>
  1158. <dataType>true</dataType>
  1159. <encoding>false</encoding>
  1160. <assertions>true</assertions>
  1161. <subresults>true</subresults>
  1162. <responseData>false</responseData>
  1163. <samplerData>false</samplerData>
  1164. <xml>false</xml>
  1165. <fieldNames>false</fieldNames>
  1166. <responseHeaders>false</responseHeaders>
  1167. <requestHeaders>false</requestHeaders>
  1168. <responseDataOnError>false</responseDataOnError>
  1169. <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
  1170. <assertionsResultsToSave>0</assertionsResultsToSave>
  1171. <bytes>true</bytes>
  1172. <threadCounts>true</threadCounts>
  1173. </value>
  1174. </objProp>
  1175. <stringProp name="filename"></stringProp>
  1176. </ResultCollector>
  1177. <hashTree/>
  1178. <ResultCollector guiclass="StatVisualizer" testclass="ResultCollector" testname="Aggregate Report" enabled="true">
  1179. <boolProp name="ResultCollector.error_logging">false</boolProp>
  1180. <objProp>
  1181. <name>saveConfig</name>
  1182. <value class="SampleSaveConfiguration">
  1183. <time>true</time>
  1184. <latency>true</latency>
  1185. <timestamp>true</timestamp>
  1186. <success>true</success>
  1187. <label>true</label>
  1188. <code>true</code>
  1189. <message>true</message>
  1190. <threadName>true</threadName>
  1191. <dataType>true</dataType>
  1192. <encoding>false</encoding>
  1193. <assertions>true</assertions>
  1194. <subresults>true</subresults>
  1195. <responseData>false</responseData>
  1196. <samplerData>false</samplerData>
  1197. <xml>false</xml>
  1198. <fieldNames>false</fieldNames>
  1199. <responseHeaders>false</responseHeaders>
  1200. <requestHeaders>false</requestHeaders>
  1201. <responseDataOnError>false</responseDataOnError>
  1202. <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
  1203. <assertionsResultsToSave>0</assertionsResultsToSave>
  1204. <bytes>true</bytes>
  1205. <threadCounts>true</threadCounts>
  1206. </value>
  1207. </objProp>
  1208. <stringProp name="filename"></stringProp>
  1209. </ResultCollector>
  1210. <hashTree/>
  1211. <ResultCollector guiclass="StatGraphVisualizer" testclass="ResultCollector" testname="Aggregate Graph" enabled="true">
  1212. <boolProp name="ResultCollector.error_logging">false</boolProp>
  1213. <objProp>
  1214. <name>saveConfig</name>
  1215. <value class="SampleSaveConfiguration">
  1216. <time>true</time>
  1217. <latency>true</latency>
  1218. <timestamp>true</timestamp>
  1219. <success>true</success>
  1220. <label>true</label>
  1221. <code>true</code>
  1222. <message>true</message>
  1223. <threadName>true</threadName>
  1224. <dataType>true</dataType>
  1225. <encoding>false</encoding>
  1226. <assertions>true</assertions>
  1227. <subresults>true</subresults>
  1228. <responseData>false</responseData>
  1229. <samplerData>false</samplerData>
  1230. <xml>false</xml>
  1231. <fieldNames>false</fieldNames>
  1232. <responseHeaders>false</responseHeaders>
  1233. <requestHeaders>false</requestHeaders>
  1234. <responseDataOnError>false</responseDataOnError>
  1235. <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
  1236. <assertionsResultsToSave>0</assertionsResultsToSave>
  1237. <bytes>true</bytes>
  1238. <threadCounts>true</threadCounts>
  1239. </value>
  1240. </objProp>
  1241. <stringProp name="filename"></stringProp>
  1242. </ResultCollector>
  1243. <hashTree/>
  1244. </hashTree>
  1245. </hashTree>
  1246. </hashTree>
  1247. </jmeterTestPlan>