Forum Discussion

MaryK's avatar
MaryK
New Contributor
9 years ago

Change ID in XML

Hello guys!

I need to test web services and have one XML. I need to perform a load test for more than 70 000 requests. The question is: How can I change an ID in my XML with the help of SOAPUI to generate 70 000 different requests.

Thank you!

  • In the request, use the below value for the element. During the load test, it will automatically gets unique value.

     

    ${=java.util.UUID.randomUUID().toString()}

     

     

     

    For eg:

    <?xml version="1.0" encoding="UTF-8"?>

    <root>

       <uniqueId>${=java.util.UUID.randomUUID().toString()}</uniqueId>

    </root>

  • nmrao's avatar
    nmrao
    Champion Level 3

    In the request, use the below value for the element. During the load test, it will automatically gets unique value.

     

    ${=java.util.UUID.randomUUID().toString()}

     

     

     

    For eg:

    <?xml version="1.0" encoding="UTF-8"?>

    <root>

       <uniqueId>${=java.util.UUID.randomUUID().toString()}</uniqueId>

    </root>