Class RandomPatternFunction

java.lang.Object
org.citrusframework.functions.core.RandomPatternFunction
All Implemented Interfaces:
org.citrusframework.functions.Function, org.citrusframework.functions.ParameterizedFunction<StringParameter>, StringFunction

public class RandomPatternFunction extends Object implements StringFunction
The RandomPatternFunction generates a random string based on a provided regular expression pattern. It uses the Generex library to generate the random string.

Note: The Generex library has limitations in its ability to generate all possible expressions from a given regular expression. It may not support certain complex regex features or produce all possible variations.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.citrusframework.functions.ParameterizedFunction

    org.citrusframework.functions.ParameterizedFunction.FunctionParameters
  • Field Summary

    Fields inherited from interface org.citrusframework.functions.Function

    functions, logger, RESOURCE_PATH
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    execute(String pattern, org.citrusframework.context.TestContext context)
    Execute function with the single String parameter.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.citrusframework.functions.ParameterizedFunction

    execute

    Methods inherited from interface org.citrusframework.functions.StringFunction

    execute
  • Constructor Details

    • RandomPatternFunction

      public RandomPatternFunction()
  • Method Details