Activities
latest
false
VerifyRange - Other latest
logo
Workflow Activities
Last updated 2023年10月25日

VerifyRange

Verifies if an expression is located or not within a given range.

Definition

Namespace: UiPath.Testing.API

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

Overloads

   
VerifyRange(Object,VerificationType, Object) Verifies if an expression is located or not within a given range.
VerifyRange(Object,VerificationType, Object, Object,String, Boolean, String, Boolean, Boolean) Verifies if an expression is located or not within a given range.You can also perform other configurations additional to the verification, such as configuring an output message format, or taking a screenshot in case the assertion fails.

VerifyRange(Object,VerificationType, Object)

Verifies if an expression is located or not within a given range.

bool VerifyRange(
	Object expression,
	VerificationType verificationType,
	Object lowerLimit,
	Object upperLimit
)bool VerifyRange(
	Object expression,
	VerificationType verificationType,
	Object lowerLimit,
	Object upperLimit
)
expression Object
The expression that you want to verify within a given range.
verificationType VerificationType
Select the verification type - inside or outside the range:
  • IsWithin
  • IsNotWithin
lowerLimit Object
The lower bound of the range.
upperLimit Object
The upper bound of the range.

VerifyRange(Object,VerificationType, Object, Object,String, Boolean, String, Boolean, Boolean)

Verifies if an expression is located or not within a given range.You can also perform other configurations additional to the verification, such as configuring an output message format, or taking a screenshot in case the assertion fails.

bool VerifyRange(
	Object expression,
	VerificationType verificationType,
	Object lowerLimit,
	Object upperLimit,
	string outputMessageFormat,
	bool continueOnFailure,
	string alternativeVerificationTitle,
	bool takeScreenshotInCaseOfFailingAssertion,
	bool takeScreenshotInCaseOfSucceedingAssertion
)bool VerifyRange(
	Object expression,
	VerificationType verificationType,
	Object lowerLimit,
	Object upperLimit,
	string outputMessageFormat,
	bool continueOnFailure,
	string alternativeVerificationTitle,
	bool takeScreenshotInCaseOfFailingAssertion,
	bool takeScreenshotInCaseOfSucceedingAssertion
)
expression Object
The expression that you want to verify within a given range.
verificationType VerificationType
Select the verification type - inside or outside the range:
  • IsWithin
  • IsNotWithin
lowerLimit Object
The lower bound of the range.
upperLimit Object
The upper bound of the range.
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 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

Boolean

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

logo
Get The Help You Need
logo
Learning RPA - Automation Courses
logo
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2023 UiPath. All rights reserved.