如何使用Gatling对SOAP Post动作进行Perf测试

问题描述 投票:0回答:1

我有一个关于使用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 gatling
1个回答
0
投票

是的可能。您可以像使用SOAP标头的post方法一样测试它,并使用文件.body(ElFileBody(requestBodyFilePath)).asXML中的请求主体

© www.soinside.com 2019 - 2024. All rights reserved.