@uipath/test-manager-tool 1.196.0 → 1.197.0-preview.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,221 @@
1
+ # UiPath Test Manager Tool (`uip tm`)
2
+
3
+ > **Full reference:** [UiPath CLI — Test Manager](https://docs.uipath.com/uipath-cli/standalone/latest/user-guide/uip-test-manager)
4
+
5
+ Manage test cases, test sets, executions, and results in UiPath Test Manager from the command line.
6
+
7
+ This package adds the `tm` command group to the [`uip` CLI](../cli). Every command is invoked as:
8
+
9
+ ```
10
+ uip tm <group> <command> [options]
11
+ ```
12
+
13
+ Run a group with `--help` to list its commands, and a command with `--help` to see its options and a live example:
14
+
15
+ ```bash
16
+ uip tm testcases --help # list commands in the testcases group
17
+ uip tm testcases create --help # options for one command
18
+ ```
19
+
20
+ ---
21
+
22
+ ## Getting started
23
+
24
+ ```bash
25
+ # 1. Authenticate the uip CLI (interactive)
26
+ uip login
27
+
28
+ # 2. Confirm you are logged in
29
+ uip login status --output json
30
+
31
+ # 3. Discover your projects
32
+ uip tm project list --output json
33
+ ```
34
+
35
+ For CI / non-interactive runs the CLI reads env-auth variables (`UIPATH_CLI_ENABLE_ENV_AUTH=true`, `UIPATH_CLI_AUTH_TOKEN`, plus org/tenant). See the root CLI docs for details.
36
+
37
+ ---
38
+
39
+ ## Global flags
40
+
41
+ These flags apply to every command.
42
+
43
+ | Flag | Description |
44
+ |------|-------------|
45
+ | `--output <format>` | Output format: `table`, `json`, `yaml`, or `plain`. Use `json` for scripting. |
46
+ | `--output-filter <expr>` | [JMESPath](https://jmespath.org/) expression applied to the `Data` field before printing. |
47
+ | `--log-level <level>` | Log verbosity: `debug`, `info`, `warn`, `error`. |
48
+ | `--log-file <path>` | Write logs to a file instead of stderr. |
49
+
50
+ Success responses: `{ "Result": "Success", "Code": "...", "Data": ... }`. Errors: `{ "Result": "Failure", "Message": "...", "Instructions": ... }` + non-zero exit code.
51
+
52
+ ---
53
+
54
+ ## Command surface
55
+
56
+ ### `project` — Test Manager projects
57
+
58
+ | Command | Description |
59
+ |---------|-------------|
60
+ | `uip tm project list` | List Test Manager projects. |
61
+ | `uip tm project create` | Create a new Test Manager project. |
62
+ | `uip tm project update` | Update a project name or description. |
63
+ | `uip tm project delete` | Delete a project by its key. |
64
+ | `uip tm project set-default-folder` | Set the default Orchestrator folder for a project. |
65
+ | `uip tm project clear-default-folder` | Clear the default Orchestrator folder from a project. |
66
+ | `uip tm project owners list` | List the owners of one or more projects. |
67
+
68
+ ### `requirements` — Requirements
69
+
70
+ | Command | Description |
71
+ |---------|-------------|
72
+ | `uip tm requirements list` | List requirements in a project. |
73
+ | `uip tm requirements create` | Create a new requirement. |
74
+ | `uip tm requirements get` | Get a requirement by id or key. |
75
+ | `uip tm requirements update` | Update a requirement name or description. |
76
+ | `uip tm requirements delete` | Delete one or more requirements. |
77
+ | `uip tm requirements export` | Export requirements to an .xlsx file. |
78
+ | `uip tm requirements list-by-test-execution` | List requirements covered by a test execution. |
79
+ | `uip tm requirements list-testcase-ids` | List the test case UUIDs assigned to a requirement. |
80
+ | `uip tm requirements testcases` | Attach or detach test cases on a requirement. |
81
+
82
+ ### `testcases` — Test cases
83
+
84
+ | Command | Description |
85
+ |---------|-------------|
86
+ | `uip tm testcases list` | List all test cases in a project. |
87
+ | `uip tm testcases create` | Create a new test case. |
88
+ | `uip tm testcases update` | Update a test case name, description, or pre/post-condition. |
89
+ | `uip tm testcases delete` | Delete a test case by its key. |
90
+ | `uip tm testcases run` | Run a new execution for one or more test cases. |
91
+ | `uip tm testcases add` | Add test cases to a test set. |
92
+ | `uip tm testcases remove` | Remove test cases from a test set. |
93
+ | `uip tm testcases link-automation` | Link an Orchestrator package automation to a test case. |
94
+ | `uip tm testcases unlink-automation` | Unlink the automation from a test case. |
95
+ | `uip tm testcases list-automations` | List test entry points available in an Orchestrator folder. |
96
+ | `uip tm testcases list-result-history` | List result history for a specific test case. |
97
+ | `uip tm testcases list-steps` | List the steps of a test case. |
98
+ | `uip tm testcases list-testsets` | List test sets that contain a given test case. |
99
+ | `uip tm testcases steps add` | Add one or more steps to a test case. |
100
+ | `uip tm testcases steps get` | Get a single test step by its id. |
101
+ | `uip tm testcases steps list` | List the steps of a test case. |
102
+ | `uip tm testcases steps move` | Move a step to a new position in the test case. |
103
+ | `uip tm testcases steps update` | Update a step's description, expected result, or notes. |
104
+ | `uip tm testcases steps delete` | Delete a step from a test case. |
105
+
106
+ ### `testsets` — Test sets
107
+
108
+ | Command | Description |
109
+ |---------|-------------|
110
+ | `uip tm testsets list` | List test sets in a project. |
111
+ | `uip tm testsets create` | Create a new test set. |
112
+ | `uip tm testsets update` | Update a test set name or description. |
113
+ | `uip tm testsets delete` | Delete a test set by its key. |
114
+ | `uip tm testsets run` | Run a test set and return the execution ID. Pass `--wait` to block until done. |
115
+ | `uip tm testsets list-testcases` | List test cases assigned to a test set. |
116
+
117
+ ### `executions` — Test executions
118
+
119
+ | Command | Description |
120
+ |---------|-------------|
121
+ | `uip tm executions list` | List top n executions for a project or test set. |
122
+ | `uip tm executions list-filtered` | List executions for a project using the full filtered API. |
123
+ | `uip tm executions run` | Run a test execution. |
124
+ | `uip tm executions retry` | Retry only the failed test cases of a finished execution. |
125
+ | `uip tm executions get-stats` | Get aggregated pass/fail/none stats for an execution. |
126
+ | `uip tm executions testcaselogs list` | List test case logs produced by an execution. |
127
+
128
+ ### `testcaselog` — Test case logs (manual execution recording)
129
+
130
+ | Command | Description |
131
+ |---------|-------------|
132
+ | `uip tm testcaselog start` | Start a test case execution within a test execution. |
133
+ | `uip tm testcaselog finish` | Finish a test case execution and record all step results. |
134
+ | `uip tm testcaselog list-assertions` | List assertions for a test case log. |
135
+
136
+ ### `teststeplog` — Test step logs
137
+
138
+ | Command | Description |
139
+ |---------|-------------|
140
+ | `uip tm teststeplog list` | List test step logs for a test case log. |
141
+
142
+ ### `result` — Execution results
143
+
144
+ | Command | Description |
145
+ |---------|-------------|
146
+ | `uip tm result download` | Download test execution results as JUnit XML. |
147
+
148
+ ### `report` — Execution reports
149
+
150
+ | Command | Description |
151
+ |---------|-------------|
152
+ | `uip tm report get` | Get a summary report for a completed test execution. |
153
+
154
+ ### `attachment` — Attachments
155
+
156
+ | Command | Description |
157
+ |---------|-------------|
158
+ | `uip tm attachment upload` | Upload a file as an attachment to a Test Manager object. |
159
+ | `uip tm attachment download` | Download attachments for test cases in an execution. |
160
+
161
+ ### `customfield` — Custom fields
162
+
163
+ | Command | Description |
164
+ |---------|-------------|
165
+ | `uip tm customfield list` | List custom field definitions in a project. |
166
+ | `uip tm customfield create` | Create a new custom field definition. |
167
+ | `uip tm customfield get` | Get a custom field definition. |
168
+ | `uip tm customfield update` | Update a custom field definition. |
169
+ | `uip tm customfield delete` | Delete one or more custom field definitions. |
170
+ | `uip tm customfield label add` | Add label values to a custom field across multiple objects. |
171
+ | `uip tm customfield label create` | Upsert label values for an object. |
172
+ | `uip tm customfield label get` | Get a custom field label row by id. |
173
+ | `uip tm customfield label list` | List custom field label rows for an object type. |
174
+ | `uip tm customfield label remove` | Remove label values from a custom field across multiple objects. |
175
+ | `uip tm customfield value create` | Create a custom field value row on an object. |
176
+ | `uip tm customfield value get` | Get a custom field value row. |
177
+ | `uip tm customfield value list` | List text custom field values for an object type. |
178
+ | `uip tm customfield value update` | Update a custom field value row. |
179
+ | `uip tm customfield value delete` | Delete a custom field value row. |
180
+
181
+ ### `objectlabel` — Object labels (tags)
182
+
183
+ | Command | Description |
184
+ |---------|-------------|
185
+ | `uip tm objectlabel list` | List distinct label names for one object type. |
186
+ | `uip tm objectlabel add` | Add labels to one or more objects. |
187
+ | `uip tm objectlabel get` | Get a single label assignment row by its id. |
188
+ | `uip tm objectlabel remove` | Remove labels from multiple objects. |
189
+
190
+ ### `user` — User data
191
+
192
+ | Command | Description |
193
+ |---------|-------------|
194
+ | `uip tm user get` | Get data for the currently authenticated user. |
195
+
196
+ ### `wait` — Wait for execution
197
+
198
+ | Command | Description |
199
+ |---------|-------------|
200
+ | `uip tm wait` | Wait for a test execution to reach a terminal state (pass `--execution-id` and `--project-key`). |
201
+
202
+ ---
203
+
204
+ ## Examples
205
+
206
+ ```bash
207
+ # List projects as JSON
208
+ uip tm project list --output json
209
+
210
+ # Create a test case
211
+ uip tm testcases create --project-key DEMO --name "Login smoke" --description "Logs in and out"
212
+
213
+ # Run a test set and wait for it to finish
214
+ uip tm testsets run --test-set-key DEMO:10 --wait
215
+
216
+ # Download execution results as JUnit XML
217
+ uip tm result download --execution-id a1b2c3d4-0000-0000-0000-000000000001 --project-key DEMO --result-path ./junit.xml
218
+
219
+ # Retry only the failed test cases of an execution
220
+ uip tm executions retry --execution-id a1b2c3d4-0000-0000-0000-000000000001 --project-key DEMO
221
+ ```
package/dist/index.js CHANGED
@@ -2149,3 +2149,5 @@ var program2 = new Command;
2149
2149
  program2.name(metadata.commandPrefix).description(metadata.description).version(metadata.version);
2150
2150
  await registerCommands(program2);
2151
2151
  program2.parse(process.argv);
2152
+
2153
+ //# debugId=96C1541AB487666464756E2164756E21