Compare Text
Compares two texts and reports their differences 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.compareText
Properties#
Input#
Baseline Text#
BaselineText · String · Required · Default: Not specified in package metadata
The expected text.
Target Text#
TargetText · String · Required · Default: Not specified in package metadata
The text compared with the baseline.
Comparison Type#
ComparisonType · String · Optional · Default: Line
Compare line by line, word by word (spacing ignored) or character by character.
Allowed values: Line, Word, Character.
Rules#
Rules · IEnumerable<ComparisonRule> · Optional · Default: Not specified in package metadata
Comparison rules whose matches are left out of both texts before they are compared.
Continue On Failure#
ContinueOnFailure · Boolean · Optional · Default: Not specified in package metadata
Record a failed comparison and go on instead of ending the run.
Output File Path#
OutputFilePath · String · Optional · Default: Not specified in package metadata
A text file the differences are written to, one per line.
Output#
Differences#
Differences · List<TextDifference> · Output
What only the baseline has (Deleted) and what only the target has (Inserted).
Result#
Result · Boolean · Output
Whether the two are the same after the rules.
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
- Create Comparison Rule
- Verify Expression
- Verify Expression With Operator
- Verify Range
Generated from VeloPhex.Testing.Activities 0.7.1-rc.7. Category: Testing. Keywords: compare, diff, text, baseline, verify, assert, difference.
Properties
Input
Output
Retry and risk
Related activities