activities
latest
false
Important :
Veuillez noter que ce contenu a été localisé en partie à l’aide de la traduction automatique.
Activités de workflow
Last updated 22 oct. 2024

TestingOptions.CompareText Class

Use this class to configure options for comparing documents with the VerifyTextEquivalence API.

Définition

Namespace: UiPath.Testing.API.Models

Assembly: UiPath.Testing.Activities.Api (in UiPath.Testing.Activities.Api.dll)

Syntaxe

public class TestingOptions : CompareTextpublic class TestingOptions : CompareText

Constructeurs

public TestingOptions.CompareDocuments()public TestingOptions.CompareDocuments()
TestingOptions.CompareText
Initialise une nouvelle instance de la classe TestingOptions.CompareText .

Propriétés

AdditionalOutputFilePath Chaîne de caractères (string)
Path to the additional output file. Needs to be set if OutputDiffType is PDF.
ContinueOnError Booléen
Specifies if the automation should continue even when the method throws an error.
OutputDiffType DocumentOutputDiffType
The format in which you want to show the differences between texts.
OutputFilePath Chaîne de caractères (string)
The path to the output file that shows the differences between texts.
Règles List<ComparisonRule>
List of rules to be applied. They can be of type RegexRule or WildcardRule.
WordSeparators Chaîne de caractères (string)
The characters that should be considered as word separators in the comparison process. For example, if the texts you are comparing commonly use a period (.) or backslashes (/) for separating words, then you can define these as word separators. By default, the separators are ". , ! ? : \n".

Méthodes

These are the methods you can use to configure the text comparison options.

WithContinueOnError

Configure if the automation should continue even when the method throws an error.

Définition

Namespace: UiPath.Testing.API.Models

Assembly: UiPath.Testing.Activities.Api (in UiPath.Testing.Activities.Api.dll)

WithContinueOnError(bool)

WithIgnoreRegexRule(
    bool continueOnError
)WithIgnoreRegexRule(
    bool continueOnError
)
continueOnError Booléen
Précise si l’automatisation doit se poursuivre même si la méthode génère une erreur. Ce paramètre prend uniquement en charge les valeurs booléennes (true, false). La valeur par défaut est false. Par conséquent, si le paramètre est vide et qu’une erreur est générée, l’exécution du projet s’arrête. Si le champ indique au true, l'exécution du projet se poursuit même en cas d'erreur.

WithGenerateHtml

Generates an HTML file with the highlighted differences identified between the two documents or texts.

Définition

Namespace: UiPath.Testing.API.Models

Assembly: UiPath.Testing.Activities.Api (in UiPath.Testing.Activities.Api.dll)

WithGenerateHtml(string)

WithGenerateHtml(
    string filePath
)WithGenerateHtml(
    string filePath
)
CheminFichier Chaîne de caractères (string)
The path of the HTML file that stores the differences identified when comparing the documents or texts.

WithIgnoreRegexRule

If set to True, ignores any Regex rule that you configured for the Rules parameter. This allows you to exclude certain parts of the texts or documents that you are comparing.

Définition

Namespace: UiPath.Testing.API.Models

Assembly: UiPath.Testing.Activities.Api (in UiPath.Testing.Activities.Api.dll)

WithIgnoreRegexRule(string, string, [bool])

WithIgnoreRegexRule(
    string ruleName,
    string regexPattern,
    [bool usePlaceholders = true]
)WithIgnoreRegexRule(
    string ruleName,
    string regexPattern,
    [bool usePlaceholders = true]
)
ruleName Chaîne de caractères (string)
The name of the rule, as you configured it in the list of Rules, that you want to ignore in the comparison process.
regexPattern Chaîne de caractères (string)
The actual regex that represents the ruleName previously entered.
usePlaceholder Booléen (facultatif)
If set to True it replaces the ignored part of a document or text with a placeholder value. The placeholder value is the ruleName. By default, this parameter is set to true.

WithIgnoreWildcardRule

If set to True, ignores any wild card rule that you configured for the Rules parameter. This allows you to exclude certain parts of the texts or documents that you are comparing.

Définition

Namespace: UiPath.Testing.API.Models

Assembly: UiPath.Testing.Activities.Api (in UiPath.Testing.Activities.Api.dll)

WithIgnoreWildcardRule(string, string, bool)

WithIgnoreWildcardRule(
    string ruleName,
    string wildcardPattern,
    [bool usePlaceholder = true]
)WithIgnoreWildcardRule(
    string ruleName,
    string wildcardPattern,
    [bool usePlaceholder = true]
)
ruleName Chaîne de caractères (string)
The name of the rule, as you configured it in the list of Rules, that you want to ignore in the comparison process.
wildcardPattern Chaîne de caractères (string)
The actual wildcard that represents the ruleName previously entered.
usePlaceholder Booléen (facultatif)
If set to True it replaces the ignored part of a document or text with a placeholder value. The placeholder value is the ruleName. By default, this parameter is set to true.

WithWordSeparators

Specify the characters that you want to define as word separators. The characters must be stored in a string.

Définition

Namespace: UiPath.Testing.API.Models

Assembly: UiPath.Testing.Activities.Api (in UiPath.Testing.Activities.Api.dll)

WithWordSeparators(string)

WithWordSeparators(
    string wordSeparators
)WithWordSeparators(
    string wordSeparators
)
wordSeparators Chaîne de caractères (string)
The string containing the characters that you want to consider as word separators.

Cette page vous a-t-elle été utile ?

Obtenez l'aide dont vous avez besoin
Formation RPA - Cours d'automatisation
Forum de la communauté UiPath
Uipath Logo White
Confiance et sécurité
© 2005-2024 UiPath Tous droits réservés.