Forum Discussion

klind's avatar
klind
New Contributor
12 years ago

Substitute value in xml in DataGen

Hi, I created a DataGen step.
I have 4 arguments to my soap endpoint. One of these arguments is a xml document.
In this xml document I would like to substitute some values for each run. Is that possible ? In this case the customer_invoice

<arg2>${DataGen#requestID}</arg2>


<arg3>
<![CDATA[
<order>
<customer_invoice>201223686</customer_invoice>
<ts_created>2013-11-03T17:15:21.000-08:00</ts_created>
<priority>0</priority>
</order>
]]></arg3>
  • klind's avatar
    klind
    New Contributor
    I found that I can just do this with a DataGen step that adds one to a property

    <arg3>
    <![CDATA[
    <order>
    <customer_invoice>${invoice}</customer_invoice>
    <ts_created>2013-11-03T17:15:21.000-08:00</ts_created>
    <priority>0</priority>
    </order>
    ]]></arg3>