Webサービスプロジェクトを作成しました。私はエラーを取得しています。このテストケースを実行している場合はKatalon Studio:MTOMが有効なSOAP WebサービスのVerifyElementTextテストケースを作成するには?
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
def response = WS.sendRequest(findTestObject('ProductById'))
WS.verifyElementText(response, "Product.Reference", "MyReference")
:[FAILED] - Unable to verify element text (Root cause: org.xml.sax.SAXParseException: Content is not allowed in prolog.)
その後、私が使用しているdocumentationに示すように、素子のテキストを確認し、私のテストケースのスクリプトは次のとおり:com.kms.katalon.core.util.KeywordUtil#logInfo
があった、私が受け取った、response.responseText
を見るために:私はMTOM
をテストしてい
--uuid:4e39ea48-6560-46b7-a30c-201dfaf98f51
Content-Type: application/xop+xml; charset=UTF-8; type="text/xml";
Content-Transfer-Encoding: binary
Content-ID: <[email protected]>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getProductResponse xmlns:ns2="http://mycompany.com/"><Product><Reference>VW3A8306R</Reference></Product></ns2:getProductResponse></soap:Body></soap:Envelope>
--uuid:4e39ea48-6560-46b7-a30c-201dfaf98f51--
Webサービスが有効になって。そのため、応答テキストはその形式になっています。
この場合のテストケースの作成方法は?