testzeus-cli 0.0.14__tar.gz → 0.0.15__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.
Files changed (27) hide show
  1. testzeus_cli-0.0.15/PKG-INFO +928 -0
  2. testzeus_cli-0.0.15/README.md +903 -0
  3. {testzeus_cli-0.0.14 → testzeus_cli-0.0.15}/pyproject.toml +2 -1
  4. {testzeus_cli-0.0.14 → testzeus_cli-0.0.15}/testzeus_cli/cli.py +10 -0
  5. testzeus_cli-0.0.15/testzeus_cli/commands/extensions.py +198 -0
  6. testzeus_cli-0.0.15/testzeus_cli/commands/notification_channels.py +292 -0
  7. testzeus_cli-0.0.15/testzeus_cli/commands/test_report_schedules.py +423 -0
  8. testzeus_cli-0.0.15/testzeus_cli/commands/test_run_groups.py +613 -0
  9. {testzeus_cli-0.0.14 → testzeus_cli-0.0.15}/testzeus_cli/commands/test_runs.py +1 -207
  10. testzeus_cli-0.0.15/testzeus_cli/commands/tests_ai_generator.py +249 -0
  11. {testzeus_cli-0.0.14 → testzeus_cli-0.0.15}/testzeus_cli/config.py +1 -1
  12. testzeus_cli-0.0.15/testzeus_cli/utils/validators.py +128 -0
  13. testzeus_cli-0.0.14/PKG-INFO +0 -510
  14. testzeus_cli-0.0.14/README.md +0 -487
  15. testzeus_cli-0.0.14/testzeus_cli/utils/validators.py +0 -77
  16. {testzeus_cli-0.0.14 → testzeus_cli-0.0.15}/LICENSE +0 -0
  17. {testzeus_cli-0.0.14 → testzeus_cli-0.0.15}/testzeus_cli/__init__.py +0 -0
  18. {testzeus_cli-0.0.14 → testzeus_cli-0.0.15}/testzeus_cli/auth.py +0 -0
  19. {testzeus_cli-0.0.14 → testzeus_cli-0.0.15}/testzeus_cli/commands/__init__.py +0 -0
  20. {testzeus_cli-0.0.14 → testzeus_cli-0.0.15}/testzeus_cli/commands/environments.py +0 -0
  21. {testzeus_cli-0.0.14 → testzeus_cli-0.0.15}/testzeus_cli/commands/tags.py +0 -0
  22. {testzeus_cli-0.0.14 → testzeus_cli-0.0.15}/testzeus_cli/commands/test_data.py +0 -0
  23. {testzeus_cli-0.0.14 → testzeus_cli-0.0.15}/testzeus_cli/commands/tests.py +0 -0
  24. {testzeus_cli-0.0.14 → testzeus_cli-0.0.15}/testzeus_cli/utils/__init__.py +0 -0
  25. {testzeus_cli-0.0.14 → testzeus_cli-0.0.15}/testzeus_cli/utils/auth.py +0 -0
  26. {testzeus_cli-0.0.14 → testzeus_cli-0.0.15}/testzeus_cli/utils/client.py +0 -0
  27. {testzeus_cli-0.0.14 → testzeus_cli-0.0.15}/testzeus_cli/utils/formatters.py +0 -0
@@ -0,0 +1,928 @@
1
+ Metadata-Version: 2.4
2
+ Name: testzeus-cli
3
+ Version: 0.0.15
4
+ Summary: Command-line interface for TestZeus testing platform
5
+ License-File: LICENSE
6
+ Author: Shriyansh Agnihotri
7
+ Author-email: shriyansh@testzeus.com
8
+ Requires-Python: >=3.11,<3.14
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Programming Language :: Python :: 3.13
14
+ Requires-Dist: click (>=8.1.3,<9.0.0)
15
+ Requires-Dist: ipdb (>=0.13.13,<0.14.0)
16
+ Requires-Dist: keyring (>=24.0.0,<25.0.0)
17
+ Requires-Dist: pocketbase (>=0.15.0,<0.16.0)
18
+ Requires-Dist: pydantic (>=2.0.0,<3.0.0)
19
+ Requires-Dist: pyyaml (>=6.0,<7.0)
20
+ Requires-Dist: rich (>=13.3.1,<14.0.0)
21
+ Requires-Dist: testzeus-sdk (>=0.0.13,<0.0.14)
22
+ Requires-Dist: toml (>=0.10.2,<0.11.0)
23
+ Project-URL: Repository, https://github.com/test-zeus-ai/testzeus-cli
24
+ Description-Content-Type: text/markdown
25
+
26
+ # TestZeus CLI
27
+
28
+ A powerful command-line interface for the TestZeus testing platform.
29
+
30
+ ## Installation
31
+
32
+ ```bash
33
+ pip install testzeus-cli
34
+ ```
35
+
36
+ ## Authentication
37
+
38
+ Before using the CLI, you need to authenticate with the TestZeus platform:
39
+
40
+ ```bash
41
+ testzeus login
42
+ ```
43
+
44
+ You will be prompted to enter your email and password. Your credentials are securely stored in your system's keyring.
45
+
46
+ ```bash
47
+ testzeus login --profile dev
48
+ ```
49
+
50
+ Authentication automatically detects and stores your tenant information, which will be used for all subsequent commands.
51
+
52
+ ### Auth Commands
53
+
54
+ | Command | Description |
55
+ |---------|-------------|
56
+ | `login` | Authenticate with TestZeus |
57
+ | `logout` | Log out and remove stored credentials |
58
+ | `whoami` | Display current authentication status |
59
+
60
+ ## Global Options
61
+
62
+ The following options can be used with any command:
63
+
64
+ | Option | Description |
65
+ |--------|-------------|
66
+ | `--profile` | Configuration profile to use (default: "default") |
67
+ | `--api-url` | Custom TestZeus API URL |
68
+ | `--verbose` | Enable verbose output |
69
+ | `--format` | Output format: json, table, or yaml (default: table) |
70
+
71
+ ## Managing Tests
72
+
73
+ ### List Tests
74
+
75
+ ```bash
76
+ testzeus tests list
77
+ ```
78
+
79
+ Filter test list with key-value pairs:
80
+ ```bash
81
+ testzeus tests list --filters status=draft
82
+ ```
83
+
84
+ Sort and expand related entities:
85
+ ```bash
86
+ testzeus tests list --sort created --expand tags,test_data
87
+ ```
88
+
89
+ ### Get Test Details
90
+
91
+ ```bash
92
+ testzeus tests get <test-id>
93
+ testzeus tests get <test-id> --expand tags,test_data
94
+ ```
95
+
96
+ ### Create Test
97
+
98
+ Create a test with text-based features:
99
+
100
+ ```bash
101
+ testzeus tests create --name "My Test" --feature "Feature: Test something"
102
+ ```
103
+
104
+ Create a test with features from a file:
105
+
106
+ ```bash
107
+ testzeus tests create --name "My Test" --feature-file ./features.txt
108
+ ```
109
+
110
+ Additional options:
111
+ ```bash
112
+ 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
+ ```
114
+
115
+ ### Update Test
116
+
117
+ Update test name:
118
+
119
+ ```bash
120
+ testzeus tests update <test-id> --name "New Name"
121
+ ```
122
+
123
+ Update test features from text:
124
+
125
+ ```bash
126
+ testzeus tests update <test-id> --feature "Updated feature content"
127
+ ```
128
+
129
+ Update test features from a file:
130
+
131
+ ```bash
132
+ testzeus tests update <test-id> --feature-file ./updated_features.txt
133
+ ```
134
+
135
+ Update other properties:
136
+ ```bash
137
+ testzeus tests update <test-id> --status ready --data data_id1 --tags tag1 --environment env_id
138
+ ```
139
+
140
+ ### Delete Test
141
+
142
+ ```bash
143
+ testzeus tests delete <test-id>
144
+ ```
145
+
146
+ ## Test Runs
147
+
148
+ ### List Test Runs
149
+
150
+ ```bash
151
+ testzeus test-runs list
152
+ ```
153
+
154
+ Filter runs by status:
155
+
156
+ ```bash
157
+ testzeus test-runs list --filters status=running
158
+ ```
159
+
160
+ ### Get Test Run Details
161
+
162
+ ```bash
163
+ testzeus test-runs get <run-id>
164
+ ```
165
+
166
+ Get expanded details including all outputs and steps:
167
+
168
+ ```bash
169
+ testzeus test-runs get-expanded <run-id>
170
+ ```
171
+
172
+ ### Watch Test Run Progress
173
+
174
+ ```bash
175
+ testzeus test-runs watch <run-id>
176
+ testzeus test-runs watch <run-id> --interval 10
177
+ ```
178
+
179
+ ### Get Test Run Status
180
+
181
+ ```bash
182
+ testzeus test-runs status <run-id>
183
+ ```
184
+
185
+ ### Download Test Run Attachments
186
+
187
+ ```bash
188
+ testzeus test-runs download-attachments <run-id>
189
+ testzeus test-runs download-attachments <run-id> --output-dir ./my-attachments
190
+ ```
191
+
192
+ ## Test Data
193
+
194
+ ### List Test Data
195
+
196
+ ```bash
197
+ testzeus test-data list
198
+ ```
199
+
200
+ Filter by type:
201
+ ```bash
202
+ testzeus test-data list --filters type=test
203
+ ```
204
+
205
+ ### Get Test Data Details
206
+
207
+ ```bash
208
+ testzeus test-data get <data-id>
209
+ testzeus test-data get <data-id> --expand related_entities
210
+ ```
211
+
212
+ ### Create Test Data
213
+
214
+ Create with inline content:
215
+
216
+ ```bash
217
+ testzeus test-data create --name "Test Data 1" --data "{\"key\":\"value\"}"
218
+ ```
219
+
220
+ Create with data from a file:
221
+
222
+ ```bash
223
+ testzeus test-data create --name "Test Data" --data-file ./data.json
224
+ ```
225
+
226
+ Additional options:
227
+ ```bash
228
+ testzeus test-data create --name "Test Data" --type test --status ready --data-file ./data.json
229
+ ```
230
+
231
+ ### Update Test Data
232
+
233
+ Update name and other properties:
234
+
235
+ ```bash
236
+ testzeus test-data update <data-id> --name "New Data Name" --type updated --status ready
237
+ ```
238
+
239
+ Update data content from text:
240
+
241
+ ```bash
242
+ testzeus test-data update <data-id> --data "{\"key\":\"updated\"}"
243
+ ```
244
+
245
+ Update data content from a file:
246
+
247
+ ```bash
248
+ testzeus test-data update <data-id> --data-file ./updated_data.json
249
+ ```
250
+
251
+ ### Delete Test Data
252
+
253
+ ```bash
254
+ testzeus test-data delete <data-id>
255
+ ```
256
+
257
+ ### File Management for Test Data
258
+
259
+ Upload a file to test data:
260
+
261
+ ```bash
262
+ testzeus test-data upload-file <data-id> <file-path>
263
+ ```
264
+
265
+ Delete all files from test data:
266
+
267
+ ```bash
268
+ testzeus test-data delete-all-files <data-id>
269
+ ```
270
+
271
+ ## Environments
272
+
273
+ ### List Environments
274
+
275
+ ```bash
276
+ testzeus environments list
277
+ ```
278
+
279
+ Filter environments:
280
+ ```bash
281
+ testzeus environments list --filters status=ready
282
+ ```
283
+
284
+ ### Get Environment Details
285
+
286
+ ```bash
287
+ testzeus environments get <env-id>
288
+ testzeus environments get <env-id> --expand related_entities
289
+ ```
290
+
291
+ ### Create Environment
292
+
293
+ Create with inline data:
294
+
295
+ ```bash
296
+ testzeus environments create --name "Test Environment" --data "{\"key\":\"value\"}"
297
+ ```
298
+
299
+ Create with data from a file:
300
+
301
+ ```bash
302
+ testzeus environments create --name "Test Environment" --data-file ./env_data.json
303
+ ```
304
+
305
+ Additional options:
306
+ ```bash
307
+ testzeus environments create --name "Test Environment" --status ready --data-file ./env_data.json --tags "tag1,tag2"
308
+ ```
309
+
310
+ ### Update Environment
311
+
312
+ Update environment properties:
313
+
314
+ ```bash
315
+ testzeus environments update <env-id> --name "New Name" --status ready
316
+ ```
317
+
318
+ Update environment data:
319
+
320
+ ```bash
321
+ testzeus environments update <env-id> --data "{\"key\":\"updated\"}"
322
+ testzeus environments update <env-id> --data-file ./updated_env_data.json
323
+ ```
324
+
325
+ ### Delete Environment
326
+
327
+ ```bash
328
+ testzeus environments delete <env-id>
329
+ ```
330
+
331
+ ### File Management for Environments
332
+
333
+ Upload a file to environment:
334
+
335
+ ```bash
336
+ testzeus environments upload-file <env-id> <file-path>
337
+ ```
338
+
339
+ Remove a file from environment:
340
+
341
+ ```bash
342
+ testzeus environments remove-file <env-id> <file-path>
343
+ ```
344
+
345
+ Delete all files from environment:
346
+
347
+ ```bash
348
+ testzeus environments delete-all-files <env-id>
349
+ ```
350
+
351
+ ## Tags
352
+
353
+ ### List Tags
354
+
355
+ ```bash
356
+ testzeus tags list
357
+ ```
358
+
359
+ Filter tags:
360
+ ```bash
361
+ testzeus tags list --filters name=test
362
+ ```
363
+
364
+ ### Get Tag Details
365
+
366
+ ```bash
367
+ testzeus tags get <tag-id>
368
+ ```
369
+
370
+ ### Create Tag
371
+
372
+ ```bash
373
+ testzeus tags create --name "test-tag" --value "test-value"
374
+ ```
375
+
376
+ Create tag without value:
377
+
378
+ ```bash
379
+ testzeus tags create --name "simple-tag"
380
+ ```
381
+
382
+ ### Update Tag
383
+
384
+ ```bash
385
+ testzeus tags update <tag-id> --name "new-name" --value "new-value"
386
+ ```
387
+
388
+ ### Delete Tag
389
+
390
+ ```bash
391
+ testzeus tags delete <tag-name>
392
+ ```
393
+
394
+ ## Test Report Schedules
395
+
396
+ Test report schedules allow you to create automated test execution schedules with various filtering options and notification configurations.
397
+
398
+ ### List Test Report Schedules
399
+
400
+ ```bash
401
+ testzeus schedule list
402
+ ```
403
+
404
+ Filter and paginate:
405
+ ```bash
406
+ testzeus schedule list --filters is_active=true --page 1 --per-page 20
407
+ ```
408
+
409
+ ### Get Test Report Schedule Details
410
+
411
+ ```bash
412
+ testzeus schedule get <schedule-id>
413
+ ```
414
+
415
+ ### Create Test Report Schedule
416
+
417
+ Create a basic schedule with cron expression:
418
+
419
+ ```bash
420
+ testzeus schedule create --name "nightly-reports" --cron-expression "0 0 * * *"
421
+ ```
422
+
423
+ Create a schedule with time intervals (alternative to cron):
424
+
425
+ ```bash
426
+ testzeus schedule create \
427
+ --name "daily-reports" \
428
+ --filter-time-intervals "2025-01-01 00:00:00,2025-01-01 01:00:00" \
429
+ --is-active true
430
+ ```
431
+
432
+ Create a comprehensive schedule with comma-separated filters:
433
+
434
+ ```bash
435
+ testzeus schedule create \
436
+ --name "regression-reports" \
437
+ --is-active true \
438
+ --cron-expression "0 2 * * 1-5" \
439
+ --filter-name-pattern "regression_*" \
440
+ --filter-tags "tag1,tag2,tag3" \
441
+ --filter-env "env1,env2" \
442
+ --filter-test-data "data1,data2" \
443
+ --notification-channels "channel1,channel2"
444
+ ```
445
+
446
+ **Important validation rules:**
447
+ - Use either `--cron-expression` OR `--filter-time-intervals` (not both)
448
+ - Use either `--filter-tags` OR `--filter-tag-pattern` (not both)
449
+ - Use either `--filter-env` OR `--filter-env-pattern` (not both)
450
+ - Use either `--filter-test-data` OR `--filter-test-data-pattern` (not both)
451
+
452
+ ### Update Test Report Schedule
453
+
454
+ Update schedule with new cron expression:
455
+
456
+ ```bash
457
+ testzeus schedule update <schedule-id> \
458
+ --name "updated-schedule" \
459
+ --cron-expression "0 3 * * *" \
460
+ --is-active true
461
+ ```
462
+
463
+ Update with comma-separated filters:
464
+
465
+ ```bash
466
+ testzeus schedule update <schedule-id> \
467
+ --filter-tags "newtag1,newtag2" \
468
+ --notification-channels "newchannel1,newchannel2"
469
+ ```
470
+
471
+ Update with time intervals:
472
+
473
+ ```bash
474
+ testzeus schedule update <schedule-id> \
475
+ --filter-time-intervals "2025-01-02 10:00:00,2025-01-02 11:00:00"
476
+ ```
477
+
478
+ ### Delete Test Report Schedule
479
+
480
+ ```bash
481
+ testzeus schedule delete <schedule-id>
482
+ ```
483
+
484
+ ## Notification Channels
485
+
486
+ Notification channels manage how test results and reports are delivered to your team.
487
+
488
+ ### List Notification Channels
489
+
490
+ ```bash
491
+ testzeus notification list
492
+ ```
493
+
494
+ ### Get Notification Channel Details
495
+
496
+ ```bash
497
+ testzeus notification get <channel-id>
498
+ ```
499
+
500
+ ### Create Notification Channel
501
+
502
+ Create a basic email notification channel:
503
+
504
+ ```bash
505
+ testzeus notification create \
506
+ --name "qa-team" \
507
+ --emails "qa@example.com,team-lead@example.com" \
508
+ --is-active true
509
+ ```
510
+
511
+ Create a notification channel with webhooks:
512
+
513
+ ```bash
514
+ testzeus notification create \
515
+ --name "prod-alerts" \
516
+ --emails "ops@example.com,admin@example.com" \
517
+ --webhooks "https://hooks.example.com/webhook1,https://hooks.example.com/webhook2" \
518
+ --is-active true \
519
+ --is-default true
520
+ ```
521
+
522
+ ### Update Notification Channel
523
+
524
+ Update channel properties:
525
+
526
+ ```bash
527
+ testzeus notification update <channel-id> --name "updated-channel" --is-active true
528
+ ```
529
+
530
+ Update emails and webhooks:
531
+
532
+ ```bash
533
+ testzeus notification update <channel-id> \
534
+ --emails "new@example.com,team@example.com" \
535
+ --webhooks "https://new.webhook.com,https://backup.webhook.com"
536
+ ```
537
+
538
+ ### Delete Notification Channel
539
+
540
+ ```bash
541
+ testzeus notification delete <channel-id>
542
+ ```
543
+
544
+ ## Extensions
545
+
546
+ Extensions allow you to extend TestZeus functionality with custom data and responses.
547
+
548
+ ### List Extensions
549
+
550
+ ```bash
551
+ testzeus extension list
552
+ ```
553
+
554
+ ### Get Extension Details
555
+
556
+ ```bash
557
+ testzeus extension get <extension-id>
558
+ ```
559
+
560
+ ### Create Extension
561
+
562
+ Create with inline data:
563
+
564
+ ```bash
565
+ testzeus extension create \
566
+ --name "custom-validator" \
567
+ --data-content "validation logic here"
568
+ ```
569
+
570
+ Create with data from file:
571
+
572
+ ```bash
573
+ testzeus extension create \
574
+ --name "custom-script" \
575
+ --data-file ./script.py
576
+ ```
577
+
578
+ ### Delete Extension
579
+
580
+ ```bash
581
+ testzeus extension delete <extension-id>
582
+ ```
583
+
584
+ ## AI Test Generator
585
+
586
+ AI Test Generator helps create test cases automatically using AI-powered analysis.
587
+
588
+ ### List AI Test Generators
589
+
590
+ ```bash
591
+ testzeus testcase-generator list
592
+ ```
593
+
594
+ ### Get AI Test Generator Details
595
+
596
+ ```bash
597
+ testzeus testcase-generator get <generator-id>
598
+ ```
599
+
600
+ ### Create AI Test Generator
601
+
602
+ Create with minimal required parameters:
603
+
604
+ ```bash
605
+ testzeus testcase-generator create \
606
+ --test-id <test-id> \
607
+ --user-prompt "Generate comprehensive test cases for login functionality"
608
+ ```
609
+
610
+ Create with custom parameters:
611
+
612
+ ```bash
613
+ testzeus testcase-generator create \
614
+ --test-id <test-id> \
615
+ --user-prompt "Generate test cases for payment processing" \
616
+ --reasoning-effort high \
617
+ --num-testcases 10 \
618
+ --test-data data1 --test-data data2 \
619
+ --environment env_id
620
+ ```
621
+
622
+ Create with prompts from files:
623
+
624
+ ```bash
625
+ testzeus testcase-generator create \
626
+ --test-id <test-id> \
627
+ --test-feature-file ./feature.txt \
628
+ --user-prompt-file ./prompt.txt \
629
+ --reasoning-effort medium \
630
+ --num-testcases 5
631
+ ```
632
+
633
+ **Required Parameters:**
634
+ - `--test-id`: Test ID to generate for (required)
635
+ - `--user-prompt`: User prompt for AI generation (required, or use `--user-prompt-file`)
636
+
637
+ **Default Values:**
638
+ - `--reasoning-effort`: `low` (options: low, medium, high)
639
+ - `--num-testcases`: `3` (range: 1-20)
640
+ - `submit`: automatically set to `true`
641
+
642
+ ### Delete AI Test Generator
643
+
644
+ ```bash
645
+ testzeus testcase-generator delete <generator-id>
646
+ ```
647
+
648
+ ## Test Run Groups
649
+
650
+ Test run groups allow you to organize and execute multiple tests together as a cohesive unit. This is useful for running test suites, regression tests, or any collection of tests that should be executed together.
651
+
652
+ ### List Test Run Groups
653
+
654
+ ```bash
655
+ testzeus test-run-group list
656
+ ```
657
+
658
+ Filter and paginate:
659
+ ```bash
660
+ testzeus test-run-group list --filters status=completed --page 1 --per-page 20
661
+ ```
662
+
663
+ Sort and expand related entities:
664
+ ```bash
665
+ testzeus test-run-group list --sort created --expand tags,test_ids,environment
666
+ ```
667
+
668
+ ### Get Test Run Group Details
669
+
670
+ ```bash
671
+ testzeus test-run-group get <group-id>
672
+ testzeus test-run-group get <group-id> --expand tags,test_ids,environment
673
+ ```
674
+
675
+ ### Execute Test Run Group
676
+
677
+ Execute a test run group with specific test IDs:
678
+
679
+ ```bash
680
+ testzeus test-run-group execute --name "regression-suite" --test-ids "test1,test2,test3"
681
+ ```
682
+
683
+ Execute a test run group with tags:
684
+
685
+ ```bash
686
+ testzeus test-run-group execute --name "smoke-suite" --tags "smoke,critical"
687
+ ```
688
+
689
+ Execute a comprehensive test run group:
690
+
691
+ ```bash
692
+ testzeus test-run-group execute \
693
+ --name "smoke-tests" \
694
+ --execution-mode strict \
695
+ --test-ids "test_id_1,test_id_2,test_id_3" \
696
+ --environment env_id \
697
+ --notification-channels "channel_id_1,channel_id_2"
698
+ ```
699
+
700
+ **Required Parameters:**
701
+ - `--name`: Test run group name (required)
702
+ - Either `--test-ids` OR `--tags` (required, but not both)
703
+
704
+ **Validation Rules:**
705
+ - Use either `--test-ids` OR `--tags` (not both)
706
+ - At least one test ID or tag must be provided
707
+
708
+ **Default Values:**
709
+ - `--execution-mode`: `lenient` (options: lenient, strict)
710
+
711
+ ### Delete Test Run Group
712
+
713
+ ```bash
714
+ testzeus test-run-group delete <group-id>
715
+ ```
716
+
717
+ ### Cancel Test Run Group
718
+
719
+ Cancel a running test run group:
720
+
721
+ ```bash
722
+ testzeus test-run-group cancel <group-id>
723
+ ```
724
+
725
+ ### Get Test Run Group Status
726
+
727
+ Get detailed status information:
728
+
729
+ ```bash
730
+ testzeus test-run-group get-status <group-id>
731
+ ```
732
+
733
+ This returns status information including:
734
+ - Overall group status
735
+ - CTRF report status
736
+ - Individual test run statuses
737
+ - Timestamps
738
+
739
+ ### Download Test Run Group Report
740
+
741
+ Download report in PDF format (default):
742
+
743
+ ```bash
744
+ testzeus test-run-group download-report <group-id>
745
+ ```
746
+
747
+ Download report in specific format:
748
+
749
+ ```bash
750
+ testzeus test-run-group download-report <group-id> --format ctrf
751
+ testzeus test-run-group download-report <group-id> --format csv --output-dir ./reports
752
+ ```
753
+
754
+ **Available Formats:**
755
+ - `pdf` (default) - PDF report
756
+ - `ctrf` - CTRF JSON format
757
+ - `csv` - CSV data export
758
+ - `zip` - ZIP archive with all formats
759
+
760
+ **Options:**
761
+ - `--output-dir`: Output directory (default: downloads)
762
+ - `--format`: Report format (default: pdf)
763
+
764
+ ### Download Test Run Group Attachments
765
+
766
+ Download all attachments for all test runs in a test run group:
767
+
768
+ ```bash
769
+ testzeus test-run-group download-attachments <group-id>
770
+ ```
771
+
772
+ Download attachments to custom directory:
773
+
774
+ ```bash
775
+ testzeus test-run-group download-attachments <group-id> --output-dir ./test-artifacts
776
+ ```
777
+
778
+ This command creates a hierarchical directory structure:
779
+ ```
780
+ downloads/
781
+ └── <test-run-group-name>/
782
+ ├── <test-run-1-name>/
783
+ │ ├── attachment1.pdf
784
+ │ ├── attachment2.log
785
+ │ └── ...
786
+ ├── <test-run-2-name>/
787
+ │ ├── attachment3.png
788
+ │ └── ...
789
+ └── ...
790
+ ```
791
+
792
+ **Features:**
793
+ - Downloads attachments from all test runs in the group
794
+ - Automatically organizes files by test run
795
+ - Shows progress and summary statistics
796
+ - Continues processing if individual downloads fail
797
+ - Supports verbose output for detailed breakdown
798
+
799
+ **Options:**
800
+ - `--output-dir`: Base directory to save attachments (default: downloads)
801
+
802
+ ## Configuration
803
+
804
+ The CLI stores configuration and credentials in your user's config directory. Different profiles can be used to manage multiple TestZeus environments.
805
+
806
+ Default configuration location:
807
+ - Linux/Mac: `~/.testzeus/config.yaml`
808
+ - Windows: `%APPDATA%\testzeus\config.yaml`
809
+
810
+ Passwords are securely stored in your system's keyring.
811
+
812
+ ## Examples
813
+
814
+ ### Complete Workflow
815
+
816
+ ```bash
817
+ # Login to TestZeus
818
+ testzeus login
819
+
820
+ # Create test data
821
+ testzeus test-data create --name "User Data" --data "{\"username\":\"testuser\"}"
822
+
823
+ # Create a new test with features from a file
824
+ testzeus tests create --name "Login Test" --feature-file ./features/login.feature --data <test_data_id>
825
+
826
+ # Execute tests using test run groups
827
+ testzeus test-run-group execute --name "Login Tests" --test-ids <test_id>
828
+
829
+ # Watch the test run group progress
830
+ testzeus test-run-group get-status <test_run_group_id>
831
+
832
+ # Download test report
833
+ testzeus test-run-group download-report <test_run_group_id> --format pdf
834
+
835
+ # Download all attachments from the test runs
836
+ testzeus test-run-group download-attachments <test_run_group_id> --output-dir ./results
837
+ ```
838
+
839
+ ### Working with Environments
840
+
841
+ ```bash
842
+ # Create an environment with data
843
+ testzeus environments create --name "Production Environment" --data-file ./prod_config.json --status ready
844
+
845
+ # Upload additional files to the environment
846
+ testzeus environments upload-file <env-id> ./additional_config.yaml
847
+
848
+ # Create a test that uses the environment
849
+ testzeus tests create --name "Production Test" --feature-file ./test.feature --environment <env-id>
850
+ ```
851
+
852
+ ### Managing Tags
853
+
854
+ ```bash
855
+ # Create tags for organizing tests
856
+ testzeus tags create --name "regression" --value "suite"
857
+ testzeus tags create --name "priority" --value "high"
858
+
859
+ # Create a test with tags
860
+ testzeus tests create --name "Critical Test" --feature-file ./critical.feature --tags tag1 --tags tag2
861
+ ```
862
+
863
+ ### Working with Test Run Groups
864
+
865
+ ```bash
866
+ # Execute a test run group with specific test IDs
867
+ testzeus test-run-group execute \
868
+ --name "nightly-regression" \
869
+ --execution-mode strict \
870
+ --test-ids "test_id_1,test_id_2,test_id_3" \
871
+ --environment env_id
872
+
873
+ # Check the status
874
+ testzeus test-run-group get-status <group-id>
875
+
876
+ # Download the test report
877
+ testzeus test-run-group download-report <group-id> --format pdf
878
+
879
+ # Download all attachments from test runs
880
+ testzeus test-run-group download-attachments <group-id> --output-dir ./artifacts
881
+
882
+ # Cancel a running group if needed
883
+ testzeus test-run-group cancel <group-id>
884
+
885
+ # Delete the group when done
886
+ testzeus test-run-group delete <group-id>
887
+ ```
888
+
889
+ ## Error Handling
890
+
891
+ When an error occurs, the CLI will display an error message. For more detailed information, run any command with the `--verbose` flag:
892
+
893
+ ```bash
894
+ testzeus tests list --verbose
895
+ ```
896
+
897
+ ## Output Formats
898
+
899
+ The CLI supports multiple output formats:
900
+
901
+ - `table`: Human-readable tabular format (default)
902
+ - `json`: JSON format for programmatic usage
903
+ - `yaml`: YAML format
904
+
905
+ Example:
906
+ ```bash
907
+ testzeus tests list --format json
908
+ ```
909
+
910
+ ## Development and Contribution
911
+
912
+ To contribute to the TestZeus CLI, fork the repository and install development dependencies:
913
+
914
+ ```bash
915
+ pip install -e ".[dev]"
916
+ ```
917
+
918
+ ### Release Process
919
+
920
+ The TestZeus CLI uses GitHub Actions for automated releases to PyPI. To create a release:
921
+
922
+ 1. Use the Makefile's release target: `make release`
923
+ 2. This will:
924
+ - Prompt for version bump type (patch, minor, major)
925
+ - Update the version in pyproject.toml
926
+ - Commit and create a git tag
927
+ - Push changes and tags to GitHub
928
+ 3. The tag push will automatically trigger the GitHub Actions publish workflow