QuestionQ73

Advanced Data Manipulation

A developer is creating a test case to verify whether the SumWorkfiow correctly sums 2 integers, using different input values from an Excel file. What could be considered an improvement to how the test was developed?

SumWorkflow:

Question Image

Question Image

Question Image

TestData.xlsx:

Question Image

  • A Replace the Given-When-Then structure with a custom-built framework.
  • B Use the Excel file as a Data Variation Source, instead of iterating through it inside the test case.
  • C Surround the SumWorkflow in a Retry Scope to improve error handling.
  • D Replace the Verify Expression activity with Verify Expression with Operator to benefit from built-in operators.
Explanation

UiPath data-driven testing supports an Excel file as a file-based data variation source. The file columns become test input arguments, and each selected row is executed as a separate test-data variation. This removes the need to read the workbook and manually loop through its rows inside the test case.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!