Forum Discussion
arshwarsi
14 years agoNew Contributor
Thanks Martin for replying. Sorry for confusion. I will make it easy .Because this question's answer can help lots of people using SOAPUI
First i want to parameterize from datasource name like Dad1, Son1 and age like 50, 30 of parent and child.
The scenario is little tricky.
Second for easy , child is array element .First request is as above , but in second request Dad1 will have two children named Son1 and Son2 and also Son1 and Son2 will be having one or many children. So like wise in each run number of children will vary ,...
Just assume this generation hierarchy . So request will be dynamic based on number of children taken from datasource.
<ns1:People xmlns:ns1="http://www.example.org/ParentChildGrandChild">
<ns1:Person>
<ns1:Name>Dad1</ns1:Name><ns1:Age>50</ns1:Age>
<ns1:Child>
<ns1:Name>Son1</ns1:Name>
<ns1:Age>30</ns1:Age>
<ns1:Child>
<ns1:Name>Son1'sDaughther</ns1:Name>
<ns1:Age>3</ns1:Age>
</ns1:Child>
</ns1:Child>
</ns1:Person></ns1:People>
First i want to parameterize from datasource name like Dad1, Son1 and age like 50, 30 of parent and child.
The scenario is little tricky.
Second for easy , child is array element .First request is as above , but in second request Dad1 will have two children named Son1 and Son2 and also Son1 and Son2 will be having one or many children. So like wise in each run number of children will vary ,...
Just assume this generation hierarchy . So request will be dynamic based on number of children taken from datasource.