我有一个关于使用gatling测试SOAP post方法的问题。例如我想知道如何为下面编写一个gatling脚本,是否可以在Gatling中使用?
POST http://services.online.local:4059/Business/EventReporterV2 HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://fakeurl.com/Service/2013-
03/IStandardEndpoint/GetServiceVersion"
Host: r20services.onlinegaming.local:4059
Content-Length: 161
Expect: 100-continue
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<GetServiceVersion xmlns="http://fakeurl.com/Service/2013-03"/>
</s:Body>
</s:Envelope>
是的可能。您可以像使用SOAP标头的post方法一样测试它,并使用文件.body(ElFileBody(requestBodyFilePath)).asXML
中的请求主体