Forum Discussion

aksekifdr's avatar
aksekifdr
New Contributor
7 years ago

How do i get de code delayed for 10 seconds in SOAPUI

Hereby the code:

De delay(or a timeout) i want to have is after code <urn:ids>${#TestSuite#MEETAANSL1}</urn:ids>

for 10 seconds.

 

   <soapenv:Body>
      <urn:delete>
         <urn:ids>${#TestSuite#MEETAANSL1}</urn:ids>
         <urn:ids>${#TestSuite#ASSET_AANSL1}</urn:ids>
         <urn:ids>${#TestSuite#ASSET_AANSL2}</urn:ids>
         <urn:ids>${#TestSuite#ASSET_AANSL3}</urn:ids>
         <urn:ids>${#TestSuite#ASSET_AANSL4}</urn:ids>

      </urn:delete>
   </soapenv:Body>

 

-------------

i tried

<delay>10000</delay> b

and i get the fault code     

<soapenv:Fault>
         <faultcode>soapenv:Client</faultcode>
         <faultstring>Element {}delay invalid at this location</faultstring>
      </soapenv:Fault>

  • JHunt's avatar
    JHunt
    Community Hero

    Hi,

    I'm not clear on what you're asking, but try this:

    ${= sleep(10000) }