Activities
latest
false
VerifyExpression - Other latest
Banner background image
logo
Workflow Activities
Last updated 23 févr. 2024

VerifyExpression

Verifies the truth value of a given expression. An Expression must be supplied.

Definition

Namespace: UiPath.Testing.API

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

Overloads

  
VerifyExpression(bool)Verifies the truth of a given expression.
VerifyExpression(bool, string)Verifies if the truth of a given expression, while configuring the output format of the message.
VerifyExpression(bool, string, bool, string, bool, bool)Verifies the truth of a given expression, considering several configurations, such as a certain output message format, or an alternative verification title.

VerifyExpression(Boolean)

Verifies the truth of a given expression.

bool VerifyExpression(
	bool expression
)bool VerifyExpression(
	bool expression
)
expression Boolean
The expression that you want to verify

VerifyExpression(bool, string)

Verifies if the truth of a given expression, while configuring the output format of the message.

bool VerifyExpression (
    bool expression,
    string outputMessageFormat
)bool VerifyExpression (
    bool expression,
    string outputMessageFormat
)
expression Boolean
The expression that you want to verify
outputMessageFormat String
The format of the output message. The supported arguments are:
  • {LeftExpression}
  • {LeftExpressionText}
  • {RightExpression}
  • {RightExpressionText}
  • {Result}
  • {Operator}
For instance, you can use the following output message format:
"{LeftExpressionText}
    (with value {LeftExpression}) {Operator} {RightExpressionText} (with value {RightExpression})
    has result {Result}."{LeftExpressionText}
    (with value {LeftExpression}) {Operator} {RightExpressionText} (with value {RightExpression})
    has result {Result}.
This message format indicates a comparison between two values or variables (LeftExpression and RightExpression), using a certain operator. The {Result} represents the outcome of this comparison.

VerifyExpression(Boolean, String, Boolean, String, Boolean, Boolean

Verifies the truth of a given expression, considering several configurations, such as a certain output message format, or an alternative verification title.

bool VerifyExpression(
	bool expression,
	string outputMessageFormat,
	bool continueOnFailure,
	string alternativeVerificationTitle,
	bool takeScreenshotInCaseOfFailingAssertion,
	bool takeScreenshotInCaseOfSucceedingAssertion
)bool VerifyExpression(
	bool expression,
	string outputMessageFormat,
	bool continueOnFailure,
	string alternativeVerificationTitle,
	bool takeScreenshotInCaseOfFailingAssertion,
	bool takeScreenshotInCaseOfSucceedingAssertion
)
expression Boolean
The expression that you want to verify.
outputMessageFormat String
Format of output message. Supported arguments: {LeftExpression}, {LeftExpressionText}, {RightExpression}, {RightExpressionText}, {Result}, {Operator}. Example : {LeftExpressionText}" (with value {LeftExpression}) {Operator} {RightExpressionText} (with value {RightExpression}) has result {Result}.
continueOnFailure Boolean
Specifies if the automation should continue even when the activity throws an error. The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.
alternativeVerificationTitle String
This title will be displayed in orchestrator.
takeScreenshotInCaseOfFailingAssertion Boolean
If set to True, takes a screenshot of the target process if the verification has failed.
takeScreenshotInCaseOfSucceedingAssertion Boolean
If set to True, takes a screenshot of the target process if the verification has been successful.

Return value

It is “True” if the Verification passed/succeeded, and “False” if the Verification failed.

Support and Services icon
Get The Help You Need
UiPath Academy icon
Learning RPA - Automation Courses
UiPath Forum icon
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.