Creating Mass Data with GII, Thomas Schneider (August, 2007)
1. Introduction
To produce tests with mass data, a quick solution may be to create some representative data, to export that data into an xml file and to multiply this data through an xsl-transformation. The last step is to import that multiplied xml data.
2. Realization
With the GII (generic-interface-implementation) solution of the tsl framework you are able to export your data. A simple multiplier xslt script may be the following:
There you have a global definition block where you have to fill your specific values. To have unique identifiers in your multiplied data, the id_name1 is very important.
id_name* : key name that will be used to enhance with a counter
id_name* : another key name that will be used to enhance with a counter
max_copy_count : count of multiplying
root_element : name of the root element
Your data xml file should have the following structure:
...childs...
...
...childs...
]]>
After transforming, the root should have n*max_copy_count dataobjects.