Протокол 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.

1161 lines
78 KiB

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