File tree 2 files changed +17
-0
lines changed
jmeter-java-dsl/src/main/java/us/abstracta/jmeter/javadsl
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -984,6 +984,19 @@ public static DslVariables vars() {
984
984
return new DslVariables ();
985
985
}
986
986
987
+ /**
988
+ * Same as {@link #vars()} but allowing to set a name on the element.
989
+ * <p>
990
+ * The name is used to easily identify what the variables are being used for in the jmx.
991
+ *
992
+ * @see #vars() (String)
993
+ * @since 0.22
994
+ **/
995
+
996
+ public static DslVariables vars (String name ) {
997
+ return new DslVariables (name );
998
+ }
999
+
987
1000
/**
988
1001
* Builds a JSR223 Sampler which allows sampling any Java API or custom logic.
989
1002
* <p>
Original file line number Diff line number Diff line change @@ -42,6 +42,10 @@ public DslVariables() {
42
42
super ("User Defined Variables" , ArgumentsPanel .class );
43
43
}
44
44
45
+ public DslVariables (String name ) {
46
+ super (name , ArgumentsPanel .class );
47
+ }
48
+
45
49
/**
46
50
* Allows setting a JMeter thread variable.
47
51
* <p>
You can’t perform that action at this time.
0 commit comments