diff --git a/jmeter-java-dsl-bridge/src/main/java/us/abstracta/jmeter/javadsl/bridge/serialization/constructs/BridgedObjectConstruct.java b/jmeter-java-dsl-bridge/src/main/java/us/abstracta/jmeter/javadsl/bridge/serialization/constructs/BridgedObjectConstruct.java index 39fd441a..c76b8cba 100644 --- a/jmeter-java-dsl-bridge/src/main/java/us/abstracta/jmeter/javadsl/bridge/serialization/constructs/BridgedObjectConstruct.java +++ b/jmeter-java-dsl-bridge/src/main/java/us/abstracta/jmeter/javadsl/bridge/serialization/constructs/BridgedObjectConstruct.java @@ -122,6 +122,8 @@ private Object constructParameter(Node node, Parameter parameter) { Function parser = PARSERS.get(paramType); if (parser != null && node instanceof ScalarNode) { return parser.apply(((ScalarNode) node).getValue()); + } else if (paramType.isEnum() && node instanceof ScalarNode) { + return Enum.valueOf((Class) paramType, ((ScalarNode) node).getValue()); } else { Object ret = constructor.constructObject(node); if (paramType.isAssignableFrom(ret.getClass())) { diff --git a/jmeter-java-dsl/src/main/java/us/abstracta/jmeter/javadsl/core/postprocessors/DslRegexExtractor.java b/jmeter-java-dsl/src/main/java/us/abstracta/jmeter/javadsl/core/postprocessors/DslRegexExtractor.java index 1db5921c..a302f0d4 100644 --- a/jmeter-java-dsl/src/main/java/us/abstracta/jmeter/javadsl/core/postprocessors/DslRegexExtractor.java +++ b/jmeter-java-dsl/src/main/java/us/abstracta/jmeter/javadsl/core/postprocessors/DslRegexExtractor.java @@ -67,7 +67,7 @@ public DslRegexExtractor matchNumber(int matchNumber) { * And you use {@code user=([^&]+)} as regular expression. Then {@code $1$-$2$} will result in * storing in the specified JMeter variable the value {@code tester-abstracta}. *

- * When not specified {@code $1$ will be used}. + * When not specified {@code $1$} will be used. * * @param template specifies template to use for storing in the JMeter variable. * @return the extractor for further configuration or usage. diff --git a/jmeter-java-dsl/src/main/java/us/abstracta/jmeter/javadsl/core/testelements/TestElementContainer.java b/jmeter-java-dsl/src/main/java/us/abstracta/jmeter/javadsl/core/testelements/TestElementContainer.java index 96de298a..df7e6e0e 100644 --- a/jmeter-java-dsl/src/main/java/us/abstracta/jmeter/javadsl/core/testelements/TestElementContainer.java +++ b/jmeter-java-dsl/src/main/java/us/abstracta/jmeter/javadsl/core/testelements/TestElementContainer.java @@ -12,7 +12,7 @@ /** * Abstracts logic for {@link DslTestElement} that can nest other test elements. * - * @param is type of test elements that can be nested by this class. + * @param is type of test elements that can be nested by this class. *

* Check {@link DslTestPlan} for an example. * @since 0.1