UiPath Documentation
uipath-cli
latest
false

UiPath CLI user guide

uip tm objectlabel

uip tm objectlabel manages labels attached to Test Manager objects (test cases, requirements, and so on). Labels are free-form strings used to tag and group objects for filtering and search.

Synopsis

uip tm objectlabel list --object-id <uuid> --object-type <type>
uip tm objectlabel get --object-id <uuid> --object-type <type> --label <text>
uip tm objectlabel add --object-id <uuid> --object-type <type> --label <text>
uip tm objectlabel remove --object-id <uuid> --object-type <type> --label <text>
uip tm objectlabel list --object-id <uuid> --object-type <type>
uip tm objectlabel get --object-id <uuid> --object-type <type> --label <text>
uip tm objectlabel add --object-id <uuid> --object-type <type> --label <text>
uip tm objectlabel remove --object-id <uuid> --object-type <type> --label <text>

All verbs honor the global options and the standard exit codes. Every verb accepts -t, --tenant <name> and --log-level <level> (default Information).

--object-type <type> accepted values are tool-version-dependent (for example, testcase, requirement). Run uip tm objectlabel list --help to see the current enum.

uip tm objectlabel list

List all labels on an object.

Arguments

None.

Options

  • --object-id <uuid> (required) — object UUID (for example, a test case's Id).
  • --object-type <type> (required) — type of object to query. Accepted values are tool-version-dependent; run --help to see the current set.

Example

uip tm objectlabel list \
  --object-id a1b2c3d4-0000-0000-0000-000000000001 \
  --object-type testcase
uip tm objectlabel list \
  --object-id a1b2c3d4-0000-0000-0000-000000000001 \
  --object-type testcase

Data shape

{
  "Code": "ObjectLabelList",
  "Data": [
    "smoke",
    "high-priority"
  ]
}
{
  "Code": "ObjectLabelList",
  "Data": [
    "smoke",
    "high-priority"
  ]
}

uip tm objectlabel get

Check whether a specific label is present on an object.

Arguments

None.

Options

  • --object-id <uuid> (required) — object UUID.
  • --object-type <type> (required) — type of object.
  • --label <text> (required) — label to check.

Example

uip tm objectlabel get \
  --object-id a1b2c3d4-0000-0000-0000-000000000001 \
  --object-type testcase \
  --label smoke
uip tm objectlabel get \
  --object-id a1b2c3d4-0000-0000-0000-000000000001 \
  --object-type testcase \
  --label smoke

Data shape

{
  "Code": "ObjectLabelGet",
  "Data": {
    "Label": "smoke",
    "Present": true
  }
}
{
  "Code": "ObjectLabelGet",
  "Data": {
    "Label": "smoke",
    "Present": true
  }
}

uip tm objectlabel add

Attach a label to an object.

Arguments

None.

Options

  • --object-id <uuid> (required) — object UUID.
  • --object-type <type> (required) — type of object.
  • --label <text> (required) — label to attach.

Example

uip tm objectlabel add \
  --object-id a1b2c3d4-0000-0000-0000-000000000001 \
  --object-type testcase \
  --label smoke
uip tm objectlabel add \
  --object-id a1b2c3d4-0000-0000-0000-000000000001 \
  --object-type testcase \
  --label smoke

Data shape

{
  "Code": "ObjectLabelAdd",
  "Data": {
    "Label": "smoke",
    "Result": "Added"
  }
}
{
  "Code": "ObjectLabelAdd",
  "Data": {
    "Label": "smoke",
    "Result": "Added"
  }
}

uip tm objectlabel remove

Remove a label from an object.

Arguments

None.

Options

  • --object-id <uuid> (required) — object UUID.
  • --object-type <type> (required) — type of object.
  • --label <text> (required) — label to remove.

Example

uip tm objectlabel remove \
  --object-id a1b2c3d4-0000-0000-0000-000000000001 \
  --object-type testcase \
  --label smoke
uip tm objectlabel remove \
  --object-id a1b2c3d4-0000-0000-0000-000000000001 \
  --object-type testcase \
  --label smoke

Data shape

{
  "Code": "ObjectLabelRemove",
  "Data": {
    "Label": "smoke",
    "Result": "Removed"
  }
}
{
  "Code": "ObjectLabelRemove",
  "Data": {
    "Label": "smoke",
    "Result": "Removed"
  }
}
  • requirement — search requirements by label with requirement search-by-label.
  • customfield — custom field definitions can use labels.

See also

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated