We have a requirement to generate XML file which has the below structure
<A>
<B>
<C>
<D>
<E>
</C>
<C>
<D>
<E>
</C>
<C>
<D>
<E>
</C>
.
.
.
</B>
</A>
The structure
<C>
<D>
<E>
</C> is getting repeated N number of times.
I uploaded this XML and created derived tables. If I wanted to have 100 repetitions of the above-mentioned structure then in CA TDM tool I have to configure 100 rows for <C><D><E>.
Is there any way this can be handled by a single row of configuration?
We need this structure to repeated as many times as needed.
TDM 4.9X , 4.10.x
Test Data Manager
N/A
This is a tricky problem. from the child table, you are referencing the first published row in the parent table.
What you need to do is to ensure that in the child table col referencing the parent table, you should make sure that you are dynamically updating the ref value based on the published row.
In your example, you have 3 Cs and in each C you have one D and one E
<C>
<D>
<E>
</C>
<C>
<D>
<E>
</C>
<C>
<D>
<E>
</C>
Here is a simplified solution to your problem
Using your data definition window for table C, create 3 rows.
D and E will have each one row and the table publish count should be set to 3.
Now from D and E, you need to refer to one of the rows in C depending on the PUBROW value for D and E.
Let's focus on D for an example ...
C has a primary key called ID
D has an FK relationship called ID_C to ID in C
in col ID_C I would use ^C.ID(~PUBROW~)^
during publish
3 rows are generated for C
3 rows are generated for D. however each row in D will reference a different row in C as we used ~PUBROW~
<C>
<D>