@copado/agentia-cli 0.112.0-alpha.0 → 0.114.0-alpha.0
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 +2014 -450
- package/dist/commands/ai/agent/ask.d.ts +3 -0
- package/dist/commands/ai/agent/ask.js +14 -0
- package/dist/commands/ai/agent/ask.js.map +1 -1
- package/dist/commands/ai/agent/chat.d.ts +3 -0
- package/dist/commands/ai/agent/chat.js +14 -0
- package/dist/commands/ai/agent/chat.js.map +1 -1
- package/dist/commands/cicd/work/set.js +22 -14
- package/dist/commands/cicd/work/set.js.map +1 -1
- package/dist/commands/testing/build/abort.d.ts +7 -1
- package/dist/commands/testing/build/abort.js +13 -3
- package/dist/commands/testing/build/abort.js.map +1 -1
- package/dist/commands/testing/build/get.d.ts +18 -0
- package/dist/commands/testing/build/get.js +38 -0
- package/dist/commands/testing/build/get.js.map +1 -0
- package/dist/commands/testing/build/latest.d.ts +12 -0
- package/dist/commands/testing/build/latest.js +40 -0
- package/dist/commands/testing/build/latest.js.map +1 -0
- package/dist/commands/testing/build/list.d.ts +6 -1
- package/dist/commands/testing/build/list.js +23 -1
- package/dist/commands/testing/build/list.js.map +1 -1
- package/dist/commands/testing/build/logs.d.ts +6 -0
- package/dist/commands/testing/build/logs.js +8 -1
- package/dist/commands/testing/build/logs.js.map +1 -1
- package/dist/commands/testing/build/run.d.ts +27 -4
- package/dist/commands/testing/build/run.js +4 -18
- package/dist/commands/testing/build/run.js.map +1 -1
- package/dist/commands/testing/build/search.d.ts +21 -0
- package/dist/commands/testing/build/search.js +57 -0
- package/dist/commands/testing/build/search.js.map +1 -0
- package/dist/commands/testing/create.d.ts +1 -15
- package/dist/commands/testing/create.js +1 -43
- package/dist/commands/testing/create.js.map +1 -1
- package/dist/commands/testing/data-table/create.d.ts +30 -0
- package/dist/commands/testing/data-table/create.js +52 -0
- package/dist/commands/testing/data-table/create.js.map +1 -0
- package/dist/commands/testing/data-table/delete.d.ts +25 -0
- package/dist/commands/testing/data-table/delete.js +40 -0
- package/dist/commands/testing/data-table/delete.js.map +1 -0
- package/dist/commands/testing/data-table/export.d.ts +33 -0
- package/dist/commands/testing/data-table/export.js +59 -0
- package/dist/commands/testing/data-table/export.js.map +1 -0
- package/dist/commands/testing/data-table/get.d.ts +21 -0
- package/dist/commands/testing/data-table/get.js +35 -0
- package/dist/commands/testing/data-table/get.js.map +1 -0
- package/dist/commands/testing/data-table/list.d.ts +16 -0
- package/dist/commands/testing/data-table/list.js +33 -0
- package/dist/commands/testing/data-table/list.js.map +1 -0
- package/dist/commands/testing/data-table/update.d.ts +34 -0
- package/dist/commands/testing/data-table/update.js +64 -0
- package/dist/commands/testing/data-table/update.js.map +1 -0
- package/dist/commands/testing/job/create.d.ts +18 -0
- package/dist/commands/testing/job/create.js +60 -4
- package/dist/commands/testing/job/create.js.map +1 -1
- package/dist/commands/testing/job/delete.d.ts +6 -1
- package/dist/commands/testing/job/delete.js +13 -3
- package/dist/commands/testing/job/delete.js.map +1 -1
- package/dist/commands/testing/job/refs.d.ts +17 -0
- package/dist/commands/testing/job/refs.js +30 -0
- package/dist/commands/testing/job/refs.js.map +1 -0
- package/dist/commands/testing/job/schedule/get.d.ts +23 -0
- package/dist/commands/testing/job/schedule/get.js +31 -0
- package/dist/commands/testing/job/schedule/get.js.map +1 -0
- package/dist/commands/testing/job/schedule/remove.d.ts +24 -0
- package/dist/commands/testing/job/schedule/remove.js +34 -0
- package/dist/commands/testing/job/schedule/remove.js.map +1 -0
- package/dist/commands/testing/job/schedule/set.d.ts +23 -0
- package/dist/commands/testing/job/schedule/set.js +39 -0
- package/dist/commands/testing/job/schedule/set.js.map +1 -0
- package/dist/commands/testing/job/update.d.ts +2 -0
- package/dist/commands/testing/job/update.js +7 -1
- package/dist/commands/testing/job/update.js.map +1 -1
- package/dist/commands/testing/job/upload.d.ts +6 -0
- package/dist/commands/testing/job/upload.js +22 -0
- package/dist/commands/testing/job/upload.js.map +1 -1
- package/dist/commands/testing/live/continue.d.ts +20 -0
- package/dist/commands/testing/live/continue.js +21 -0
- package/dist/commands/testing/live/continue.js.map +1 -0
- package/dist/commands/testing/live/execute.d.ts +30 -0
- package/dist/commands/testing/live/execute.js +43 -0
- package/dist/commands/testing/live/execute.js.map +1 -0
- package/dist/commands/testing/live/history.d.ts +23 -0
- package/dist/commands/testing/live/history.js +35 -0
- package/dist/commands/testing/live/history.js.map +1 -0
- package/dist/commands/testing/live/inspect.d.ts +18 -0
- package/dist/commands/testing/live/inspect.js +30 -0
- package/dist/commands/testing/live/inspect.js.map +1 -0
- package/dist/commands/testing/live/interrupt.d.ts +20 -0
- package/dist/commands/testing/live/interrupt.js +21 -0
- package/dist/commands/testing/live/interrupt.js.map +1 -0
- package/dist/commands/testing/live/recorder.d.ts +23 -0
- package/dist/commands/testing/live/recorder.js +134 -0
- package/dist/commands/testing/live/recorder.js.map +1 -0
- package/dist/commands/testing/live/reports.d.ts +20 -0
- package/dist/commands/testing/live/reports.js +31 -0
- package/dist/commands/testing/live/reports.js.map +1 -0
- package/dist/commands/testing/live/screenshot.d.ts +23 -0
- package/dist/commands/testing/live/screenshot.js +25 -0
- package/dist/commands/testing/live/screenshot.js.map +1 -0
- package/dist/commands/testing/live/set-options.d.ts +27 -0
- package/dist/commands/testing/live/set-options.js +28 -0
- package/dist/commands/testing/live/set-options.js.map +1 -0
- package/dist/commands/testing/live/start.d.ts +29 -0
- package/dist/commands/testing/live/start.js +53 -0
- package/dist/commands/testing/live/start.js.map +1 -0
- package/dist/commands/testing/live/status.d.ts +19 -0
- package/dist/commands/testing/live/status.js +27 -0
- package/dist/commands/testing/live/status.js.map +1 -0
- package/dist/commands/testing/live/stop.d.ts +24 -0
- package/dist/commands/testing/live/stop.js +38 -0
- package/dist/commands/testing/live/stop.js.map +1 -0
- package/dist/commands/testing/live/view.d.ts +16 -0
- package/dist/commands/testing/live/view.js +36 -0
- package/dist/commands/testing/live/view.js.map +1 -0
- package/dist/commands/testing/logs.d.ts +6 -0
- package/dist/commands/testing/logs.js +8 -1
- package/dist/commands/testing/logs.js.map +1 -1
- package/dist/commands/testing/project/create.d.ts +3 -0
- package/dist/commands/testing/project/create.js +17 -1
- package/dist/commands/testing/project/create.js.map +1 -1
- package/dist/commands/testing/project/delete.d.ts +7 -2
- package/dist/commands/testing/project/delete.js +15 -3
- package/dist/commands/testing/project/delete.js.map +1 -1
- package/dist/commands/testing/project/get.js +1 -1
- package/dist/commands/testing/project/get.js.map +1 -1
- package/dist/commands/testing/project/permission/get.d.ts +13 -0
- package/dist/commands/testing/project/permission/get.js +21 -0
- package/dist/commands/testing/project/permission/get.js.map +1 -0
- package/dist/commands/testing/project/permission/list.d.ts +13 -0
- package/dist/commands/testing/project/permission/list.js +21 -0
- package/dist/commands/testing/project/permission/list.js.map +1 -0
- package/dist/commands/testing/project/permission/set.d.ts +19 -0
- package/dist/commands/testing/project/permission/set.js +33 -0
- package/dist/commands/testing/project/permission/set.js.map +1 -0
- package/dist/commands/testing/project/permission/update.d.ts +19 -0
- package/dist/commands/testing/project/permission/update.js +33 -0
- package/dist/commands/testing/project/permission/update.js.map +1 -0
- package/dist/commands/testing/project/update.d.ts +14 -0
- package/dist/commands/testing/project/update.js +28 -0
- package/dist/commands/testing/project/update.js.map +1 -0
- package/dist/commands/testing/robot/create.d.ts +4 -1
- package/dist/commands/testing/robot/create.js +20 -5
- package/dist/commands/testing/robot/create.js.map +1 -1
- package/dist/commands/testing/robot/delete.d.ts +6 -1
- package/dist/commands/testing/robot/delete.js +13 -3
- package/dist/commands/testing/robot/delete.js.map +1 -1
- package/dist/commands/testing/robot/update.d.ts +19 -0
- package/dist/commands/testing/robot/update.js +49 -0
- package/dist/commands/testing/robot/update.js.map +1 -0
- package/dist/commands/testing/run.d.ts +27 -4
- package/dist/commands/testing/run.js +4 -11
- package/dist/commands/testing/run.js.map +1 -1
- package/dist/commands/testing/test/run.d.ts +27 -11
- package/dist/commands/testing/test/run.js +5 -37
- package/dist/commands/testing/test/run.js.map +1 -1
- package/dist/commands/testing/update.d.ts +6 -0
- package/dist/commands/testing/update.js +10 -0
- package/dist/commands/testing/update.js.map +1 -1
- package/dist/commands/testing/user-parameter/create.d.ts +19 -0
- package/dist/commands/testing/user-parameter/create.js +45 -0
- package/dist/commands/testing/user-parameter/create.js.map +1 -0
- package/dist/commands/testing/user-parameter/delete.d.ts +21 -0
- package/dist/commands/testing/user-parameter/delete.js +33 -0
- package/dist/commands/testing/user-parameter/delete.js.map +1 -0
- package/dist/commands/testing/user-parameter/get.d.ts +13 -0
- package/dist/commands/testing/user-parameter/get.js +21 -0
- package/dist/commands/testing/user-parameter/get.js.map +1 -0
- package/dist/commands/testing/user-parameter/list.d.ts +12 -0
- package/dist/commands/testing/user-parameter/list.js +23 -0
- package/dist/commands/testing/user-parameter/list.js.map +1 -0
- package/dist/commands/testing/user-parameter/update.d.ts +23 -0
- package/dist/commands/testing/user-parameter/update.js +45 -0
- package/dist/commands/testing/user-parameter/update.js.map +1 -0
- package/dist/commands/testing/variable/create.d.ts +6 -2
- package/dist/commands/testing/variable/create.js +14 -5
- package/dist/commands/testing/variable/create.js.map +1 -1
- package/dist/commands/testing/variable/delete.d.ts +6 -1
- package/dist/commands/testing/variable/delete.js +13 -3
- package/dist/commands/testing/variable/delete.js.map +1 -1
- package/dist/commands/testing/variable/get.d.ts +13 -0
- package/dist/commands/testing/variable/get.js +25 -0
- package/dist/commands/testing/variable/get.js.map +1 -0
- package/dist/commands/testing/variable/list.d.ts +4 -0
- package/dist/commands/testing/variable/list.js +15 -3
- package/dist/commands/testing/variable/list.js.map +1 -1
- package/dist/commands/testing/variable/update.d.ts +6 -2
- package/dist/commands/testing/variable/update.js +11 -5
- package/dist/commands/testing/variable/update.js.map +1 -1
- package/dist/lib/ai-chat-session.d.ts +2 -1
- package/dist/lib/ai-chat-session.js +8 -0
- package/dist/lib/ai-chat-session.js.map +1 -1
- package/dist/lib/ai-gateway.d.ts +5 -2
- package/dist/lib/ai-gateway.js +44 -5
- package/dist/lib/ai-gateway.js.map +1 -1
- package/dist/lib/ai-operations.d.ts +4 -2
- package/dist/lib/ai-operations.js +29 -3
- package/dist/lib/ai-operations.js.map +1 -1
- package/dist/lib/ai-types.d.ts +29 -0
- package/dist/lib/ai-types.js +25 -0
- package/dist/lib/ai-types.js.map +1 -1
- package/dist/lib/cicd-gateway.d.ts +6 -0
- package/dist/lib/cicd-gateway.js +13 -2
- package/dist/lib/cicd-gateway.js.map +1 -1
- package/dist/lib/credential-store.d.ts +3 -0
- package/dist/lib/credential-store.js +16 -0
- package/dist/lib/credential-store.js.map +1 -1
- package/dist/lib/credential-sync.d.ts +35 -0
- package/dist/lib/credential-sync.js +249 -0
- package/dist/lib/credential-sync.js.map +1 -0
- package/dist/lib/debug.js +3 -1
- package/dist/lib/debug.js.map +1 -1
- package/dist/lib/defaults-store.d.ts +18 -0
- package/dist/lib/defaults-store.js +182 -89
- package/dist/lib/defaults-store.js.map +1 -1
- package/dist/lib/environment-types.js +1 -1
- package/dist/lib/mcp/ai-tools.d.ts +3 -0
- package/dist/lib/mcp/ai-tools.js +6 -0
- package/dist/lib/mcp/ai-tools.js.map +1 -1
- package/dist/lib/mcp/command-id.js +3 -0
- package/dist/lib/mcp/command-id.js.map +1 -1
- package/dist/lib/mcp/redaction.d.ts +1 -2
- package/dist/lib/mcp/redaction.js +1 -23
- package/dist/lib/mcp/redaction.js.map +1 -1
- package/dist/lib/mcp/testing-live-tools.d.ts +126 -0
- package/dist/lib/mcp/testing-live-tools.js +215 -0
- package/dist/lib/mcp/testing-live-tools.js.map +1 -0
- package/dist/lib/mcp/testing-tools.d.ts +455 -9
- package/dist/lib/mcp/testing-tools.js +677 -37
- package/dist/lib/mcp/testing-tools.js.map +1 -1
- package/dist/lib/mcp/tools.d.ts +554 -14
- package/dist/lib/mcp/work-tools.js +7 -4
- package/dist/lib/mcp/work-tools.js.map +1 -1
- package/dist/lib/secret-redaction.d.ts +2 -0
- package/dist/lib/secret-redaction.js +24 -0
- package/dist/lib/secret-redaction.js.map +1 -0
- package/dist/lib/testing-config.d.ts +3 -0
- package/dist/lib/testing-config.js +9 -0
- package/dist/lib/testing-config.js.map +1 -1
- package/dist/lib/testing-confirmation.d.ts +14 -0
- package/dist/lib/testing-confirmation.js +17 -0
- package/dist/lib/testing-confirmation.js.map +1 -0
- package/dist/lib/testing-data-command.d.ts +21 -0
- package/dist/lib/testing-data-command.js +49 -0
- package/dist/lib/testing-data-command.js.map +1 -0
- package/dist/lib/testing-data-core.d.ts +22 -0
- package/dist/lib/testing-data-core.js +208 -0
- package/dist/lib/testing-data-core.js.map +1 -0
- package/dist/lib/testing-data-export.d.ts +1 -0
- package/dist/lib/testing-data-export.js +2 -0
- package/dist/lib/testing-data-export.js.map +1 -0
- package/dist/lib/testing-data-import.d.ts +1 -0
- package/dist/lib/testing-data-import.js +2 -0
- package/dist/lib/testing-data-import.js.map +1 -0
- package/dist/lib/testing-data-io.d.ts +21 -0
- package/dist/lib/testing-data-io.js +236 -0
- package/dist/lib/testing-data-io.js.map +1 -0
- package/dist/lib/testing-data-operations.d.ts +36 -0
- package/dist/lib/testing-data-operations.js +91 -0
- package/dist/lib/testing-data-operations.js.map +1 -0
- package/dist/lib/testing-data-types.d.ts +41 -0
- package/dist/lib/testing-data-types.js +3 -0
- package/dist/lib/testing-data-types.js.map +1 -0
- package/dist/lib/testing-flags.d.ts +62 -1
- package/dist/lib/testing-flags.js +177 -1
- package/dist/lib/testing-flags.js.map +1 -1
- package/dist/lib/testing-gateway.d.ts +17 -3
- package/dist/lib/testing-gateway.js +175 -45
- package/dist/lib/testing-gateway.js.map +1 -1
- package/dist/lib/testing-live-command.d.ts +24 -0
- package/dist/lib/testing-live-command.js +56 -0
- package/dist/lib/testing-live-command.js.map +1 -0
- package/dist/lib/testing-live-endpoints.d.ts +14 -0
- package/dist/lib/testing-live-endpoints.js +34 -0
- package/dist/lib/testing-live-endpoints.js.map +1 -0
- package/dist/lib/testing-live-history.d.ts +11 -0
- package/dist/lib/testing-live-history.js +96 -0
- package/dist/lib/testing-live-history.js.map +1 -0
- package/dist/lib/testing-live-operations.d.ts +118 -0
- package/dist/lib/testing-live-operations.js +676 -0
- package/dist/lib/testing-live-operations.js.map +1 -0
- package/dist/lib/testing-live-recorder.d.ts +14 -0
- package/dist/lib/testing-live-recorder.js +122 -0
- package/dist/lib/testing-live-recorder.js.map +1 -0
- package/dist/lib/testing-live-robot.d.ts +16 -0
- package/dist/lib/testing-live-robot.js +158 -0
- package/dist/lib/testing-live-robot.js.map +1 -0
- package/dist/lib/testing-live-state.d.ts +4 -0
- package/dist/lib/testing-live-state.js +90 -0
- package/dist/lib/testing-live-state.js.map +1 -0
- package/dist/lib/testing-live-types.d.ts +92 -0
- package/dist/lib/testing-live-types.js +2 -0
- package/dist/lib/testing-live-types.js.map +1 -0
- package/dist/lib/testing-operations.d.ts +157 -5
- package/dist/lib/testing-operations.js +829 -66
- package/dist/lib/testing-operations.js.map +1 -1
- package/dist/lib/testing-run-command.d.ts +25 -0
- package/dist/lib/testing-run-command.js +94 -0
- package/dist/lib/testing-run-command.js.map +1 -0
- package/dist/lib/testing-sanitization.d.ts +11 -0
- package/dist/lib/testing-sanitization.js +135 -0
- package/dist/lib/testing-sanitization.js.map +1 -0
- package/dist/lib/testing-schedule.d.ts +23 -0
- package/dist/lib/testing-schedule.js +48 -0
- package/dist/lib/testing-schedule.js.map +1 -0
- package/dist/lib/testing-secret-input.d.ts +12 -0
- package/dist/lib/testing-secret-input.js +56 -0
- package/dist/lib/testing-secret-input.js.map +1 -0
- package/dist/lib/testing-session.d.ts +8 -0
- package/dist/lib/testing-session.js +82 -0
- package/dist/lib/testing-session.js.map +1 -0
- package/dist/lib/testing-types.d.ts +143 -13
- package/dist/lib/testing-types.js +110 -5
- package/dist/lib/testing-types.js.map +1 -1
- package/dist/lib/testing-watch.d.ts +4 -0
- package/dist/lib/testing-watch.js +45 -0
- package/dist/lib/testing-watch.js.map +1 -0
- package/dist/lib/work-types.d.ts +1 -0
- package/dist/lib/work-types.js.map +1 -1
- package/oclif.manifest.json +7523 -2891
- package/package.json +12 -1
- package/templates/skills/agentia-testing/SKILL.md +9 -6
- package/templates/skills/agentia-testing/references/tests.md +70 -36
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@copado/agentia-cli",
|
|
3
3
|
"description": "Command-line interface for Agentia",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.114.0-alpha.0",
|
|
5
5
|
"author": "Copado Solutions",
|
|
6
6
|
"bin": {
|
|
7
7
|
"agentia": "./bin/run.js"
|
|
@@ -17,11 +17,13 @@
|
|
|
17
17
|
"@resvg/resvg-js": "^2.6.2",
|
|
18
18
|
"@xmldom/xmldom": "^0.9.12",
|
|
19
19
|
"beautiful-mermaid": "^1.1.3",
|
|
20
|
+
"exceljs": "^4.4.0",
|
|
20
21
|
"ink": "5.2.1",
|
|
21
22
|
"react": "18.3.1",
|
|
22
23
|
"semver": "^7.8.5",
|
|
23
24
|
"tty-table": "^5.0.0",
|
|
24
25
|
"uuid": "^14.0.1",
|
|
26
|
+
"ws": "^8.21.3",
|
|
25
27
|
"zod": "^4.4.3"
|
|
26
28
|
},
|
|
27
29
|
"devDependencies": {
|
|
@@ -33,6 +35,7 @@
|
|
|
33
35
|
"@types/node": "^18",
|
|
34
36
|
"@types/react": "18.3.18",
|
|
35
37
|
"@types/semver": "^7.8.0",
|
|
38
|
+
"@types/ws": "^8.18.1",
|
|
36
39
|
"chai": "^4",
|
|
37
40
|
"eslint": "^9",
|
|
38
41
|
"eslint-config-oclif": "^6",
|
|
@@ -208,9 +211,17 @@
|
|
|
208
211
|
},
|
|
209
212
|
"testing": {
|
|
210
213
|
"description": "Manage Copado Robotic Testing projects, tests, runs, logs, and variables"
|
|
214
|
+
},
|
|
215
|
+
"testing:live": {
|
|
216
|
+
"description": "Manage Copado Robotic Testing live sessions"
|
|
211
217
|
}
|
|
212
218
|
}
|
|
213
219
|
},
|
|
220
|
+
"overrides": {
|
|
221
|
+
"exceljs": {
|
|
222
|
+
"uuid": "11.1.1"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
214
225
|
"repository": "Copado/agentia-cli",
|
|
215
226
|
"scripts": {
|
|
216
227
|
"build": "node scripts/build.mjs",
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: agentia-testing
|
|
3
|
-
description: Use this skill when creating, updating, running, inspecting, or troubleshooting Copado Robotic Testing
|
|
3
|
+
description: Use this skill when creating, updating, running, inspecting, or troubleshooting Copado Robotic Testing with the Agentia CLI, including projects, permissions, robots, jobs, builds, schedules, data tables, variables, user parameters, live testing, Git-backed storage, and Robot Framework execution.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- Agentia managed skill file: agentia setup skills -->
|
|
7
7
|
|
|
8
8
|
# Agentia Testing
|
|
9
9
|
|
|
10
|
-
Use this skill to operate Copado Robotic Testing through Agentia without confusing CRT
|
|
10
|
+
Use this skill to operate Copado Robotic Testing through Agentia without confusing CRT resources, executions, live sessions, and Copado CICD records.
|
|
11
11
|
|
|
12
12
|
Prefer Agentia MCP tools when they are available and match the task. Use CLI examples as the fallback, and add `--json` whenever the result will be parsed or reused.
|
|
13
13
|
|
|
14
14
|
## Start Here
|
|
15
15
|
|
|
16
16
|
1. Confirm CRT auth with `agentia auth get --crt --json`. Configure missing credentials with `agentia auth set --crt ...` or the supported `AGENTIA_CRT_*` environment variables.
|
|
17
|
-
2. Identify or create the CRT Project and Robot before creating or running tests.
|
|
17
|
+
2. Identify or create the CRT Project and Robot before creating or running tests. Use explicit project and job IDs; do not invent hidden active-resource defaults.
|
|
18
18
|
3. Use `testing test ...` as the canonical namespace for test workflows. The shorter `testing run|logs|status|create|update` forms exist for compatibility.
|
|
19
|
-
4. Never expose
|
|
19
|
+
4. Never expose PAKs, session cookies, viewer keys, variable values, or generated log content that contains secrets.
|
|
20
20
|
|
|
21
21
|
## Reference
|
|
22
22
|
|
|
23
|
-
- CRT
|
|
23
|
+
- CRT lifecycle, execution, schedules, data tables, live testing, and safety rules: [references/tests.md](references/tests.md)
|
|
24
24
|
|
|
25
25
|
## General Rules
|
|
26
26
|
|
|
@@ -28,7 +28,10 @@ Prefer Agentia MCP tools when they are available and match the task. Use CLI exa
|
|
|
28
28
|
- `agentia testing job` manages CRT job/test definitions. It is different from `agentia cicd job`, which manages Copado CICD JobExecution records.
|
|
29
29
|
- Use `--wait-for-result` on `testing test run` when the agent must return the final build result in one turn.
|
|
30
30
|
- Use Git-backed job flags only when the user or project clearly uses repository-backed CRT test storage.
|
|
31
|
+
- In JSON or non-interactive CLI calls, destructive actions require `--yes`; matching MCP tools require `confirm: true`.
|
|
32
|
+
- Prefer `--value-stdin` and `--git-password-stdin` over putting secrets in process arguments.
|
|
33
|
+
- Use the currently configured CRT credential context for validation. Test14 credentials belong to CICD and must not be substituted for CRT credentials.
|
|
31
34
|
|
|
32
35
|
## Report Back
|
|
33
36
|
|
|
34
|
-
Report the CRT project, robot, job/test ID, build ID when present, final status, and where
|
|
37
|
+
Report the CRT project, robot, job/test ID, build or live-session ID when present, final status, cleanup, and where outputs were written. Do not include PAKs or other secrets.
|
|
@@ -2,64 +2,98 @@
|
|
|
2
2
|
|
|
3
3
|
# CRT Testing Reference
|
|
4
4
|
|
|
5
|
-
Use this reference for
|
|
5
|
+
Use this reference for Copado Robotic Testing commands under `agentia testing`.
|
|
6
6
|
|
|
7
7
|
## Authentication And Context
|
|
8
8
|
|
|
9
|
-
Configure CRT once:
|
|
10
|
-
|
|
11
9
|
```sh
|
|
12
10
|
agentia auth set --crt <pak> --crt-domain <domain> --crt-org <organization-id>
|
|
13
11
|
agentia auth get --crt --json
|
|
14
12
|
```
|
|
15
13
|
|
|
16
|
-
CRT commands resolve
|
|
17
|
-
|
|
18
|
-
## Canonical Test Workflow
|
|
14
|
+
Proceed only when the CRT credential entry reports `ready: true`. CRT commands resolve the configured CRT keychain context or supported `AGENTIA_CRT_*` process overrides. Do not pass PAKs in URLs or report them in output. Test14 is a CICD environment and is not a substitute for CRT credentials.
|
|
19
15
|
|
|
20
|
-
|
|
21
|
-
2. List or create a robot: `agentia testing robot list --json`
|
|
22
|
-
3. Create or update a test: `agentia testing test create ... --json`
|
|
23
|
-
4. Run the test: `agentia testing test run <job-id> --project <project-id> --wait-for-result --json`
|
|
24
|
-
5. Inspect status and logs: `agentia testing test status ... --json` and `agentia testing test logs ... --json`
|
|
16
|
+
Use explicit `--project` and `--job` context. Agentia does not reproduce the legacy CLI's hidden active project/job selection.
|
|
25
17
|
|
|
26
|
-
## Test
|
|
27
|
-
|
|
28
|
-
| Command | Use For | Notes |
|
|
29
|
-
| --- | --- | --- |
|
|
30
|
-
| `testing test create` | Create a CRT test and upload Robot files | Requires project, robot, name, and `--file` or `--dir`. |
|
|
31
|
-
| `testing test update ID` | Update files for a test | Use `--add`, `--remove`, `--replace`, or Git branch options. |
|
|
32
|
-
| `testing test run ID` | Run a CRT test | Use `--project`; use `--wait-for-result` when the final status is required. |
|
|
33
|
-
| `testing test status` | List build/run status | Filter by project, job, and status. |
|
|
34
|
-
| `testing test logs ID` | Fetch build logs | Use `--project`, `--job`, and optional `--output`. |
|
|
18
|
+
## Canonical Test Workflow
|
|
35
19
|
|
|
36
|
-
|
|
20
|
+
1. Discover or create a project and robot.
|
|
21
|
+
2. Create a job/test using snapshot files or validated Git-backed storage.
|
|
22
|
+
3. Run through `testing test run` and optionally wait for the terminal build.
|
|
23
|
+
4. Inspect build detail, search, logs, artifacts, or xUnit.
|
|
24
|
+
5. Update the job or data inputs as needed.
|
|
25
|
+
6. Clean up regression-owned resources in reverse order with explicit confirmation.
|
|
37
26
|
|
|
38
27
|
```sh
|
|
28
|
+
agentia testing project list --json
|
|
29
|
+
agentia testing robot list --json
|
|
39
30
|
agentia testing test create --project <project-id> --robot <robot-id> --name "Smoke" --file tests/smoke.robot --json
|
|
40
31
|
agentia testing test run <job-id> --project <project-id> --wait-for-result --json
|
|
32
|
+
agentia testing build get <build-id> --project <project-id> --job <job-id> --json
|
|
41
33
|
agentia testing test logs <build-id> --project <project-id> --job <job-id> --output ./crt.log --json
|
|
42
34
|
```
|
|
43
35
|
|
|
44
|
-
##
|
|
36
|
+
## Command Areas
|
|
37
|
+
|
|
38
|
+
| Area | Commands |
|
|
39
|
+
| --- | --- |
|
|
40
|
+
| Projects | `testing project list|get|create|update|delete`; `project permission list|get|set|update` |
|
|
41
|
+
| Robots | `testing robot list|get|create|update|delete` |
|
|
42
|
+
| Jobs | `testing job list|get|create|update|delete|run|files|refs|upload|download` |
|
|
43
|
+
| Schedules | `testing job schedule get|set|remove` |
|
|
44
|
+
| Builds | `testing build run|list|get|latest|search|logs|abort` |
|
|
45
|
+
| Variables | `testing variable list|get|create|update|delete` |
|
|
46
|
+
| User parameters | `testing user-parameter list|get|create|update|delete` |
|
|
47
|
+
| Data tables | `testing data-table list|get|create|update|delete|export` |
|
|
48
|
+
| Live testing | `testing live start|stop|status|execute|continue|interrupt|inspect|screenshot|reports|set-options|history|view|recorder` |
|
|
49
|
+
|
|
50
|
+
`testing create|update|run|status|logs` remain compatibility aliases. Prefer `testing test` for test workflows and canonical resource commands for new automation.
|
|
51
|
+
|
|
52
|
+
## Execution And Builds
|
|
53
|
+
|
|
54
|
+
- Use `--wait-for-result` when the result must include terminal build data.
|
|
55
|
+
- `--timeout` bounds waiting; `--no-exit-code` keeps a failed remote run from failing the local command when explicitly desired.
|
|
56
|
+
- `--save-artifacts` and `--xunit` write only to validated explicit paths.
|
|
57
|
+
- `--stream-logs` and `--watch` are human-only and cannot be combined with `--json`.
|
|
58
|
+
- Repeated `--datatable TABLE_ID:SELECTION` starts data-driven batch execution. It cannot be combined with wait, stream, artifact-save, or xUnit modes.
|
|
59
|
+
- Use build `get`, `latest`, and `search` instead of assuming list order.
|
|
60
|
+
|
|
61
|
+
## Schedules And Data Tables
|
|
62
|
+
|
|
63
|
+
Schedules support get, set with cron/timezone/record policy, and remove. Data tables accept CSV, TSV, JSON, and XLSX imports and support bounded preview and dataset selection. Export supports CSV, TSV, and XLSX.
|
|
64
|
+
|
|
65
|
+
Data-table create/update/delete and existing-file overwrite are protected operations. Never overwrite or delete without user intent.
|
|
66
|
+
|
|
67
|
+
## Live Testing
|
|
68
|
+
|
|
69
|
+
Use a regression-owned job:
|
|
70
|
+
|
|
71
|
+
```sh
|
|
72
|
+
agentia testing live start <job-id> --project <project-id> --json
|
|
73
|
+
agentia testing live status --project <project-id> --json
|
|
74
|
+
agentia testing live execute --project <project-id> --line "GoTo https://example.com" --json
|
|
75
|
+
agentia testing live inspect --project <project-id> --json
|
|
76
|
+
agentia testing live stop --project <project-id> --yes --json
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Live viewer secrets remain in the keychain. Session cookies and XSRF values are in-memory only. `view` opens an authenticated page without putting secrets in the URL. `recorder` is long-running and uses an owner-scoped local lock; neither `view` nor `recorder` is exposed through MCP.
|
|
80
|
+
|
|
81
|
+
## Secret Inputs And Redaction
|
|
45
82
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
| Jobs | `testing job list/create/get/update/delete/files/upload/download` | CRT job/test definitions and file storage. |
|
|
51
|
-
| Builds | `testing build run/list/logs/abort` | Lower-level run/build management. |
|
|
52
|
-
| Variables | `testing variable list/create/update/delete` | CRT variables, with value redaction in output. |
|
|
83
|
+
- Prefer `--value-stdin`/`--value-file` for variable values.
|
|
84
|
+
- Prefer `--git-password-stdin`/`--git-password-file` or a CRT domain credential for Git authentication.
|
|
85
|
+
- Sensitive variable and user-parameter values must remain redacted in human, JSON, MCP, debug, and error output.
|
|
86
|
+
- Validate local paths, remote paths, and Git refs before mutation.
|
|
53
87
|
|
|
54
|
-
|
|
88
|
+
## Confirmation
|
|
55
89
|
|
|
56
|
-
|
|
90
|
+
Destructive or protected CLI actions prompt in an interactive TTY. JSON and non-TTY calls require `--yes`. Matching MCP tools require `confirm: true`, not a `yes` field.
|
|
57
91
|
|
|
58
|
-
|
|
92
|
+
This applies to resource deletion, build abort, schedule removal, live stop, protected data-table imports/deletion, and output overwrite.
|
|
59
93
|
|
|
60
94
|
## Gotchas
|
|
61
95
|
|
|
62
|
-
-
|
|
63
|
-
- There is no `testing test get` or `testing test delete`; use `testing job get`
|
|
64
|
-
-
|
|
65
|
-
- Log commands may write files.
|
|
96
|
+
- `testing job` is a CRT test definition; `cicd job` is a Copado CICD JobExecution.
|
|
97
|
+
- There is no `testing test get` or `testing test delete`; use `testing job get` and `testing job delete`.
|
|
98
|
+
- CRT tenant users, organizations, groups, roles, licenses, and cross-region migration are intentionally not Agentia testing commands.
|
|
99
|
+
- Log, artifact, data-table, DOM, screenshot, and report commands may write files. Keep JSON stdout structured and report only sanitized output metadata.
|