Verify Expression With Operator

Compares two values with an operator 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.verifyExpressionWithOperator

Properties#

Input#

First Expression#

FirstExpression · Object · Required · Default: Not specified in package metadata

The actual value.

Operator#

Operator · String · Optional · Default: Equality

How the first value must relate to the second.

Allowed values: Equality, Inequality, GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual, Contains, RegexMatch.

Second Expression#

SecondExpression · Object · Required · Default: Not specified in package metadata

The expected value (a pattern for RegexMatch).

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.

Generated from VeloPhex.Testing.Activities 0.7.1-rc.7. Category: Testing. Keywords: verify, assert, test, equals, compare.

Properties

Input

Output

Retry and risk

Related activities