I want to generate a JMX file in a Java program.
I start to use the JMeter API to do this, and all work, except that I can't
keep the order of my Sampler in the JMX file saved.
This is a short example of what I do :
HashTree testPlanHashTree = new HashTree() ;
ListedHashTree loginTemplate = (ListedHashTree) SaveService.loadTree(new
File("\\\\toto\\Applis\\LogginV1.jmx"));
testPlanHashTree.add(loginTemplate);
SaveService.saveTree(testPlanHashTree, new
FileOutputStream("C:\\tmp\\test.jmx"));
How could I keep the order of the sample ?