boncwik
6 years agoNew Contributor
Multiple SOAP requests, increasing one parameter
Hi All,
At first, apologize if this is a wrong place for this question and if that question has already been asked.
I'm a new SOAP user and have to run hundreds of SOAP requests, like that one below:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xmii="http://www.sap.com/xMII"> <soapenv:Header/> <soapenv:Body> <xmii:XacuteRequest> <xmii:InputParams> <xmii:DateStarted>2020-03-26T07:00:00.000</xmii:DateStarted> <xmii:ExpiryTime>2021-03-26T07:00:00.000</xmii:ExpiryTime> <xmii:Item>Material1</xmii:Item> <xmii:Quantity>1</xmii:Quantity> <xmii:Resource>Machine1</xmii:Resource> <xmii:Sfc>TEST000001</xmii:Sfc> <xmii:ShopOrder>1234567890</xmii:ShopOrder> <xmii:UserId>QW1234</xmii:UserId> </xmii:InputParams> </xmii:XacuteRequest> </soapenv:Body> </soapenv:Envelope>
Each time I run the request I have to just increase SFC parameter with "+1". So with the second call I will send TEST000002, with the third it will be TEST000003 and so on...
I assume that I could create a test case which will do that job very quickly but I don't knwo how, I'm a dumb :)
Can someone help me creating a test case for that or maybe there is an another solution?
Thanks in advance.