Forum Discussion

BA_Service_Haus's avatar
BA_Service_Haus
Regular Contributor
15 years ago

How to generate a data source for complex data types

Hi,

we want to use data source test steps in soapUI Pro.
But when analyzing the structur of our requests and responses, we couldn't get a good idea how to put the data into our data source properly.

For example:
There is a request structure like
<organization>
<id></id>
<employee>
<name></name>
<age></age>
</employee>
</organisation>

It is defined, that organization and employ can be used 1 to n times.
Then we will have a problem to define the test data a data driven test cycle in one row.
Especially if the count of used organisations or employees differ from one data set to the next one.

Is there any special concept in soapUI to handle this "multi-dimension-data" problem?

Best regards
Nico

2 Replies

  • Hello again!

    I'm not sure that I understand the exact problem. For example, this confuses me "how to put the data into our data source properly" since you don't put data into DataSources.

    However, I think that I get the general problem of multi-dimensioned data and I think that it's a very interesting one. You can achieve this in soapUI by using extensive Groovy scripting (see how to loop through XML element), but not without scripting.

    I've putted this as an issue to our backlog. Hopefully we'll come up with an easier way to perform this in upcoming soapUI releases.

    Once again, sorry for the late response.

    /Henrik
    eviware.com