Test Data in your Automation

Dynamic Values

Dynamic Values

Dynamic Values

Working with test data inside your tests

The Pro Test Automation IDE with everything to build complex branching test flows.

$variables

$variables

Dynamic Values can enhance your test cases.


Use environment variables, dates, and random data inside your flows to improve your tests.

Dynamic Values can enhance your test cases.


Use environment variables, dates, and random data inside your flows to improve your tests.

Test Specific Values

Test Specific Values

Test Specific Values

Test specific values are different across tests & runs but remain the same throughout a test run.

Test specific values are different across tests & runs but remain the same throughout a test run.

Name

Description

Example

$

testStartedAt

When the DoesQA test runner began running the test.
In the format "YYYYMMDDHHmm"

$

testStartedAt

When the DoesQA test runner began running the test.
In the format "YYYYMMDDHHmm"

$

testStartedAt

When the DoesQA test runner began running the test.
In the format "YYYYMMDDHHmm"

$

testStartedAtUnix

The UNIX output of when the test case was started, in seconds.

$

testStartedAtUnix

The UNIX output of when the test case was started, in seconds.

$

testStartedAtUnix

The UNIX output of when the test case was started, in seconds.

$

testStartedAtDay

The current day that the test runner started the test. In the format "DD"

$

testStartedAtDay

The current day that the test runner started the test. In the format "DD"

$

testStartedAtDay

The current day that the test runner started the test. In the format "DD"

$

testStartedAtMonth

The current month that the test runner started the test. In the format "MM"

$

testStartedAtMonth

The current month that the test runner started the test. In the format "MM"

$

testStartedAtMonth

The current month that the test runner started the test. In the format "MM"

$

testName

This value represents the name of the test running, joining up all of the "Name Test" nodes.

Alternatively, if no name nodes are present, it will be the name of the flow with an index at the end

$

testName

This value represents the name of the test running, joining up all of the "Name Test" nodes.

Alternatively, if no name nodes are present, it will be the name of the flow with an index at the end

$

testName

This value represents the name of the test running, joining up all of the "Name Test" nodes.

Alternatively, if no name nodes are present, it will be the name of the flow with an index at the end

$

testNumber

Each test case run in DoesQA gets a unique ID, this number will never be used again, so is unique per test run (even running the same test results in a different ID)

$

testNumber

Each test case run in DoesQA gets a unique ID, this number will never be used again, so is unique per test run (even running the same test results in a different ID)

$

testNumber

Each test case run in DoesQA gets a unique ID, this number will never be used again, so is unique per test run (even running the same test results in a different ID)

$

testSentence

Generates a space separated list of words beginning a capital letter and ending with a dot.

$

testSentence

Generates a space separated list of words beginning a capital letter and ending with a dot.

$

testSentence

Generates a space separated list of words beginning a capital letter and ending with a dot.

$

testFullName

A generated full name for the test. This value is the same throughout the entire test case.

Note: This is not the same as "[FIRST NAME] [LAST NAME]"

$

testFullName

A generated full name for the test. This value is the same throughout the entire test case.

Note: This is not the same as "[FIRST NAME] [LAST NAME]"

$

testFullName

A generated full name for the test. This value is the same throughout the entire test case.

Note: This is not the same as "[FIRST NAME] [LAST NAME]"

$

testFirstName

A generated first name for the test. This value is the same throughout the entire test case.

$

testFirstName

A generated first name for the test. This value is the same throughout the entire test case.

$

testFirstName

A generated first name for the test. This value is the same throughout the entire test case.

$

testLastName

A generated last name for the test. This value is the same throughout the entire test case.

$

testLastName

A generated last name for the test. This value is the same throughout the entire test case.

$

testLastName

A generated last name for the test. This value is the same throughout the entire test case.

$

testEmail

Using the testNumber above, a unique email is created with every test. This can be used in combination with our Mail nodes to read, and interact with E-Mails within a test run

$

testEmail

Using the testNumber above, a unique email is created with every test. This can be used in combination with our Mail nodes to read, and interact with E-Mails within a test run

$

testEmail

Using the testNumber above, a unique email is created with every test. This can be used in combination with our Mail nodes to read, and interact with E-Mails within a test run

$

testUsername

A generated username for the test. This value is the same throughout the entire test case.

Note: This is not the same as "[FIRST NAME].[LAST NAME]"

$

testUsername

A generated username for the test. This value is the same throughout the entire test case.

Note: This is not the same as "[FIRST NAME].[LAST NAME]"

$

testUsername

A generated username for the test. This value is the same throughout the entire test case.

Note: This is not the same as "[FIRST NAME].[LAST NAME]"

$

testZipCode

A generated US ZIP Code in the format "#####"

$

testZipCode

A generated US ZIP Code in the format "#####"

$

testZipCode

A generated US ZIP Code in the format "#####"

$

testPhoneUS

A generated US Phone Number in the format "(###) ###-###"

$

testPhoneUS

A generated US Phone Number in the format "(###) ###-###"

$

testPhoneUS

A generated US Phone Number in the format "(###) ###-###"

$

testPhoneUK

A generated UK Phone Number in the format "##### ### ###"

$

testPhoneUK

A generated UK Phone Number in the format "##### ### ###"

$

testPhoneUK

A generated UK Phone Number in the format "##### ### ###"

Run Specific Values

Run Specific Values

Run Specific Values

Run specific values are different across runs but the same within all tests in a run.

Run specific values are different across runs but the same within all tests in a run.

Name

Description

Example

$

runId

A DoesQA Run ID for the tests, all tests triggered under the same command (Flow, Schedule, or CI/CD) will have the same Run ID.

$

runId

A DoesQA Run ID for the tests, all tests triggered under the same command (Flow, Schedule, or CI/CD) will have the same Run ID.

$

runId

A DoesQA Run ID for the tests, all tests triggered under the same command (Flow, Schedule, or CI/CD) will have the same Run ID.

$

runLabel

If you provide a label when triggering DoesQA tests from CI/CD then this will be present. If none was sent, the value will be "No label set"

$

runLabel

If you provide a label when triggering DoesQA tests from CI/CD then this will be present. If none was sent, the value will be "No label set"

$

runLabel

If you provide a label when triggering DoesQA tests from CI/CD then this will be present. If none was sent, the value will be "No label set"

Account & Flow Values

Account & Flow Values

Account & Flow Values

Values unique to your account or the flow the test is from, these will be the same across all test runs.

Values unique to your account or the flow the test is from, these will be the same across all test runs.

Name

Description

Example

$

accountEmail

A shared mailbox across test cases, not recommended for use on registration, as it will be the same value for every test within your account.

Handy for being able to view mail that is then going to use the testEmail below

$

accountEmail

A shared mailbox across test cases, not recommended for use on registration, as it will be the same value for every test within your account.

Handy for being able to view mail that is then going to use the testEmail below

$

accountEmail

A shared mailbox across test cases, not recommended for use on registration, as it will be the same value for every test within your account.

Handy for being able to view mail that is then going to use the testEmail below

$

flowName

Name of the flow which this test was generated from

$

flowName

Name of the flow which this test was generated from

$

flowName

Name of the flow which this test was generated from

Date Values

Date Values

Date Values

Some useful values to help you work with dates.

Some useful values to help you work with dates.

Name

Description

Example

$

currentUnix

The amount of seconds since 01/01/1970 at the point this value is called

$

currentUnix

The amount of seconds since 01/01/1970 at the point this value is called

$

currentUnix

The amount of seconds since 01/01/1970 at the point this value is called

$

nextDay

The next day after the test runner started the test, outputting only the day.
In the format "DD"

$

nextDay

The next day after the test runner started the test, outputting only the day.
In the format "DD"

$

nextDay

The next day after the test runner started the test, outputting only the day.
In the format "DD"

$

nextMonth

The next month after the test runner started the test, outputting only the month. In the format "MM"

$

nextMonth

The next month after the test runner started the test, outputting only the month. In the format "MM"

$

nextMonth

The next month after the test runner started the test, outputting only the month. In the format "MM"

$

nextYear

The next year after the test runner started the test, outputting only the year.
In the format "YYYY"

$

nextYear

The next year after the test runner started the test, outputting only the year.
In the format "YYYY"

$

nextYear

The next year after the test runner started the test, outputting only the year.
In the format "YYYY"

$

yesterdayDay

The current year that the test runner started the test, outputting only the day.
In the format "DD"

$

yesterdayDay

The current year that the test runner started the test, outputting only the day.
In the format "DD"

$

yesterdayDay

The current year that the test runner started the test, outputting only the day.
In the format "DD"

$

yesterdayMonth

The previous day that the test runner started the test, outputting only the month. In the format "MM"

$

yesterdayMonth

The previous day that the test runner started the test, outputting only the month. In the format "MM"

$

yesterdayMonth

The previous day that the test runner started the test, outputting only the month. In the format "MM"

$

yesterdayYear

The previous day that the test runner started the test, outputting only the year.
In the format "YYYY"

$

yesterdayYear

The previous day that the test runner started the test, outputting only the year.
In the format "YYYY"

$

yesterdayYear

The previous day that the test runner started the test, outputting only the year.
In the format "YYYY"

URL Values

URL Values

URL Values

Flow values relate to the flow the test case is a part of.

Flow values relate to the flow the test case is a part of.

Name

Description

Example

$

currentUrl

The entire URL when this parameter is called.

$

currentUrl

The entire URL when this parameter is called.

$

currentUrl

The entire URL when this parameter is called.

$

currentOrigin

The Origin (base domain) of the current URL when this value is retrieved

$

currentOrigin

The Origin (base domain) of the current URL when this value is retrieved

$

currentOrigin

The Origin (base domain) of the current URL when this value is retrieved

$

currentPath

The entire path (everything after the origin) when this value is called

$

currentPath

The entire path (everything after the origin) when this value is called

$

currentPath

The entire path (everything after the origin) when this value is called

Random Values

Random Values

Random Values

These values will (very very very likely) produce a different value every time they are used.

These values will (very very very likely) produce a different value every time they are used.

Name

Description

Example

$

randomNumber

A randomly generated number between 1 and 99999

$

randomNumber

A randomly generated number between 1 and 99999

$

randomNumber

A randomly generated number between 1 and 99999

$

randomSentence

Generates a random space separated list of words beginning a capital letter and ending with a dot.

$

randomSentence

Generates a random space separated list of words beginning a capital letter and ending with a dot.

$

randomSentence

Generates a random space separated list of words beginning a capital letter and ending with a dot.

$

randomFullName

A random full name, regenerated every time this value is called

$

randomFullName

A random full name, regenerated every time this value is called

$

randomFullName

A random full name, regenerated every time this value is called

$

randomFirstName

A random first name, regenerated every time this value is called

$

randomFirstName

A random first name, regenerated every time this value is called

$

randomFirstName

A random first name, regenerated every time this value is called

$

randomLastName

A random last name, regenerated every time this value is called

$

randomLastName

A random last name, regenerated every time this value is called

$

randomLastName

A random last name, regenerated every time this value is called

$

randomEmail

A random email in the format firstname.lastname@mock.does.qa

$

randomEmail

A random email in the format firstname.lastname@mock.does.qa

$

randomEmail

A random email in the format firstname.lastname@mock.does.qa

$

randomPhoneUK

A randomly generated UK Phone Number in the format "##### ### ###"

$

randomPhoneUK

A randomly generated UK Phone Number in the format "##### ### ###"

$

randomPhoneUK

A randomly generated UK Phone Number in the format "##### ### ###"

$

randomPhoneUS

A randomly generated US Phone Number in the format "(###) ###-###"

$

randomPhoneUS

A randomly generated US Phone Number in the format "(###) ###-###"

$

randomPhoneUS

A randomly generated US Phone Number in the format "(###) ###-###"

$

randomZipCode

A random US Zip code

$

randomZipCode

A random US Zip code

$

randomZipCode

A random US Zip code

Seeing is believing!

Sign up and increase confidence today!

Get Started

Seeing is believing!

Sign up and increase confidence today!

Get Started