Forum Discussion

matho's avatar
matho
New Contributor
13 years ago

Inject multiple xml files into web service interface

I'm new to LoadUI and trying to set up a test which I think should be fairly straightforward...

We've got a SoapUI script working to send an XML message to a web service via WSDL and into the target application. We now need to do a volume test and have 100,000 test XML files prepared ready to inject into the interface. Can I use LoadUI with the existing SoapUI request to pick up the XML files and send them into the web service? Note that the way we have the current SoapUI test set up is that we copy/paste the content of a single XML file, so we may need to tweak this to read in the content of a XML file instead.

Hope this makes sense - let me know if I've missed any important info!

Thanks in advance!

5 Replies

  • abhishek813's avatar
    abhishek813
    Frequent Contributor
    Your current setup wouldn't work.

    You have to create a data driven test which will read your XML's and execute them. Use a data source and data loop step. Once this has been created in soapUI just convert it into a loadUI test and it should work.
  • matho's avatar
    matho
    New Contributor
    Thanks Abhishek - I'll try your suggestion and report back
  • dlshap's avatar
    dlshap
    New Contributor
    I am able to build data-driven test in soapUI with directory datasource loop. But when I try to run in loadUI using soapUI runner, it doesn't run the datasource loop step. Also, it shows the request as failing, so I'm skeptical that the testcase actually plugged in the datasource values.

    1) Can someone confirm that loadUI will actually run a datasource loop?
    2) What is easiest way to see the response for a failed request?
  • dlshap's avatar
    dlshap
    New Contributor
    I have tried to do the same thing. I created a soapUI testcase that uses a datasource loop. But when I use the soapUI runner in LoadUI, it disables the loop step, and doesn't seem to plug in the properties from the datasource into the request. Can someone suggest an example somewhere of how to do this?
  • Hi!
    The normal behavior of the SoapUI Runner is to share datasources across all virtual users. This means that the first virtual user would use the first row in the data source and the second virtual user would use the second row and so on. Because of this, the normal use case of datasources does not require the loops.

    In some cases you still need the data source to loop for each virtual user. Then you need to uncheck the "Make all datasources shared" radio button in the SoapUI Runner settings in Menu -> Settings.

    Does that help you?

    Regards,
    Max