UiPath Documentation
uipath-cli
latest
false

UiPath CLI user guide

Last updated May 7, 2026

uip rpa add-test-data-variation

uip rpa add-test-data-variation attaches a data variation file (CSV, Excel, and similar tabular formats) to a test case. Studio registers the file as a project data source, reads the column headers as argument names, and adds matching arguments to the test case so each row drives one iteration.

The verb runs through Studio, so it requires a Windows runner. Both the test case and the data file must already exist on disk inside the project directory.

Synopsis

uip rpa add-test-data-variation --test-case-path <string> --data-variation-path <string>
uip rpa add-test-data-variation --test-case-path <string> --data-variation-path <string>

Options

FlagDescription
--test-case-path <string>Relative path to the test case file (.xaml or .cs) within the project directory.
--data-variation-path <string>Relative path to the data variation file (CSV, Excel, etc.) within the project directory.

For the complete option list on your installed tool version, run:

uip rpa add-test-data-variation --help
uip rpa add-test-data-variation --help

Examples

# Attach a CSV variation to a XAML test case
uip rpa add-test-data-variation \
  --test-case-path Tests/CustomerOnboarding.xaml \
  --data-variation-path Tests/Data/customers.csv

# Attach an Excel variation to a coded test case
uip rpa add-test-data-variation \
  --test-case-path Tests/InvoiceFlow.cs \
  --data-variation-path Tests/Data/invoice-fixtures.xlsx
# Attach a CSV variation to a XAML test case
uip rpa add-test-data-variation \
  --test-case-path Tests/CustomerOnboarding.xaml \
  --data-variation-path Tests/Data/customers.csv

# Attach an Excel variation to a coded test case
uip rpa add-test-data-variation \
  --test-case-path Tests/InvoiceFlow.cs \
  --data-variation-path Tests/Data/invoice-fixtures.xlsx

See also

  • Synopsis
  • Options
  • Examples
  • Related
  • See also

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated