Forum Discussion

bbezanson's avatar
bbezanson
New Contributor
13 years ago

loadUI/soapUI with unique attachments for each test

I have a soapUI request that has an attachment (soap xml file). In that attachment is a unique key. I can only send the attachment with that key once -- otherwise I get a duplicate key response.

Is there anyway to do this with soapUI, loadUI, or a combination of the two?

In an ideal world I would be able to configure the text to search for in the attachment and give it a range of test values to be used -- that way soapUI/loadUI could have a primary key that would allow for multiple thread too.

For example: in my "attachment.xml" I would have something like:

<id root="1.23.45.678.91012.0123.34456.REPLACEME"/>

And in soapUI/loadUI I would be able to set something like:
VALUE_TO_REPLACE = REPLACEME
VALUE_FORMAT = integer
VALUE_SIZE = 16
VALUE_PADDING = T (uses leading zeros for integer format, for character it would use spaces)
VALUE_PREFIX =
VALUE_SUFFIX =
VALUE_START=1
VALUE_END=10000

and so in my tests the first file attachment would have in it:

<id root="1.23.45.678.91012.0123.34456.0000000000000001"/>

the next would be:

<id root="1.23.45.678.91012.0123.34456.0000000000000002"/>

etc.

Ideally the system would know the last value used and modify start/end for the next runs.

Thanks for any/all help,

Brian

2 Replies

  • clickit74's avatar
    clickit74
    New Contributor
    Hello Brian. I have a similar situation where I am sending requests which have a unique application number. The number has to change each time I send a request.

    Did you ever figure out how to make this happen?

    Thanks.

    Rod
  • bbezanson's avatar
    bbezanson
    New Contributor
    Rod,

    I was able to use a single file and read in the unique values, but I was then limited to using only a single thread for testing -- so load testing was not exercised properly.

    I have since moved to another team/project and haven't had the need to revisit that scenario again.

    Good luck,

    Brian