Context
I am working on coded automation tests in UiPath and using the VerifyExpressionWithOperator
method to validate expressions. My implementation includes the use of the alternativeVerificationTitle
parameter to set custom titles for these validations.
public void CheckResult(bool elementExists, string verificationTitle, bool verifySecondExpression = true)
{
testing.VerifyExpressionWithOperator(
firstExpression: elementExists,
operatorValue: Comparison.Equality,
secondExpression: verifySecondExpression,
outputMessageFormat: null,
continueOnFailure: true,
alternativeVerificationTitle: verificationTitle,
takeScreenshotInCaseOfFailingAssertion: true,
takeScreenshotInCaseOfSucceedingAssertion: true
);
Expected Behavior
The alternativeVerificationTitle
parameter should be displayed as title of the assertion in UiPath Orchestrator.
Actual Behavior
- The
alternativeVerificationTitle
parameter is passed correctly (verified via logging) but does not appear in Orchestrator (insted the default activity name Verify Expression with Operator appears). - Other parameters, such as
outputMessageFormat
, work as expected and override the default message format. - Using static strings for
alternativeVerificationTitle
also does not work.
Has anyone encountered this issue before or has an idea?
Could this be a bug in UiPath’s libraries, and should I report it?