Skip to content
/ .. / .. /
Before and After Rules





Before and After Rules

These rules verify that a property is:

  • before or after a specified number, date or string.

  • not before or not after a specified number, date or string.

When a date is compared to a number, the date will be converted to Epoch milliseconds.

Check Before and After Rules
Is Before or After
Is Not Before or After

Is Before or After

This rule verifies that a property is before or after a specified number, date or string. Syntax

1
2
3
4
5
check <property String> is before <value Date|Number|String>;
check <property String> is before <value Date|Number|String> if present;

check <property String> is after <value Date|Number|String>;
check <property String> is after <value Date|Number|String> if present;

Parameters

  • property - The property being checked. The property should be resolved to a Date, Number or String.

  • value - The value that is expected to be after or before the property.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
check "MY_PROP" is before 1474016361;
check "MY_PROP" is before 1474016361 if present;

check "MY_PROP" is before ${1+2};
check "MY_PROP" is before ${1+2} if present;


check "MY_PROP" is after 2585127472;
check "MY_PROP" is after 2585127472 if present;

check "MY_PROP" is after ${env.myDate};
check "MY_PROP" is after ${env.myDate} if present;

Is Not Before or After

This rule verifies that a property is not before or after a specified number, date or string.

Syntax

1
2
3
4
5
check <property String> is not before <value Date|Number|String>;
check <property String> is not before <value Date|Number|String> if present;

check <property String> is not after <value Date|Number|String>;
check <property String> is not after <value Date|Number|String> if present;

Parameters

  • property - The property being checked. The property should be resolved to a Date, Number or String.

  • value - The value that is not expected be after or before the property.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
check "MY_PROP" is not before 1474016361;
check "MY_PROP" is not before 1474016361 if present;

check "MY_PROP" is not before ${1+2};
check "MY_PROP" is not before ${1+2} if present;


check "MY_PROP" is not after 2585127472;
check "MY_PROP" is not after 2585127472 if present;

check "MY_PROP" is not after ${env.myDate};
check "MY_PROP" is not after ${env.myDate} if present;