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:

    
    25
    my_key_name1
    my_key_name2
    java.util.LinkedList
    
    
    
    
    	
    		
    			
    		
    	
	
	
    /
1
/*">
name()"> (,$copy_number,))"/> (,$copy_number,))"/> ]]>
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. Your data xml file should have the following structure:

		
			...childs...
		
		...
		
			...childs...
		
	
]]>
After transforming, the root should have n*max_copy_count dataobjects.
Creating Mass Data with GII
1