Advertisement
fedorm

Untitled

Sep 18th, 2018
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.23 KB | None | 0 0
  1. Feature: Сервис для получения инфы по внешней карте
  2.  
  3.   Background:
  4.     * url serverUrl
  5.     * path "SET-Cards/SET/Cards/ExternalSystemCardsProcessing"
  6.     * def importCards =
  7.       """
  8.         function() {
  9.           var WSCards = Java.type('ru.crystals.testingtools.ws.WSCards');
  10.           var TestContext = Java.type('ru.crystals.settester.TestContext')
  11.           var jd = new WSCards(TestContext.CENTRUM.getHost());
  12.           jd.importCardsFromXml("import/catalog-cards-externalcards-proc.xml", true);
  13.         }
  14.       """
  15.     * call importCards
  16.  
  17.   Scenario: Базовая проверка доступности сервиса
  18.     Given request
  19.     """
  20.       <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  21.       <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:proc="http://processing.cards.crystals.ru/">
  22.         <SOAP-ENV:Header/>
  23.         <SOAP-ENV:Body>
  24.           <proc:getCardStatus>
  25.             <cardNumber>241017</cardNumber>
  26.          </proc:getCardStatus>
  27.        </SOAP-ENV:Body>
  28.       </SOAP-ENV:Envelope>
  29.     """
  30.     When method POST
  31.     Then status 200
  32.     And match response /Envelope/Body/getCardStatusResponse/return/cardNumber == "241017"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement