Symbol

Symbol [ = Option ] [ , Option ]

This argument is optional and adds the symbol of the value to the enum as a string, including the asso­ciated getter method, such as for Java: String getSymbol(). For parm generation, the symbol is passed as a string.

Entry in an LFET.Project.ini-file:
ide.Java.InterfaceEnum.1: Symbol; IncludeTagsTitle = Transit Times +
ide.Java.InterfaceEnum.2: Symbol; Number; IncludeTagsTitle = Ranges

One or two options can be specified after an equal sign:

  • An option to extract numeric values: Integer, IntegerList, Double, DoubleList or Interval.

  • A case-sensitive option: Uppercase or Lowercase.

Multiple options are separated by commas, the order of the options is irrelevant, here is an example:

Entry in an LFET.Project.ini-file:
ide.Java.InterfaceEnum.1: Symbol = Double, Uppercase; IncludeTags = Transit Times +
ide.Java.InterfaceEnum.2: Symbol = Interval; IncludeTags = Ranges
Entry in a LFET.Project.yaml-file:
  ide.Java:

    InterfaceEnum:
      1:
        Symbol:
          - Double
          - UpperCase
        IncludeTagsTitle:
          - Runtimes
      2:
        Symbol:
          - Interval
        IncludeTagsTitle:
          - Ranges
Upper/lower case and division of words, e.g. through dots or YAML stages, does not matter.

Extraction of numerical values

One of the options

Integer
  • With the Integer option the symbol is parsed to an integer value and the integer value is added to the enum, including the corresponding getter method getSymbolInteger(), du­ring parm generation the integer value is passed as another parameter

  • Numbers with decimal places are rounded, e.g. 2.78 is passed as 3

  • Numeric values are also recognized if they are embedded in any context, the context can be evaluated in such cases via the respective text value, e.g. startsWith("<=") or endsWith("%")

  • If no integer value can be formed, then the generation is aborted with an error message

Double
  • With the option Double the symbol is parsed to a double value and the double value is added to the enum, incl. the corresponding getter method

    • getSymbolDouble()

  • Du­ring the parm generation the double value is passed as an additional parameter

Integer­List
  • With the option IntegerList the symbol is parsed to a list of integer values and added to the enum, incl. the corresponding getter method

    • getSymbolIntegerList()

  • At parm generation an integer array is passed as further parameter

  • Numbers with decimal places are rounded, e.g. 2.78 is passed as 3

  • Lists of numeric values are also recognized if they are embedded in any context, the context can be evaluated in such cases via the respective Text-Value

  • If no integer values can be formed, the generation is aborted with an error message.

Double­List
  • With the DoubleList option the symbol is parsed to a list of double values and added to the enum, incl. the corresponding getter method

    • getSymbolDoubleList()

  • Du­ring parm generation a double array is passed as additional parameter

Interval
  • With the option Interval the symbol is parsed to an interval and in case of success the limit values are added to the enum, incl. the corresponding getter methods:

    • getSymbolMin() – determines the lower boundary value of the interval

    • getSymbolMax() – determines the upper boundary value of the interval

    • isInSymbolInterval(double/int value) – checks whether a value falls within an interval

  • If this option is used in argument title, corresponding methods are ge­ne­ra­ted, respectively:

    • getTitleMin()

    • getTitleMax()

    • isInTitleInterval(double/int value)

  • In case of parm generation two double values are passed as further parameters

  • The notation of intervals in LF‑ET is already described in the help, currently still in the area of test case gene­ration, including automatic detection of the number of decimal places, automatic detection of leading zeros, averaging, random value generation, and many more.

  • Intervals are also recognized if they are embedded in any context

  • If no interval can be formed, the generation is aborted with an error message.

Upper/lower case of the symbol value

One of the options

Upper­case

The Symbol value is converted to uppercase with the Uppercase option.

Lower­case

The Symbol value is converted to lowercase with the Lowercase option.