octane-alm
Skill2 starsChanged 4 months agoMITView on GitHub
Micro Focus ALM Octane integration guide. Covers REST API, entity management, defect tracking, test automation integration, and CI/CD pipeline reporting.
- Installs packages
- Sends data out
In this repository45 other files it gives its agents.
- AGENTS.mdAGENTS.md
- allure-reportsSkill
- android-nativeSkill
- appian-lowcodeSkill
- appium-mobileSkill
- behave-bddSkill
- BiDiWave Cross-BrowserSkill
- BiDiWave Network InterceptionSkill
- CDPWave DebuggingSkill
- CDPWave TestingSkill
- db2-oracleSkill
- ebook-writerSkill
- flask-apiSkill
- flet-desktopSkill
- google-crawling-indexingSkill
- google-ranking-appearanceSkill
- google-seo-fundamentalsSkill
- google-seo-monitoringSkill
- jinja2-templatesSkill
- jmeter-load-testingSkill
- k6-load-testingSkill
- karate-api-testingSkill
- paramiko-sshSkill
- postman-api-automationSkill
- prestashop-moduleSkill
- prompt-engineering-best-practicesSkill
- pytest-advancedSkill
- robot-frameworkSkill
- salesforce-devSkill
- sonarqube-quality-gatesSkill
- sql-serverSkill
- Skill NameSkill
- testcontainersSkill
- wave-ecosystem-guideSkill
- WaveXis AccessibilitySkill
- WaveXis CI/CD IntegrationSkill
- wavexis-cli-automationSkill
- wavexis-mcp-agent-integrationSkill
- WaveXis Network TestingSkill
- WaveXis Performance AuditSkill
- WaveXis Session RecordingSkill
- WaveXis Web ScrapingSkill
- webdriverioSkill
- wordpress-themesSkill
- xctest-iosSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 224
Use OCTANE widgets for real-time dashboards.
- Distinctive: line 232
Use dedicated API users with minimal permissions.
- Distinctive: line 234
Use query parameters to limit result sets.
- Distinctive: line 238
Use custom fields for project-specific metadata.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Octane ALM
1. REST API Basics
Authentication
# Using client_id and client_secret
curl -X POST https://octane.example.com/authentication/sign_in \
-H "Content-Type: application/json" \
-d '{
"client_id": "your_client_id",
"client_secret": "your_client_secret"
}'
# Response: { "access_token": "...", "token_type": "jwt", "expires_in": 3600 }Common Endpoints
| Resource | Endpoint | Methods |
| Defects | /api/shared_spaces/{space_id}/workspaces/{ws_id}/defects | GET, POST, PUT |
| Tests | /api/shared_spaces/{space_id}/workspaces/{ws_id}/tests | GET, POST |
| Runs | /api/shared_spaces/{space_id}/workspaces/{ws_id}/runs | GET, POST |
| Requirements | /api/shared_spaces/{space_id}/workspaces/{ws_id}/requirements | GET, POST |
| Users | /api/shared_spaces/{space_id}/workspaces/{ws_id}/workspace_users | GET |
Fetch Defects
curl -X GET "https://octane.example.com/api/shared_spaces/1001/workspaces/1002/defects?query=%22severity%20EQ%20%5C%221%5C%22%22" \
-H "Authorization: jwt $TOKEN"2. Python Integration
import requests
class OctaneClient:
def __init__(self, base_url, client_id, client_secret, space_id, workspace_id):
self.base_url = base_url.rstrip('/')
self.space_id = space_id
self.workspace_id = workspace_id
self.session = requests.Session()
self._authenticate(client_id, client_secret)
def _authenticate(self, client_id, client_secret):
resp = self.session.post(
f"{self.base_url}/authentication/sign_in",
json={"client_id": client_id, "client_secret": client_secret}
)
resp.raise_for_status()
token = resp.json()["access_token"]
self.session.headers.update({"Authorization": f"jwt {token}"})
def get_defects(self, query=None, limit=100):
params = {"limit": limit}
if query:
params["query"] = f'"{query}"'
return self.session.get(
f"{self.base_url}/api/shared_spaces/{self.space_id}/workspaces/{self.workspace_id}/defects",
params=params
).json()
def create_defect(self, name, severity, owner_email):
payload = {
"name": name,
"severity": {"id": severity},
"phase": {"id": "phase.defect.new"},
"owner": {"type": "workspace_user", "email": owner_email},
}
return self.session.post(
f"{self.base_url}/api/shared_spaces/{self.space_id}/workspaces/{self.workspace_id}/defects",
json=payload
).json()
def update_run_result(self, run_id, status):
payload = {
"id": run_id,
"status": {"id": f"list_node.run_status.{status}"}
}
return self.session.put(
f"{self.base_url}/api/shared_spaces/{self.space_id}/workspaces/{self.workspace_id}/runs/{run_id}",
json=payload
).json()3. Entity Types and Fields
| Entity | Common Fields |
| Defect | name, severity, priority, phase, owner, detected_in_release, description, story_points |
| Test | name, test_type, phase, owner, description, steps, covered_requirements |
| Run | name, status, duration, native_status, started, ended, test, test_run |
| Requirement | name, phase, author, description, covered_by_tests, story_points |
Severity Levels
| ID | Name |
| 1 | Critical |
| 2 | High |
| 3 | Medium |
| 4 | Low |
Status Values
| Entity | Status |
| Defect | new, open, fixed, closed, rejected, reopened |
| Test | draft, ready, obsolete |
| Run | passed, failed, blocked, skipped, not_completed |
4. Defect Management Workflow
New → Open → Fixed → Closed
| |
+----> ReopenedAutomated Defect Creation from CI
def report_test_failure(test_name, error_msg, build_id):
client = OctaneClient(...)
defect = client.create_defect(
name=f"[Build {build_id}] {test_name} failed",
severity=2, # High
owner_email="qa-lead@example.com"
)
# Add comment with stack trace
client.session.post(
f"{client.base_url}/api/shared_spaces/{client.space_id}/workspaces/{client.workspace_id}/comments",
json={
"text": error_msg,
"owner_work_item": {"type": "defect", "id": defect["id"]}
}
)
return defect["id"]5. Test Automation Integration
Upload Test Results
def upload_junit_results(xml_path, release_id, pipeline_name):
client = OctaneClient(...)
# Parse JUnit XML
import xml.etree.ElementTree as ET
tree = ET.parse(xml_path)
root = tree.getroot()
for testcase in root.iter('testcase'):
test_name = testcase.get('name')
duration = int(float(testcase.get('time', 0)) * 1000)
status = 'passed'
if testcase.find('failure') is not None:
status = 'failed'
elif testcase.find('skipped') is not None:
status = 'skipped'
# Create run
payload = {
"name": test_name,
"status": {"id": f"list_node.run_status.{status}"},
"duration": duration,
"test": {"type": "test_manual", "name": test_name},
"release": {"type": "release", "id": release_id},
"pipeline": pipeline_name,
}
client.session.post(
f"{client.base_url}/api/shared_spaces/{client.space_id}/workspaces/{client.workspace_id}/runs",
json=payload
)6. CI/CD Pipeline Reporting
GitLab CI Integration
report-octane:
stage: report
script:
- pip install requests
- python report_to_octane.py --build-id $CI_PIPELINE_ID --results results.xml
only:
- merge_requests
- main# report_to_octane.py
import argparse
from octane_client import OctaneClient
parser = argparse.ArgumentParser()
parser.add_argument("--build-id")
parser.add_argument("--results")
args = parser.parse_args()
client = OctaneClient.from_env()
upload_junit_results(args.results, release_id="release_2024_1", pipeline_name=args.build_id)7. Dashboards and Reporting
- Use OCTANE widgets for real-time dashboards.
- Track defect aging by phase.
- Monitor test coverage by requirement.
- Measure automation ratio (automated vs manual runs).
- Generate pipeline health reports.
8. Best Practices
- Use dedicated API users with minimal permissions.
- Cache access tokens; refresh before expiry.
- Use query parameters to limit result sets.
- Handle pagination with
offsetandlimit. - Log all API calls for audit trails.
- Map Octane defects to source control commits for traceability.
- Use custom fields for project-specific metadata.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

