Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Feature: Сервис для получения инфы по внешней карте
- Background:
- * url serverUrl
- * path "SET-Cards/SET/Cards/ExternalSystemCardsProcessing"
- * def importCards =
- """
- function() {
- var WSCards = Java.type('ru.crystals.testingtools.ws.WSCards');
- var TestContext = Java.type('ru.crystals.settester.TestContext')
- var jd = new WSCards(TestContext.CENTRUM.getHost());
- jd.importCardsFromXml("import/catalog-cards-externalcards-proc.xml", true);
- }
- """
- * call importCards
- Scenario: Базовая проверка доступности сервиса
- Given request
- """
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:proc="http://processing.cards.crystals.ru/">
- <SOAP-ENV:Header/>
- <SOAP-ENV:Body>
- <proc:getCardStatus>
- <cardNumber>241017</cardNumber>
- </proc:getCardStatus>
- </SOAP-ENV:Body>
- </SOAP-ENV:Envelope>
- """
- When method POST
- Then status 200
- And match response /Envelope/Body/getCardStatusResponse/return/cardNumber == "241017"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement