Testing SOAP API using JMETER
Testing SOAP API using JMETER
I would like to demonstrate Testing of SOAP API's in Jmeter .
Let's take an example of below soap request to be tested .
End Point of the Soap API : - https://${Staging}:443/services/soap/?version=1.6&facility=04
Soap Request:-
<soapenv:Envelope xmlns:ser="http://uniware.unicommerce.com/services/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-1">
<wsse:Username>testing</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">7cefc09e-3a49-4e87-84f0-cbb5671c55cc</wsse:Password>
<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">o0wXHNOpdPK0ON/9NTb2xA==</wsse:Nonce>
<wsu:Created>2014-06-26T12:21:17.254Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<ser:GetInventorySnapshotRequest>
<ser:ItemTypes>
<!--Zero or more repetitions:-->
<ser:ItemType>
<ser:ItemSKU>ASHISH</ser:ItemSKU>
</ser:ItemType>
</ser:ItemTypes>
</ser:GetInventorySnapshotRequest>
</soapenv:Body>
</soapenv:Envelope>
* You can parametrize the username and password by using user defined variables .
Steps -
1. Open Jmeter > Add Thread Group >> Add SOAP/XML-RPC REQUEST Sampler
2. Add end point of the service and add xml request in body
3. Verify response data .
This post is much helpful for us. This is really very massive value to all the readers and it will be the only reason for the post to get popular with great authority.GREAT topic! It is really interesting to read from the beginning & I would like to share your blog to my circles, keep sharing…
ReplyDeleteDevOps Training in Chennai
DevOps Online Training in Chennai
DevOps Training in Bangalore
DevOps Training in Hyderabad
DevOps Training in Coimbatore
DevOps Training
DevOps Online Training
Waoo Awesome content posting,Many developers would agree that soap-api is difficult and complex
ReplyDeletewhereas soap-api is simple and so more productive,This site is so amazing.This sites gives good knowledge of soap-api.