Skip to content

Column Configuration Options

K J D S SRINIVASA RAO edited this page Jan 21, 2020 · 24 revisions

Column Configuration Options

A typical column format will contain the below options

  • Name : Column name
  • Type : Column type. This is a mandatory option.
  • Config : Column configuration

Supported Column Types

  • string
  • int
  • date
  • bool
  • default
  • email
  • decimal
  • list

String Type Column Configuration Options

  • Length - Length of the random string to be generated, this is excluding the prefix and suffix. If not specified default value of 5 will be taken.
  • Prefix - Prefix to be added to the generated string. This is optional.
  • Suffix - Suffix to be added to the generated string. This is optional.
  • LowerCase - Should the generated string be in lower case. This is optional and default value will be true.

Int Type Column Configuration Options

  • Min - Minimum value from which the random integer must be generated. By default this is set to 1
  • Max - Maximum value below which the random integer must be generated. By default this is set to 1000

Date Type Column Configuration Options

  • Format - Format of the date to be formed. By default this is set to yyyyMMddHHmmssffff

Bool Type Column Configuration Options

  • No configuration is required. Randomly a true or false value is generated.

Default Type Column Configuration Options

  • DefaultValue - Default value to be populated for all the rows. This is a mandatory field.

Email Type Column Configuration Options

  • No configuration required. By default an email of the format {5}@{5}.{3} is generated where the number in {} represents the length of the string generated

Decimal Type Column Configuration Options

  • Min - Minimum value from which the random integer must be generated. By default this is set to 1.
  • Max - Maximum value below which the random integer must be generated. By default this is set to 1000.
  • decimalPart - Number of digits to be shown after the decimal. By default this is set to 2.

List Type Column Configuration Options

  • Add the items from which the a single value has to be picked randomly to the config object. Where the first property must be a number starting from 1 and its value should be the value to be considered for the list. For the subsequent item increment the number and add its corresponding value. Please find below and example for reference

Sample list type column config

{
  "name": "CustomValues",
  "type": "list",
  "config": {
    "1": "item1",
    "2": "item2",
    "3": "item3",
    "4": "item4"
  }
}
Clone this wiki locally