【发布时间】:2019-02-28 02:13:50
【问题描述】:
我的模拟场景如下。
场景:pathMatches('/tokenisationservice/TokenisationWS_1_3') && bodyPath('/Envelope/Body/getToken/GetTokenRequest/enterpriseID') == '1'
要嘲笑的网址-'http://localhost:8080/tokenisationservice/TokenisationWS_1_3'
请求 XML
<soapenv:Envelope blah blah blah>
<soapenv:Header/>
<soapenv:Body>
<tok:getToken>
<GetTokenRequest>
<enterpriseID>1</enterpriseID>
<merchantGroupID>1</merchantGroupID>
<pan>1234567890123456</pan>
</GetTokenRequest>
</tok:getToken>
</soapenv:Body>
</soapenv:Envelope>
运行独立的 karate-netty。这会产生以下错误,并且不会返回所需的响应。
15:53:19.159 [nioEventLoopGroup-3-3] 警告 com.intuit.karate - 场景匹配评估失败:javascript 评估失败:pathMatches('/tokenisationservice/TokenisationWS_1_3') && bodyPath('/Enve lope/Body/getToken/GetTokenRequest/enterpriseID') == '1'
【问题讨论】:
标签: karate