public class Correlation extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addExtractor(String testName,
String extractorTypeClassName,
ExtractorData extractor)
Add extractor to current testplan GUI
|
static Map<String,String> |
createJmxParameterMap(List<HTTPSamplerBase> httpSamplerBaseList,
List<HeaderManager> headerManagerList)
Create a map which contain all the parameters from the list of
HTTPSamplerBase test elements
|
static Object[][] |
extractCorrelationCandidates(Map<String,String> firstJmxMap,
Map<String,String> secondJmxMap)
Compare the maps to extract the correlation candidate parameters.
|
static void |
extractParameters(File file)
Compare the list of HTTP-request objects from two TestPlans(one imported and
one currently in GUI) and prepare the map containing the parameter list which
are candidates for correlation.
|
static int |
getAddedExtractorCount() |
static void |
setAddedExtractorCount(int addedExtractorCount) |
static void |
updateJxmFileWithExtractors(List<ExtractorData> extractors,
Map<String,String> parameterMap)
Update the GUI with all the created extractors present in extractors
|
public static int getAddedExtractorCount()
public static void setAddedExtractorCount(int addedExtractorCount)
public static void extractParameters(File file) throws IllegalUserActionException
file - JMX file whose parameters need to be extractedIllegalUserActionException - when cannot correlate scriptpublic static Map<String,String> createJmxParameterMap(List<HTTPSamplerBase> httpSamplerBaseList, List<HeaderManager> headerManagerList)
httpSamplerBaseList - List of HTTPSamplerBase Test ElementsheaderManagerList - List of HeaderManager Test Elementspublic static Object[][] extractCorrelationCandidates(Map<String,String> firstJmxMap, Map<String,String> secondJmxMap)
firstJmxMap - Map for first JMX scriptsecondJmxMap - Map for second JMX scriptpublic static void updateJxmFileWithExtractors(List<ExtractorData> extractors, Map<String,String> parameterMap)
extractors - list of extractorsparameterMap - Map containing parameter name and values which are a
candidate for correlationpublic static void addExtractor(String testName, String extractorTypeClassName, ExtractorData extractor)
testName - Node's name where the extractor should be addedextractorTypeClassName - Type of extractor to be addedextractor - ExtractorData objectCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.