testzeus-cli 0.0.16__tar.gz → 0.0.19__tar.gz
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.
- {testzeus_cli-0.0.16 → testzeus_cli-0.0.19}/PKG-INFO +196 -2
- {testzeus_cli-0.0.16 → testzeus_cli-0.0.19}/README.md +190 -1
- {testzeus_cli-0.0.16 → testzeus_cli-0.0.19}/pyproject.toml +15 -5
- testzeus_cli-0.0.19/testzeus_cli/auth.py +452 -0
- {testzeus_cli-0.0.16 → testzeus_cli-0.0.19}/testzeus_cli/cli.py +41 -1
- testzeus_cli-0.0.19/testzeus_cli/commands/daemon.py +270 -0
- {testzeus_cli-0.0.16 → testzeus_cli-0.0.19}/testzeus_cli/commands/environments.py +46 -4
- {testzeus_cli-0.0.16 → testzeus_cli-0.0.19}/testzeus_cli/commands/extensions.py +6 -2
- testzeus_cli-0.0.19/testzeus_cli/commands/hypermind_code_blocks.py +412 -0
- testzeus_cli-0.0.19/testzeus_cli/commands/knowledge_bases.py +87 -0
- {testzeus_cli-0.0.16 → testzeus_cli-0.0.19}/testzeus_cli/commands/notification_channels.py +10 -2
- {testzeus_cli-0.0.16 → testzeus_cli-0.0.19}/testzeus_cli/commands/tags.py +12 -2
- {testzeus_cli-0.0.16 → testzeus_cli-0.0.19}/testzeus_cli/commands/test_data.py +24 -4
- {testzeus_cli-0.0.16 → testzeus_cli-0.0.19}/testzeus_cli/commands/test_report_schedules.py +10 -2
- {testzeus_cli-0.0.16 → testzeus_cli-0.0.19}/testzeus_cli/commands/test_run_groups.py +139 -3
- {testzeus_cli-0.0.16 → testzeus_cli-0.0.19}/testzeus_cli/commands/test_runs.py +22 -4
- testzeus_cli-0.0.19/testzeus_cli/commands/test_suite_node_runs.py +71 -0
- testzeus_cli-0.0.19/testzeus_cli/commands/test_suite_runs.py +218 -0
- testzeus_cli-0.0.19/testzeus_cli/commands/test_suite_schedules.py +217 -0
- testzeus_cli-0.0.19/testzeus_cli/commands/test_suites.py +248 -0
- {testzeus_cli-0.0.16 → testzeus_cli-0.0.19}/testzeus_cli/commands/tests.py +196 -4
- testzeus_cli-0.0.19/testzeus_cli/commands/tests_authoring.py +801 -0
- testzeus_cli-0.0.19/testzeus_cli/commands/user_integrations.py +127 -0
- {testzeus_cli-0.0.16 → testzeus_cli-0.0.19}/testzeus_cli/config.py +25 -12
- {testzeus_cli-0.0.16 → testzeus_cli-0.0.19}/testzeus_cli/utils/auth.py +27 -1
- {testzeus_cli-0.0.16 → testzeus_cli-0.0.19}/testzeus_cli/utils/client.py +17 -2
- testzeus_cli-0.0.19/testzeus_cli/utils/profile.py +151 -0
- {testzeus_cli-0.0.16 → testzeus_cli-0.0.19}/testzeus_cli/utils/validators.py +32 -3
- testzeus_cli-0.0.16/testzeus_cli/auth.py +0 -134
- {testzeus_cli-0.0.16 → testzeus_cli-0.0.19}/LICENSE +0 -0
- {testzeus_cli-0.0.16 → testzeus_cli-0.0.19}/testzeus_cli/__init__.py +0 -0
- {testzeus_cli-0.0.16 → testzeus_cli-0.0.19}/testzeus_cli/commands/__init__.py +0 -0
- {testzeus_cli-0.0.16 → testzeus_cli-0.0.19}/testzeus_cli/commands/tests_ai_generator.py +0 -0
- {testzeus_cli-0.0.16 → testzeus_cli-0.0.19}/testzeus_cli/utils/__init__.py +0 -0
- {testzeus_cli-0.0.16 → testzeus_cli-0.0.19}/testzeus_cli/utils/formatters.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: testzeus-cli
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.19
|
|
4
4
|
Summary: Command-line interface for TestZeus testing platform
|
|
5
5
|
License-File: LICENSE
|
|
6
6
|
Author: Shriyansh Agnihotri
|
|
@@ -11,14 +11,18 @@ Classifier: Programming Language :: Python :: 3
|
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.11
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.12
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.13
|
|
14
|
+
Provides-Extra: daemon
|
|
15
|
+
Requires-Dist: Pygments (==2.20.0)
|
|
16
|
+
Requires-Dist: aiohttp (==3.13.4)
|
|
14
17
|
Requires-Dist: click (>=8.1.3,<9.0.0)
|
|
18
|
+
Requires-Dist: cryptography (==46.0.7)
|
|
15
19
|
Requires-Dist: ipdb (>=0.13.13,<0.14.0)
|
|
16
20
|
Requires-Dist: keyring (>=24.0.0,<25.0.0)
|
|
17
21
|
Requires-Dist: pocketbase (>=0.15.0,<0.16.0)
|
|
18
22
|
Requires-Dist: pydantic (>=2.0.0,<3.0.0)
|
|
19
23
|
Requires-Dist: pyyaml (>=6.0,<7.0)
|
|
20
24
|
Requires-Dist: rich (>=13.3.1,<14.0.0)
|
|
21
|
-
Requires-Dist: testzeus-sdk (>=0.0.
|
|
25
|
+
Requires-Dist: testzeus-sdk (>=0.0.17,<0.0.18)
|
|
22
26
|
Requires-Dist: toml (>=0.10.2,<0.11.0)
|
|
23
27
|
Project-URL: Repository, https://github.com/test-zeus-ai/testzeus-cli
|
|
24
28
|
Description-Content-Type: text/markdown
|
|
@@ -112,6 +116,21 @@ Additional options:
|
|
|
112
116
|
testzeus tests create --name "My Test" --feature-file ./features.txt --status ready --data data_id1 --data data_id2 --tags tag1 --tags tag2 --environment env_id --execution-mode strict
|
|
113
117
|
```
|
|
114
118
|
|
|
119
|
+
Set default runtime inputs and outputs used by suite orchestration:
|
|
120
|
+
```bash
|
|
121
|
+
testzeus tests create \
|
|
122
|
+
--name "Login Test" \
|
|
123
|
+
--feature-file ./login.feature \
|
|
124
|
+
--test-params '{"base_url":"https://staging.example.com","tenant_slug":"acme"}' \
|
|
125
|
+
--output-schema '{"browser_auth_state":{"type":"file"}}'
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Read a test's merged input metadata and list suites that reference it:
|
|
129
|
+
```bash
|
|
130
|
+
testzeus tests input-params <test-id>
|
|
131
|
+
testzeus tests dependent-suites <test-id>
|
|
132
|
+
```
|
|
133
|
+
|
|
115
134
|
### Update Test
|
|
116
135
|
|
|
117
136
|
Update test name:
|
|
@@ -137,6 +156,13 @@ Update other properties:
|
|
|
137
156
|
testzeus tests update <test-id> --status ready --data data_id1 --tags tag1 --environment env_id
|
|
138
157
|
```
|
|
139
158
|
|
|
159
|
+
Update default runtime inputs or outputs:
|
|
160
|
+
```bash
|
|
161
|
+
testzeus tests update <test-id> \
|
|
162
|
+
--test-params-file ./test-params.json \
|
|
163
|
+
--output-schema-file ./output-schema.json
|
|
164
|
+
```
|
|
165
|
+
|
|
140
166
|
### Delete Test
|
|
141
167
|
|
|
142
168
|
```bash
|
|
@@ -189,6 +215,78 @@ testzeus test-runs download-attachments <run-id>
|
|
|
189
215
|
testzeus test-runs download-attachments <run-id> --output-dir ./my-attachments
|
|
190
216
|
```
|
|
191
217
|
|
|
218
|
+
## Test Suites
|
|
219
|
+
|
|
220
|
+
### List and Get Test Suites
|
|
221
|
+
|
|
222
|
+
```bash
|
|
223
|
+
testzeus test-suites list
|
|
224
|
+
testzeus test-suites get <suite-id>
|
|
225
|
+
testzeus test-suites get <suite-id> --expand tests,environment
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
### Create and Update Test Suites
|
|
229
|
+
|
|
230
|
+
Create a suite from a workflow definition:
|
|
231
|
+
```bash
|
|
232
|
+
testzeus test-suites create \
|
|
233
|
+
--name "checkout-suite" \
|
|
234
|
+
--workflow-definition '{"version":"1.0","nodes":[{"id":"login","name":"Login","test_id":"test_login"},{"id":"checkout","name":"Checkout","test_id":"test_checkout"}],"edges":[{"id":"login-to-checkout","from_node":"login","to_node":"checkout","dependency_type":"temporal"}],"outputs":[]}' \
|
|
235
|
+
--default-inputs '{"base_url":"https://staging.example.com"}' \
|
|
236
|
+
--input-schema '[{"name":"base_url","type":"string","required":true}]' \
|
|
237
|
+
--execution-mode lenient
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
Update a suite:
|
|
241
|
+
```bash
|
|
242
|
+
testzeus test-suites update <suite-id> --status ready --notification-channels channel_1,channel_2
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
Delete a suite:
|
|
246
|
+
```bash
|
|
247
|
+
testzeus test-suites delete <suite-id>
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
### Test Suite Runs
|
|
251
|
+
|
|
252
|
+
Start a suite run:
|
|
253
|
+
```bash
|
|
254
|
+
testzeus test-suite-runs create \
|
|
255
|
+
--name "checkout-suite-run" \
|
|
256
|
+
--test-suite <suite-id> \
|
|
257
|
+
--input-values '{"base_url":"https://staging.example.com"}'
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
Inspect and control a suite run:
|
|
261
|
+
```bash
|
|
262
|
+
testzeus test-suite-runs list --filters status=running
|
|
263
|
+
testzeus test-suite-runs get <suite-run-id>
|
|
264
|
+
testzeus test-suite-runs pause <suite-run-id> --mode graceful --reason "maintenance window"
|
|
265
|
+
testzeus test-suite-runs resume <suite-run-id>
|
|
266
|
+
testzeus test-suite-runs cancel <suite-run-id>
|
|
267
|
+
testzeus test-suite-runs delete <suite-run-id>
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
### Test Suite Node Runs
|
|
271
|
+
|
|
272
|
+
```bash
|
|
273
|
+
testzeus test-suite-node-runs list --filters test_suite_run=<suite-run-id>
|
|
274
|
+
testzeus test-suite-node-runs get <node-run-id>
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
### Test Suite Schedules
|
|
278
|
+
|
|
279
|
+
```bash
|
|
280
|
+
testzeus test-suite-schedules list
|
|
281
|
+
testzeus test-suite-schedules create \
|
|
282
|
+
--name "daily-checkout" \
|
|
283
|
+
--test-suite <suite-id> \
|
|
284
|
+
--cron-expression "0 9 * * *" \
|
|
285
|
+
--input-values '{"base_url":"https://staging.example.com"}'
|
|
286
|
+
testzeus test-suite-schedules update <schedule-id> --inactive
|
|
287
|
+
testzeus test-suite-schedules delete <schedule-id>
|
|
288
|
+
```
|
|
289
|
+
|
|
192
290
|
## Test Data
|
|
193
291
|
|
|
194
292
|
### List Test Data
|
|
@@ -708,6 +806,51 @@ testzeus test-run-group execute \
|
|
|
708
806
|
**Default Values:**
|
|
709
807
|
- `--execution-mode`: `lenient` (options: lenient, strict)
|
|
710
808
|
|
|
809
|
+
### Execute and Monitor Test Run Group Status
|
|
810
|
+
|
|
811
|
+
Execute a test run group and monitor until completion. This is useful for CI/CD pipelines where you want to wait for tests to complete before proceeding. This command does NOT wait for CTRF report generation or download reports.
|
|
812
|
+
|
|
813
|
+
Execute and monitor with test IDs:
|
|
814
|
+
|
|
815
|
+
```bash
|
|
816
|
+
testzeus test-run-group execute-and-monitor-status \
|
|
817
|
+
--name "ci-tests" \
|
|
818
|
+
--test-ids "test1,test2,test3"
|
|
819
|
+
```
|
|
820
|
+
|
|
821
|
+
Execute and monitor with tags:
|
|
822
|
+
|
|
823
|
+
```bash
|
|
824
|
+
testzeus test-run-group execute-and-monitor-status \
|
|
825
|
+
--name "smoke-tests" \
|
|
826
|
+
--tags "smoke,critical"
|
|
827
|
+
```
|
|
828
|
+
|
|
829
|
+
Execute with custom polling interval:
|
|
830
|
+
|
|
831
|
+
```bash
|
|
832
|
+
testzeus test-run-group execute-and-monitor-status \
|
|
833
|
+
--name "regression-tests" \
|
|
834
|
+
--test-ids "test1,test2" \
|
|
835
|
+
--interval 60 \
|
|
836
|
+
--environment env_id \
|
|
837
|
+
--notification-channels "channel1,channel2"
|
|
838
|
+
```
|
|
839
|
+
|
|
840
|
+
**Required Parameters:**
|
|
841
|
+
- `--name`: Test run group name (required)
|
|
842
|
+
- Either `--test-ids` OR `--tags` (required, but not both)
|
|
843
|
+
|
|
844
|
+
**Options:**
|
|
845
|
+
- `--environment`: Environment ID (optional)
|
|
846
|
+
- `--notification-channels`: Comma-separated notification channel IDs (optional)
|
|
847
|
+
- `--interval`: Polling interval in seconds (default: 30)
|
|
848
|
+
|
|
849
|
+
**Notes:**
|
|
850
|
+
- Monitors only the group status (not CTRF report status)
|
|
851
|
+
- Does NOT download reports - use `download-report` command separately if needed
|
|
852
|
+
- Returns success when status is `completed`, failure when `cancelled`, `failed`, or `error`
|
|
853
|
+
|
|
711
854
|
### Delete Test Run Group
|
|
712
855
|
|
|
713
856
|
```bash
|
|
@@ -799,6 +942,30 @@ downloads/
|
|
|
799
942
|
**Options:**
|
|
800
943
|
- `--output-dir`: Base directory to save attachments (default: downloads)
|
|
801
944
|
|
|
945
|
+
## Test Authoring
|
|
946
|
+
|
|
947
|
+
Create tests via interactive wizard or quick mode.
|
|
948
|
+
|
|
949
|
+
### Wizard Mode
|
|
950
|
+
Interactive multi-step wizard for guided test creation:
|
|
951
|
+
```bash
|
|
952
|
+
testzeus tests-authoring wizard
|
|
953
|
+
```
|
|
954
|
+
|
|
955
|
+
### Quick Mode
|
|
956
|
+
Rapid test creation with minimal prompts:
|
|
957
|
+
```bash
|
|
958
|
+
testzeus tests-authoring quick --name my_test --description "Test checkout"
|
|
959
|
+
```
|
|
960
|
+
|
|
961
|
+
### Manual Mode
|
|
962
|
+
Create test directly with Gherkin feature:
|
|
963
|
+
```bash
|
|
964
|
+
testzeus tests-authoring manual --name my_test --feature "Feature: Login..."
|
|
965
|
+
```
|
|
966
|
+
|
|
967
|
+
See `testzeus_cli/commands/tests_authoring.py` for implementation.
|
|
968
|
+
|
|
802
969
|
## Configuration
|
|
803
970
|
|
|
804
971
|
The CLI stores configuration and credentials in your user's config directory. Different profiles can be used to manage multiple TestZeus environments.
|
|
@@ -886,6 +1053,32 @@ testzeus test-run-group cancel <group-id>
|
|
|
886
1053
|
testzeus test-run-group delete <group-id>
|
|
887
1054
|
```
|
|
888
1055
|
|
|
1056
|
+
### CI/CD Integration with execute-and-monitor-status
|
|
1057
|
+
|
|
1058
|
+
For CI/CD pipelines, use `execute-and-monitor-status` to run tests and wait for completion:
|
|
1059
|
+
|
|
1060
|
+
```bash
|
|
1061
|
+
# Run tests and wait for completion (useful in CI/CD)
|
|
1062
|
+
testzeus test-run-group execute-and-monitor-status \
|
|
1063
|
+
--name "ci-pipeline-$(date +%Y%m%d-%H%M%S)" \
|
|
1064
|
+
--tags "smoke,regression" \
|
|
1065
|
+
--interval 30
|
|
1066
|
+
|
|
1067
|
+
# The command exits with success (0) when tests complete
|
|
1068
|
+
# and failure (1) when tests fail, are cancelled, or error out
|
|
1069
|
+
```
|
|
1070
|
+
|
|
1071
|
+
Example GitHub Actions workflow:
|
|
1072
|
+
|
|
1073
|
+
```yaml
|
|
1074
|
+
- name: Run TestZeus Tests
|
|
1075
|
+
run: |
|
|
1076
|
+
testzeus test-run-group execute-and-monitor-status \
|
|
1077
|
+
--name "pr-tests-${{ github.run_id }}" \
|
|
1078
|
+
--tags "smoke" \
|
|
1079
|
+
--interval 30
|
|
1080
|
+
```
|
|
1081
|
+
|
|
889
1082
|
## Error Handling
|
|
890
1083
|
|
|
891
1084
|
When an error occurs, the CLI will display an error message. For more detailed information, run any command with the `--verbose` flag:
|
|
@@ -926,3 +1119,4 @@ The TestZeus CLI uses GitHub Actions for automated releases to PyPI. To create a
|
|
|
926
1119
|
- Commit and create a git tag
|
|
927
1120
|
- Push changes and tags to GitHub
|
|
928
1121
|
3. The tag push will automatically trigger the GitHub Actions publish workflow
|
|
1122
|
+
|
|
@@ -87,6 +87,21 @@ Additional options:
|
|
|
87
87
|
testzeus tests create --name "My Test" --feature-file ./features.txt --status ready --data data_id1 --data data_id2 --tags tag1 --tags tag2 --environment env_id --execution-mode strict
|
|
88
88
|
```
|
|
89
89
|
|
|
90
|
+
Set default runtime inputs and outputs used by suite orchestration:
|
|
91
|
+
```bash
|
|
92
|
+
testzeus tests create \
|
|
93
|
+
--name "Login Test" \
|
|
94
|
+
--feature-file ./login.feature \
|
|
95
|
+
--test-params '{"base_url":"https://staging.example.com","tenant_slug":"acme"}' \
|
|
96
|
+
--output-schema '{"browser_auth_state":{"type":"file"}}'
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Read a test's merged input metadata and list suites that reference it:
|
|
100
|
+
```bash
|
|
101
|
+
testzeus tests input-params <test-id>
|
|
102
|
+
testzeus tests dependent-suites <test-id>
|
|
103
|
+
```
|
|
104
|
+
|
|
90
105
|
### Update Test
|
|
91
106
|
|
|
92
107
|
Update test name:
|
|
@@ -112,6 +127,13 @@ Update other properties:
|
|
|
112
127
|
testzeus tests update <test-id> --status ready --data data_id1 --tags tag1 --environment env_id
|
|
113
128
|
```
|
|
114
129
|
|
|
130
|
+
Update default runtime inputs or outputs:
|
|
131
|
+
```bash
|
|
132
|
+
testzeus tests update <test-id> \
|
|
133
|
+
--test-params-file ./test-params.json \
|
|
134
|
+
--output-schema-file ./output-schema.json
|
|
135
|
+
```
|
|
136
|
+
|
|
115
137
|
### Delete Test
|
|
116
138
|
|
|
117
139
|
```bash
|
|
@@ -164,6 +186,78 @@ testzeus test-runs download-attachments <run-id>
|
|
|
164
186
|
testzeus test-runs download-attachments <run-id> --output-dir ./my-attachments
|
|
165
187
|
```
|
|
166
188
|
|
|
189
|
+
## Test Suites
|
|
190
|
+
|
|
191
|
+
### List and Get Test Suites
|
|
192
|
+
|
|
193
|
+
```bash
|
|
194
|
+
testzeus test-suites list
|
|
195
|
+
testzeus test-suites get <suite-id>
|
|
196
|
+
testzeus test-suites get <suite-id> --expand tests,environment
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
### Create and Update Test Suites
|
|
200
|
+
|
|
201
|
+
Create a suite from a workflow definition:
|
|
202
|
+
```bash
|
|
203
|
+
testzeus test-suites create \
|
|
204
|
+
--name "checkout-suite" \
|
|
205
|
+
--workflow-definition '{"version":"1.0","nodes":[{"id":"login","name":"Login","test_id":"test_login"},{"id":"checkout","name":"Checkout","test_id":"test_checkout"}],"edges":[{"id":"login-to-checkout","from_node":"login","to_node":"checkout","dependency_type":"temporal"}],"outputs":[]}' \
|
|
206
|
+
--default-inputs '{"base_url":"https://staging.example.com"}' \
|
|
207
|
+
--input-schema '[{"name":"base_url","type":"string","required":true}]' \
|
|
208
|
+
--execution-mode lenient
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
Update a suite:
|
|
212
|
+
```bash
|
|
213
|
+
testzeus test-suites update <suite-id> --status ready --notification-channels channel_1,channel_2
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
Delete a suite:
|
|
217
|
+
```bash
|
|
218
|
+
testzeus test-suites delete <suite-id>
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
### Test Suite Runs
|
|
222
|
+
|
|
223
|
+
Start a suite run:
|
|
224
|
+
```bash
|
|
225
|
+
testzeus test-suite-runs create \
|
|
226
|
+
--name "checkout-suite-run" \
|
|
227
|
+
--test-suite <suite-id> \
|
|
228
|
+
--input-values '{"base_url":"https://staging.example.com"}'
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
Inspect and control a suite run:
|
|
232
|
+
```bash
|
|
233
|
+
testzeus test-suite-runs list --filters status=running
|
|
234
|
+
testzeus test-suite-runs get <suite-run-id>
|
|
235
|
+
testzeus test-suite-runs pause <suite-run-id> --mode graceful --reason "maintenance window"
|
|
236
|
+
testzeus test-suite-runs resume <suite-run-id>
|
|
237
|
+
testzeus test-suite-runs cancel <suite-run-id>
|
|
238
|
+
testzeus test-suite-runs delete <suite-run-id>
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### Test Suite Node Runs
|
|
242
|
+
|
|
243
|
+
```bash
|
|
244
|
+
testzeus test-suite-node-runs list --filters test_suite_run=<suite-run-id>
|
|
245
|
+
testzeus test-suite-node-runs get <node-run-id>
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
### Test Suite Schedules
|
|
249
|
+
|
|
250
|
+
```bash
|
|
251
|
+
testzeus test-suite-schedules list
|
|
252
|
+
testzeus test-suite-schedules create \
|
|
253
|
+
--name "daily-checkout" \
|
|
254
|
+
--test-suite <suite-id> \
|
|
255
|
+
--cron-expression "0 9 * * *" \
|
|
256
|
+
--input-values '{"base_url":"https://staging.example.com"}'
|
|
257
|
+
testzeus test-suite-schedules update <schedule-id> --inactive
|
|
258
|
+
testzeus test-suite-schedules delete <schedule-id>
|
|
259
|
+
```
|
|
260
|
+
|
|
167
261
|
## Test Data
|
|
168
262
|
|
|
169
263
|
### List Test Data
|
|
@@ -683,6 +777,51 @@ testzeus test-run-group execute \
|
|
|
683
777
|
**Default Values:**
|
|
684
778
|
- `--execution-mode`: `lenient` (options: lenient, strict)
|
|
685
779
|
|
|
780
|
+
### Execute and Monitor Test Run Group Status
|
|
781
|
+
|
|
782
|
+
Execute a test run group and monitor until completion. This is useful for CI/CD pipelines where you want to wait for tests to complete before proceeding. This command does NOT wait for CTRF report generation or download reports.
|
|
783
|
+
|
|
784
|
+
Execute and monitor with test IDs:
|
|
785
|
+
|
|
786
|
+
```bash
|
|
787
|
+
testzeus test-run-group execute-and-monitor-status \
|
|
788
|
+
--name "ci-tests" \
|
|
789
|
+
--test-ids "test1,test2,test3"
|
|
790
|
+
```
|
|
791
|
+
|
|
792
|
+
Execute and monitor with tags:
|
|
793
|
+
|
|
794
|
+
```bash
|
|
795
|
+
testzeus test-run-group execute-and-monitor-status \
|
|
796
|
+
--name "smoke-tests" \
|
|
797
|
+
--tags "smoke,critical"
|
|
798
|
+
```
|
|
799
|
+
|
|
800
|
+
Execute with custom polling interval:
|
|
801
|
+
|
|
802
|
+
```bash
|
|
803
|
+
testzeus test-run-group execute-and-monitor-status \
|
|
804
|
+
--name "regression-tests" \
|
|
805
|
+
--test-ids "test1,test2" \
|
|
806
|
+
--interval 60 \
|
|
807
|
+
--environment env_id \
|
|
808
|
+
--notification-channels "channel1,channel2"
|
|
809
|
+
```
|
|
810
|
+
|
|
811
|
+
**Required Parameters:**
|
|
812
|
+
- `--name`: Test run group name (required)
|
|
813
|
+
- Either `--test-ids` OR `--tags` (required, but not both)
|
|
814
|
+
|
|
815
|
+
**Options:**
|
|
816
|
+
- `--environment`: Environment ID (optional)
|
|
817
|
+
- `--notification-channels`: Comma-separated notification channel IDs (optional)
|
|
818
|
+
- `--interval`: Polling interval in seconds (default: 30)
|
|
819
|
+
|
|
820
|
+
**Notes:**
|
|
821
|
+
- Monitors only the group status (not CTRF report status)
|
|
822
|
+
- Does NOT download reports - use `download-report` command separately if needed
|
|
823
|
+
- Returns success when status is `completed`, failure when `cancelled`, `failed`, or `error`
|
|
824
|
+
|
|
686
825
|
### Delete Test Run Group
|
|
687
826
|
|
|
688
827
|
```bash
|
|
@@ -774,6 +913,30 @@ downloads/
|
|
|
774
913
|
**Options:**
|
|
775
914
|
- `--output-dir`: Base directory to save attachments (default: downloads)
|
|
776
915
|
|
|
916
|
+
## Test Authoring
|
|
917
|
+
|
|
918
|
+
Create tests via interactive wizard or quick mode.
|
|
919
|
+
|
|
920
|
+
### Wizard Mode
|
|
921
|
+
Interactive multi-step wizard for guided test creation:
|
|
922
|
+
```bash
|
|
923
|
+
testzeus tests-authoring wizard
|
|
924
|
+
```
|
|
925
|
+
|
|
926
|
+
### Quick Mode
|
|
927
|
+
Rapid test creation with minimal prompts:
|
|
928
|
+
```bash
|
|
929
|
+
testzeus tests-authoring quick --name my_test --description "Test checkout"
|
|
930
|
+
```
|
|
931
|
+
|
|
932
|
+
### Manual Mode
|
|
933
|
+
Create test directly with Gherkin feature:
|
|
934
|
+
```bash
|
|
935
|
+
testzeus tests-authoring manual --name my_test --feature "Feature: Login..."
|
|
936
|
+
```
|
|
937
|
+
|
|
938
|
+
See `testzeus_cli/commands/tests_authoring.py` for implementation.
|
|
939
|
+
|
|
777
940
|
## Configuration
|
|
778
941
|
|
|
779
942
|
The CLI stores configuration and credentials in your user's config directory. Different profiles can be used to manage multiple TestZeus environments.
|
|
@@ -861,6 +1024,32 @@ testzeus test-run-group cancel <group-id>
|
|
|
861
1024
|
testzeus test-run-group delete <group-id>
|
|
862
1025
|
```
|
|
863
1026
|
|
|
1027
|
+
### CI/CD Integration with execute-and-monitor-status
|
|
1028
|
+
|
|
1029
|
+
For CI/CD pipelines, use `execute-and-monitor-status` to run tests and wait for completion:
|
|
1030
|
+
|
|
1031
|
+
```bash
|
|
1032
|
+
# Run tests and wait for completion (useful in CI/CD)
|
|
1033
|
+
testzeus test-run-group execute-and-monitor-status \
|
|
1034
|
+
--name "ci-pipeline-$(date +%Y%m%d-%H%M%S)" \
|
|
1035
|
+
--tags "smoke,regression" \
|
|
1036
|
+
--interval 30
|
|
1037
|
+
|
|
1038
|
+
# The command exits with success (0) when tests complete
|
|
1039
|
+
# and failure (1) when tests fail, are cancelled, or error out
|
|
1040
|
+
```
|
|
1041
|
+
|
|
1042
|
+
Example GitHub Actions workflow:
|
|
1043
|
+
|
|
1044
|
+
```yaml
|
|
1045
|
+
- name: Run TestZeus Tests
|
|
1046
|
+
run: |
|
|
1047
|
+
testzeus test-run-group execute-and-monitor-status \
|
|
1048
|
+
--name "pr-tests-${{ github.run_id }}" \
|
|
1049
|
+
--tags "smoke" \
|
|
1050
|
+
--interval 30
|
|
1051
|
+
```
|
|
1052
|
+
|
|
864
1053
|
## Error Handling
|
|
865
1054
|
|
|
866
1055
|
When an error occurs, the CLI will display an error message. For more detailed information, run any command with the `--verbose` flag:
|
|
@@ -900,4 +1089,4 @@ The TestZeus CLI uses GitHub Actions for automated releases to PyPI. To create a
|
|
|
900
1089
|
- Update the version in pyproject.toml
|
|
901
1090
|
- Commit and create a git tag
|
|
902
1091
|
- Push changes and tags to GitHub
|
|
903
|
-
3. The tag push will automatically trigger the GitHub Actions publish workflow
|
|
1092
|
+
3. The tag push will automatically trigger the GitHub Actions publish workflow
|
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
|
|
|
4
4
|
|
|
5
5
|
[tool.poetry]
|
|
6
6
|
name = "testzeus-cli"
|
|
7
|
-
version = "0.0.
|
|
7
|
+
version = "0.0.19"
|
|
8
8
|
description = "Command-line interface for TestZeus testing platform"
|
|
9
9
|
authors = ["Shriyansh Agnihotri <shriyansh@testzeus.com>"]
|
|
10
10
|
readme = "README.md"
|
|
@@ -22,15 +22,25 @@ pydantic = "^2.0.0"
|
|
|
22
22
|
pyyaml = "^6.0"
|
|
23
23
|
keyring = "^24.0.0"
|
|
24
24
|
ipdb = "^0.13.13"
|
|
25
|
-
testzeus-sdk = "^0.0.
|
|
25
|
+
testzeus-sdk = "^0.0.17"
|
|
26
26
|
pocketbase = "^0.15.0"
|
|
27
27
|
toml = "^0.10.2"
|
|
28
|
+
aiohttp = "3.13.4"
|
|
29
|
+
Pygments = "2.20.0"
|
|
30
|
+
cryptography = "46.0.7"
|
|
31
|
+
|
|
32
|
+
[tool.poetry.extras]
|
|
33
|
+
daemon = [
|
|
34
|
+
"fastapi",
|
|
35
|
+
"uvicorn",
|
|
36
|
+
"sse-starlette",
|
|
37
|
+
]
|
|
28
38
|
|
|
29
39
|
[tool.poetry.group.dev.dependencies]
|
|
30
|
-
pytest = "^
|
|
31
|
-
black = "
|
|
40
|
+
pytest = "^9.0.3"
|
|
41
|
+
black = ">=26.3.1,<27.0"
|
|
32
42
|
isort = "^5.12.0"
|
|
33
|
-
python-dotenv = "^1.
|
|
43
|
+
python-dotenv = "^1.2.2"
|
|
34
44
|
ipykernel = "^6.29.5"
|
|
35
45
|
|
|
36
46
|
[tool.poetry.scripts]
|