Annotation Interface ResourceString


@Retention(RUNTIME) @Target(FIELD) public @interface ResourceString

Fill this field with a unique (within the ecosystem) string of a set length. The CPS property core.resource.string.[length].pattern determines the make up of the random string.

Will only populate public

invalid @link
java.lang.Stringdev.galasa.core.manager.IResourceString
fields.

Author:
Michael Baylis
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The tag of the Resource String this variable is to be populated with.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Generate and lock a resource string
  • Element Details

    • tag

      String tag
      The tag of the Resource String this variable is to be populated with. The tag must be provided as there is no default for this resource. The
      invalid @link
      java.lang.Stringdev.galasa.core.manager.IResourceString
      object is keyed on the tag, so if the tag is referred to in multiple super classes, then the lengths must be identical otherwise an exception will be thrown.
    • length

      int length
      Generate and lock a resource string
      Returns:
       the length of the string to generate
      Default:
      8