Courseiva

UiPath-ADAv1 Workflow Analyzer and RPA Testing Practice Question

A developer is authoring a UiPath test case in a project that uses the Given-When-Then template. The 'When' section invokes a workflow that queries a database and returns a DataTable. The developer needs to attach a descriptive message that will appear in the test output if the subsequent verification fails. Which activity should be placed in the 'Then' section to produce a custom failure message when the DataTable row count is not equal to 5?

⚠ Common exam trap

Candidates often confuse a generic assertion such as Assert with the UiPath testing activity that both verifies and emits a custom message, when only Verify Expression With Message provides the message in the test output.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

Verify Expression With Message

The 'Then' section of a Given-When-Then test must contain an activity that both evaluates the expected outcome and fails the test when the outcome is not met. Verify Expression With Message does this while also recording a custom message in the test output, which is precisely what the developer needs to diagnose a row-count mismatch. The other activities either lack message support or do not fail the test at all.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✓

    Verify Expression With Message

    Why this is correct

    Verify Expression With Message evaluates a boolean expression and, if it evaluates to false, fails the test while recording the developer-supplied message in the test output. This directly satisfies the requirement of attaching a descriptive failure message when the DataTable row count does not equal 5. It is part of the UiPath.Testing.Activities package and is designed for exactly this kind of verification with diagnostics.

  • ✗

    Verify Expression

    Why it's wrong here

    Verify Expression evaluates a boolean expression and, when it is false, fails the test, but it does not let the developer supply a custom message describing the failure. Because the scenario requires a descriptive message to appear in the test output, this activity cannot satisfy the requirement. It is useful for simple assertions where the expression itself is self-explanatory, not for custom failure diagnostics.

  • ✗

    Log Message

    Why it's wrong here

    Log Message writes a message to the UiPath execution log, but it does not evaluate a condition and does not fail the test. Using it in the 'Then' section would only produce an informational entry regardless of whether the row count is correct, so the test would pass even when the verification should fail. It cannot replace an assertion activity for test verification.

  • ✗

    Assert

    Why it's wrong here

    The Assert activity is a generic programming assertion that throws an exception when its condition is false. Although it can fail the test, it does not integrate with the UiPath testing framework's result reporting to attach a friendly message to the test output. The scenario specifically asks for a custom message in the test output, which Assert does not provide in the testing context.

About these practice questions

This UiPath-ADAv1 question is part of Courseiva's 285-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official UiPath exam blueprint

This UiPath-ADAv1 practice question is part of Courseiva's free UiPath certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the UiPath-ADAv1 exam.