uipath-cli
latest
false
UiPath CLI user guide
- Overview
- Get started
- Concepts
- Using UiPath CLI
- How-to guides
- CI/CD recipes
- Command reference
- Overview
- Exit codes
- Global options
- uip codedagent
- uip coder
- uip context-grounding
- uip docsai
- uip function
- uip guardrails
- uip llm-configuration
- uip llm-gateway
- uip maestro authoring
- uip maestro registry
- uip model-hub
- activities find
- activities get-default-xaml
- analyze
- analyzer-rules list
- build
- cleanup
- data-fabric-entities install
- data-fabric-entities list
- files diff
- get-library-object-repository
- get-object-repository
- init
- instances list
- pack
- packages inspect
- packages install
- packages versions
- publish
- remote
- restore
- run, debug & execution
- settings
- studio start
- templates search
- test-data add-entity
- test-data add-queue
- test-data add-variation
- tm
- uia
- validate
- workflow-examples get
- workflow-examples list
- uip tasks
- uip traces
- uip traces feedback
- Migration
- Reference & support
uip rpa test-data add-entity
Syntax and options for `uip rpa test-data add-entity`, which wires a Data Service entity into a test case as its data source.
uip rpa test-data add-entity wires a UiPath Data Service entity into a test case as its data source. Studio adds an argument of the entity type to the test case file, named after the entity, so each test invocation receives a strongly-typed entity record.
The verb is driven by Studio, so it requires a Windows runner. A Data Service-enabled tenant in Automation Cloud is also required — discover the entity name and its full type name there before calling this verb.
Synopsis
uip rpa test-data add-entity --test-case-path <string> --entity-name <string> --entity-type-name <string>
uip rpa test-data add-entity --test-case-path <string> --entity-name <string> --entity-type-name <string>
Options
| Flag | Description |
|---|---|
--test-case-path <string> | Relative path to the test case file (.xaml or .cs) within the project directory. |
--entity-name <string> | Name of the Data Service entity. |
--entity-type-name <string> | Full type name of the entity (e.g. MyEntity or a namespace-qualified type). |
For the complete option list on your installed tool version, run:
uip rpa test-data add-entity --help
uip rpa test-data add-entity --help
Examples
# Bind the Customer entity as a data source to a XAML test case
uip rpa test-data add-entity \
--test-case-path Tests/CustomerOnboarding.xaml \
--entity-name Customer \
--entity-type-name Customer
# Bind a namespace-qualified entity to a coded test case
uip rpa test-data add-entity \
--test-case-path Tests/InvoiceFlow.cs \
--entity-name Invoice \
--entity-type-name MyOrg.Finance.Invoice
# Bind the Customer entity as a data source to a XAML test case
uip rpa test-data add-entity \
--test-case-path Tests/CustomerOnboarding.xaml \
--entity-name Customer \
--entity-type-name Customer
# Bind a namespace-qualified entity to a coded test case
uip rpa test-data add-entity \
--test-case-path Tests/InvoiceFlow.cs \
--entity-name Invoice \
--entity-type-name MyOrg.Finance.Invoice
Related
uip rpa test-data add-queue— bind an Orchestrator Test Data Queue instead of a Data Service entity.uip rpa test-data add-variation— bind a CSV or Excel variation file.uip rpa init— scaffold the test project before adding data sources.uip tm testcases— manage the matching test case in Test Manager.