Other Functions

Unique Id

Format – UniqueId(Length, Format)
Use this function when you need a unique value in your test data.  Typically used in a Set Values Test Step to create a variable.

Examples:
{UniqueId(12,”NUMERIC”)} – This will generate a unique ID length 12 and a Number e.g. 412373164167.
{UniqueId(12,”ALPHA”)} – This will generate a unique ID length 12 and Alpha e.g. GTWAWNZYWSIC.
{UniqueId(8)} – This will generate a unique ID length 8 and defaults to Alphanumeric e.g. I67OOO54.
{UniqueId(36,”UUID”)} – This will generate a unique ID length 36 and will create a universally unique id.

 

Round

Format – Round(number,decimal places,rounding mode)
Use this function when you need to round a number.

Examples:
{Round(3.2)} – Defaults to 0 decimal places e.g. 3.
{Round(3.4444,2)} – Round to 2 decimal places e.g. 3.44.
{Round(3.999,2,DOWN)} – Round Down e.g. 3.99.
{Round(3.999,2,UP)} – Round Up e.g. 4.0.

2017-05-12T11:35:04+00:00

Leave A Comment