Verify Range
Checks that a value is within (or outside) a range and reports the result in a test run.
Behaviour
Risk: None · Idempotent: Yes · Safe to retry: Yes · Recovery: Not replayed after a crash
Package Testing activities VeloPhex.Testing.Activities 0.7.1-rc.7 · Supported (Core profile) · type id velophex.testing.verifyRange
Properties#
Input#
Expression#
Expression · Object · Required · Default: Not specified in package metadata
The value to check.
Verification Type#
VerificationType · String · Optional · Default: IsWithin
Whether the value must be within the range or outside it.
Allowed values: IsWithin, IsNotWithin.
Lower Limit#
LowerLimit · Object · Required · Default: Not specified in package metadata
The smallest value in range (included).
Upper Limit#
UpperLimit · Object · Required · Default: Not specified in package metadata
The largest value in range (included).
Message#
Message · String · Optional · Default: Not specified in package metadata
What the check means, reported with its result.
Continue On Failure#
ContinueOnFailure · Boolean · Optional · Default: Not specified in package metadata
Record a failed check and go on instead of ending the run.
Take Screenshot If Failed#
TakeScreenshotIfFailed · Boolean · Optional · Default: False
Save a screenshot of the screens with a failed check and report it with the result.
Take Screenshot If Succeeded#
TakeScreenshotIfSucceeded · Boolean · Optional · Default: False
Save a screenshot with a passed check too.
Alternative Verification Title#
AlternativeVerificationTitle · String · Optional · Default: Not specified in package metadata
The name the check is reported under, in place of the activity's.
Output Message Format#
OutputMessageFormat · String · Optional · Default: Not specified in package metadata
The reported message, with placeholders: {Result}, {Expected}, {Actual}, and the activity's inputs such as {Expression}, {FirstExpression}, {Operator}, {SecondExpression}, {LowerLimit}, {UpperLimit}. Wins over Message.
Output#
Result#
Result · Boolean · Output
Whether the check held.
Retry and risk#
This activity is safe to retry: running it again after a transient failure does not repeat a side effect. If a run is interrupted and the outcome of a step is unknown, the step is never retried automatically (what to do). How activities declare this: characteristics, retries and risk.
Every activity also has the engine's common properties: Timeout and Continue On Error.
Related activities#
- Attach Document
- Compare PDF Documents
- Compare Text
- Create Comparison Rule
- Verify Expression
- Verify Expression With Operator
Generated from VeloPhex.Testing.Activities 0.7.1-rc.7. Category: Testing. Keywords: verify, assert, test, range, between.
Properties
Input
Output
Retry and risk
Related activities