All Downloads are FREE. Search and download functionalities are using the official Maven repository.

us.abstracta.jmeter.javadsl.codegeneration.params.DynamicParam Maven / Gradle / Ivy

Go to download

Simple API to run JMeter performance tests in an VCS and programmers friendly way.

There is a newer version: 028
Show newest version
package us.abstracta.jmeter.javadsl.codegeneration.params;

import java.util.regex.Pattern;
import us.abstracta.jmeter.javadsl.codegeneration.MethodParam;

/**
 * Is a parameter with no fixed value (ie: a variable or jmeter function reference).
 *
 * @since 0.57
 */
public class DynamicParam extends MethodParam {

  private static final Pattern DYNAMIC_VALUE_PATTERN = Pattern.compile(".*\\$\\{.+}.*");

  public DynamicParam(String expression) {
    super(String.class, expression);
  }

  public static boolean matches(String propVal) {
    return DYNAMIC_VALUE_PATTERN.matcher(propVal).matches();
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy