بنقرة واحدة
zephyr
Zephyr Scale CLI - manage test resources, run test cycles interactively, and automate test operations
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Zephyr Scale CLI - manage test resources, run test cycles interactively, and automate test operations
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | zephyr |
| description | Zephyr Scale CLI - manage test resources, run test cycles interactively, and automate test operations |
| targets | ["claudecode"] |
| claudecode | {"allowed-tools":["Bash","Read","Write"]} |
The zephyr CLI wraps the entire Zephyr Scale REST API. Both users and AI agents can perform the same operations.
Every command accepts:
-p, --profile <name> Profile name (default: "default")
-c, --config <path> Custom config file path
--text Human-readable text output (default: JSON)
--verbose Detailed logging
The snapshot workflow is the primary way to manage test execution. It syncs a test cycle into a local JSON file, which can be sorted, edited, and played back interactively.
Select a test cycle interactively and create a snapshot:
zephyr play init
# 1) PRJ-R1: Sprint 1 Regression
# 2) PRJ-R2: Sprint 2 Smoke Test
# Select cycle number: 1
# => Snapshot saved to PRJ-R1.json (42 test cases)
# => Run: zephyr play PRJ-R1.json
Initial sync (test cycle key to new file):
zephyr snapshot sync PRJ-R1 -o PRJ-R1.json
Re-sync (update existing file from Zephyr):
zephyr snapshot sync PRJ-R1.json
Reload a single test case (partial update):
zephyr snapshot sync PRJ-R1.json -t PRJ-T123
zephyr snapshot sort PRJ-R1.json --by folder # by folder path
zephyr snapshot sort PRJ-R1.json --by key # by test case key
zephyr snapshot sort PRJ-R1.json --by name # by test case name
zephyr snapshot sort PRJ-R1.json --by status # by execution status
zephyr snapshot sort PRJ-R1.json --by created # by creation date
zephyr snapshot sort PRJ-R1.json --by original # by Zephyr execution order
Launch the interactive test execution interface:
zephyr play PRJ-R1.json
zephyr play PRJ-R1.json --filter unexecuted
zephyr play PRJ-R1.json --filter "folder=/Authentication"
zephyr play PRJ-R1.json --filter "status=Fail"
The TUI allows step-by-step test execution with keyboard navigation. Both human users and AI agents can drive test cycles through this workflow.
Record test results without the TUI:
# Set overall execution status
zephyr snapshot record PRJ-R1.json PRJ-T123 --status Pass
# Set status with comment
zephyr snapshot record PRJ-R1.json PRJ-T123 --status Fail --comment "Button not visible"
# Update a specific step result
zephyr snapshot record PRJ-R1.json PRJ-T123 --step 0 --status Pass --actual-result "Page loaded"
zephyr testcase create \
--name "Login succeeds with valid credentials" \
--objective "Verify login flow" \
--precondition "Login page is displayed" \
--folder-id 123456 \
--step "Enter username|Username is entered" \
--step "Enter password|Password is entered" \
--step "Click login|Dashboard is displayed"
--step format: "description|expected result" or "description|test data|expected result"
zephyr testcase get PRJ-T123
zephyr testcase list --folder-id 123456
zephyr testcase update PRJ-T123 \
--name "Updated title" \
--objective "Updated objective" \
--folder-id 654321
Use when you need to modify steps after test case creation.
# Overwrite all steps
zephyr teststep create PRJ-T123 \
--mode OVERWRITE \
--inline "Step description" \
--expected-result "Expected result" \
--test-data "Test data"
# Append new steps
zephyr teststep create PRJ-T123 \
--mode APPEND \
--inline "New step" \
--expected-result "Expected result"
zephyr teststep list PRJ-T123
zephyr testcycle create --name "Sprint 1 Regression" --description "Full regression"
zephyr testcycle get PRJ-R1
zephyr testcycle list
zephyr testcycle update PRJ-R1 --name "Updated name"
zephyr testcycle tree PRJ-R1
zephyr testexecution create \
--test-case-key PRJ-T123 \
--test-cycle-key PRJ-R1 \
--status-name "Not Executed"
# Update single execution
zephyr testexecution update PRJ-E1 --status-name "Pass"
# Bulk update: all executions in a cycle
zephyr testexecution update --test-cycle PRJ-R1 --status-name "Pass"
zephyr testexecution get PRJ-E1
zephyr testexecution list --test-cycle PRJ-R1
zephyr testplan create --name "Release v2.0" --objective "Full coverage"
zephyr testplan get PRJ-P1
zephyr testplan list
zephyr folder create \
--name "Authentication" \
--folder-type TEST_CASE \
--parent-id 12345 # omit for root folder
zephyr folder get 12345
zephyr folder list --folder-type TEST_CASE
zephyr folder tree
zephyr environment list
zephyr environment get 1
zephyr environment create --name "Production"
zephyr environment update 1 --name "Staging"
zephyr status list
zephyr status list --status-type TEST_EXECUTION
zephyr status get 1
zephyr status create --name "In Review" --type TEST_CASE
zephyr priority list
zephyr priority get 1
zephyr priority create --name "Critical"
zephyr project list
zephyr project get PRJ
zephyr issuelink testcases JIRA-123
zephyr issuelink testcycles JIRA-123
zephyr issuelink testplans JIRA-123
zephyr issuelink executions JIRA-123
zephyr open PRJ-T123 # test case
zephyr open PRJ-R1 # test cycle
zephyr open PRJ-P1 # test plan
zephyr play init or zephyr snapshot sync PRJ-R1 -o PRJ-R1.jsonzephyr snapshot sort PRJ-R1.json --by folderPRJ-R1.json to understand test cases and stepszephyr snapshot record PRJ-R1.json PRJ-T123 --status Passzephyr snapshot sync PRJ-R1.json to pull latest from Zephyr--text for human-readable output.jq for filtering: zephyr testcase list | jq '.[].key'--project-key for most commands.