Class JMeterLoadCreator
java.lang.Object
Services.CorrelationsView.ScriptGeneration.JMeterLoadCreator
Creates a complete JMeter test plan wrapping multiple user behaviors (E2E GUI tests)
chosen by the tester.
This class generates a single JMX file containing multiple Ultimate Thread Groups corresponding to different user scripts.
It handles:
- TestPlan creation
- CookieManager addition
- UltimateThreadGroup creation
- Thread group mapping and aggregation
- Writing the final JMX file to disk
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HashMap<String,ArrayList<UltimateThreadGroup>> ConvertThreadGroupArrayToMap(ArrayList<UltimateThreadGroup> threadGroups) Converts an array of UltimateThreadGroup objects into a map keyed by filename.static voidrunJMeterCreator(ArrayList<UltimateThreadGroup> threadsgrup, String outfile)
-
Constructor Details
-
JMeterLoadCreator
public JMeterLoadCreator()
-
-
Method Details
-
runJMeterCreator
public static void runJMeterCreator(ArrayList<UltimateThreadGroup> threadsgrup, String outfile) throws ParserConfigurationException, IOException, TransformerException -
ConvertThreadGroupArrayToMap
public static HashMap<String,ArrayList<UltimateThreadGroup>> ConvertThreadGroupArrayToMap(ArrayList<UltimateThreadGroup> threadGroups) Converts an array of UltimateThreadGroup objects into a map keyed by filename.- Parameters:
threadGroups- list of UltimateThreadGroup objects- Returns:
- map with filename as key and list of thread groups as value
-