AI-powered test automation CLI for NetScaler Console (MAS/ADM)
Project description
mas-automation-cli
AI-powered test automation CLI for NetScaler Console (MAS/ADM) functional test cases.
Connects to StarWars (Citrix internal test case database), Claude AI (script generation), and a live MAS + VPX lab environment — automating the entire discover → generate → execute → report cycle.
Install
# With AI support (recommended)
pip install "mas-automation-cli[ai]"
# Standard (no AI generation)
pip install mas-automation-cli
Requires Python 3.8+. For AI features, also set one of:
ANTHROPIC_API_KEY— Anthropic direct APIANTHROPIC_VERTEX_PROJECT_ID— Google Cloud Vertex AI (contact your team admin for project details)
Quick start
# 1. First-time setup: MAS/VPX/SDK credentials + AI provider
mas-cli init
# 2. Verify everything is reachable (run every session)
mas-cli health-check
# 3. Preview what automate will do — safe, no files written
mas-cli automate 111.3 --dry-run
# 4. Generate + execute all missing test cases for a folder
mas-cli automate 111.3
What mas-cli automate does
mas-cli automate <folder> runs a 7-step pipeline:
| Step | What happens |
|---|---|
| Preflight | Checks AI + StarWars MCP + Atlassian — blocks if any required service is down |
| 1. Infra config | Interactive setup (skipped if already configured) |
| 2. Validate infra | Pings MAS, VPX, SDK |
| 3. Agent + StarWars | Fetches all TC IDs for the folder (automated + pending) |
| 3.5. Folder cleanup | Moves stale legacy scripts to BACKUP/ — runs even in dry-run |
| 4. Analyze | Counts total / automated / broken / pending vs StarWars ground truth |
| 5. Generate | Fetches procedures from StarWars → Claude generates Python test scripts |
| 6. Execute | Runs all tests via asterix.py against live MAS lab |
| 7. Summary | StarWars coverage breakdown + pass/fail counts |
Example summary output:
--- StarWars (Source of Truth) ---
Total TCs in folder: 899
Automated in StarWars: 790 (have scripts in some system)
Not automated anywhere: 109 (first-time automation targets)
--- Coverage ---
Before this run: 112/899 (12%)
After this run: 901/899 (100%)
Added by mas-cli: +789 script(s)
Commands
| Command | Description |
|---|---|
mas-cli init |
First-time setup: MAS/VPX/SDK + AI credentials |
mas-cli health-check |
9-point tiered health check (5 core + 3 required + 1 advisory) |
mas-cli automate <prefix> |
Full AI pipeline: cleanup → StarWars → generate → execute → report |
mas-cli automate <prefix> --dry-run |
Preview only — cleanup runs, no files written |
mas-cli automate <prefix> --skip-generate |
Skip AI generation, run existing scripts + show coverage |
mas-cli automate <prefix> --skip-execute |
Generate scripts only, skip test execution |
mas-cli test <id> |
Run one test or all tests matching a prefix |
mas-cli suite <name> |
Run an entire STF suite |
mas-cli list-tests |
List all tests registered in the suite |
mas-cli config-show |
Show current config (passwords masked) |
Health check tiers
mas-cli health-check
| Tier | Checks | Blocks if down |
|---|---|---|
| CORE (5) | Framework, config, SDK, helper modules, OpenSSL | mas-cli test |
| REQUIRED (3) | AI (Claude API), StarWars MCP, Atlassian MCP | mas-cli automate |
| ADVISORY (1) | citrix-documentation MCP | Nothing — [WARN] only |
Requirements
- Python 3.8+
- Access to a NetScaler MAS lab environment
- Test case MCP server reachable — requires Citrix internal network / VPN (contact your team for server details)
- Claude AI: Anthropic API key or Vertex AI credentials
Links
License
Copyright 2026 NetScaler Team
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mas_automation_cli-1.3.2.tar.gz.
File metadata
- Download URL: mas_automation_cli-1.3.2.tar.gz
- Upload date:
- Size: 36.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e0f279bb95be793c878578e32c918f5b26f879be3890d53bfa49930e97386e9
|
|
| MD5 |
8ece7f66ac6b783a0ed630dc1d624e6e
|
|
| BLAKE2b-256 |
f9b4d28129c1da9f19081a5999f02395b325f74f7bd7422b2d287f5a56235ce4
|
File details
Details for the file mas_automation_cli-1.3.2-py3-none-any.whl.
File metadata
- Download URL: mas_automation_cli-1.3.2-py3-none-any.whl
- Upload date:
- Size: 42.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6d538ab520d2473a44524a27dee5b431f4940674347d275ebb9df736cccacbb
|
|
| MD5 |
cc88a049aaf091d098e3cbaec53f5da7
|
|
| BLAKE2b-256 |
98f62ed5ccf6af32d79703ee583a24f1298c1bc9d51c15d44e8d6e8db6ef5478
|