Skip to content

Static data

Mostafa Asgari edited this page Mar 4, 2017 · 1 revision

In EasyGen,you can always mix static string with EasyGen DSL syntax to produce new data.Example:

[a..c]Hello[A..C]

The above example could generate 9 possible random string which starts with lower case a or b or c and ends with capital A or B or C.Possible random data could be : bHelloC or aHelloA
NOTE : EasyGen does not take into account spaces.So above example could be written as :

[   a    ..  c   ]   H  e l    l o [ A   .. C ]

Its generated output is exactly same as [a..c]Hello[A..C].
If you want to preserve spaces you can put your string in single quote:

[   a    ..  c   ]'   H  e l    l o '[ A   .. C ]

NOTE : single quote is a escape character in EasyGen. That means every thing that you put in single quote, treat as a string without any modification or interpretation.Example :

  '[A..Z]'

output : [A..Z] If you want to generate single quote in your generated output you can use '.Example:

  '[ \'A\' .. \'Z\' ]'
Clone this wiki locally