@orion-qa/orion 3.0.0 → 3.2.0
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.
- package/.claude/agents/automation-strategist.md +1 -0
- package/.claude/agents/change-agent.md +1 -0
- package/.claude/agents/codebase-analyst.md +2 -1
- package/.claude/agents/environment-discovery.md +1 -0
- package/.claude/agents/evidence-validator.md +1 -0
- package/.claude/agents/executor.md +1 -0
- package/.claude/agents/failure-analyst.md +2 -1
- package/.claude/agents/implementer.md +2 -1
- package/.claude/agents/requirement-analyst.md +1 -0
- package/.claude/agents/reviewer.md +1 -0
- package/.claude/agents/test-reporter.md +1 -0
- package/.claude/settings.json +25 -0
- package/.claude/skills/appium/SKILL.md +1 -1
- package/.claude/skills/appium/templates/README.md +6 -9
- package/.claude/skills/appium/templates/ci/github-actions-android.yml +8 -2
- package/.claude/skills/appium/templates/ci/github-actions-ios.yml +8 -2
- package/.claude/skills/appium/templates/ci/github-actions-windows.yml +9 -2
- package/.claude/skills/appium/templates/project-java/.env.example +4 -0
- package/.claude/skills/appium/templates/project-java/pom.xml +2 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework/Config.java → config/Env.java} +43 -52
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/config/Flags.java +45 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/config/Paths.java +14 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/desc/SignInDesc.java +30 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework → driver}/DriverFactory.java +19 -13
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework → driver}/DriverManager.java +12 -9
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/fixtures/BaseTest.java +75 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/{screens → pageObjects}/BaseScreen.java +12 -12
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/pageObjects/HomeScreen.java +26 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/pageObjects/LoginScreen.java +63 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/pageObjects/ShellScreen.java +26 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/setup/AuthSetup.java +49 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/testData/TestData.java +78 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/ui/SignInTest.java +45 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/unit/UtilsTest.java +34 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework → utils}/AutomationError.java +4 -4
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Case.java +20 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/CaseTransformer.java +54 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Dates.java +42 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Log.java +45 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/MissingSettingError.java +13 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/RandomData.java +41 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Redact.java +33 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/TestDescription.java +25 -0
- package/.claude/skills/appium/templates/project-java/src/test/resources/testData/testData.properties +7 -0
- package/.claude/skills/appium/templates/project-java/testng.xml +11 -4
- package/.claude/skills/architecture-analysis/SKILL.md +3 -2
- package/.claude/skills/automation-implementation/SKILL.md +8 -5
- package/.claude/skills/automation-implementation/references/patterns.md +46 -24
- package/.claude/skills/automation-review/references/assertion-guard.md +1 -1
- package/.claude/skills/code-review/SKILL.md +5 -2
- package/.claude/skills/code-review/references/pattern-rules.md +12 -7
- package/.claude/skills/documentation/SKILL.md +23 -18
- package/.claude/skills/execution/SKILL.md +7 -3
- package/.claude/skills/httpclient/templates/README.md +6 -7
- package/.claude/skills/httpclient/templates/csharp-nunit/.env.example +4 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Automation.csproj +7 -3
- package/.claude/skills/httpclient/templates/csharp-nunit/Config/Env.cs +62 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Config/Flags.cs +35 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Config/Paths.cs +22 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Fixtures/BaseTest.cs +22 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Resources/Desc/ProductsDesc.cs +22 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Resources/TestData/TestData.cs +61 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Resources/TestData/testData.json +9 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Services/ApiClient.cs +48 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Services/HealthApi.cs +11 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/{Api → Services}/ProductsApi.cs +8 -5
- package/.claude/skills/httpclient/templates/csharp-nunit/Tests/Api/ProductsTests.cs +61 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Tests/Unit/UtilsTests.cs +40 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Utils/AutomationError.cs +15 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Utils/Dates.cs +18 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Utils/Log.cs +37 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Utils/RandomData.cs +26 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Utils/Redact.cs +22 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Utils/TestDescription.cs +55 -0
- package/.claude/skills/javascript/references/sources.md +1 -1
- package/.claude/skills/k6/SKILL.md +1 -1
- package/.claude/skills/k6/templates/README.md +5 -3
- package/.claude/skills/k6/templates/project/{data/cases.js → resources/desc/products.desc.js} +1 -1
- package/.claude/skills/k6/templates/project/resources/testData/testData.js +32 -0
- package/.claude/skills/k6/templates/project/{lib/config.js → src/config/env.js} +10 -5
- package/.claude/skills/k6/templates/project/{lib → src/services}/products-api.js +7 -5
- package/.claude/skills/k6/templates/project/{load → tests/load}/products.js +8 -8
- package/.claude/skills/karate/templates/README.md +4 -5
- package/.claude/skills/karate/templates/java-junit5/.env.example +2 -0
- package/.claude/skills/karate/templates/java-junit5/pom.xml +4 -0
- package/.claude/skills/karate/templates/java-junit5/src/test/java/{support → config}/EnvSettings.java +1 -1
- package/.claude/skills/karate/templates/java-junit5/src/test/java/karate-config.js +13 -6
- package/.claude/skills/karate/templates/java-junit5/src/test/java/logback-test.xml +1 -1
- package/.claude/skills/karate/templates/java-junit5/src/test/java/{api → tests}/ApiTest.java +7 -4
- package/.claude/skills/karate/templates/java-junit5/src/test/java/{api → tests/api}/health.feature +3 -3
- package/.claude/skills/karate/templates/java-junit5/src/test/java/tests/api/products.feature +29 -0
- package/.claude/skills/karate/templates/java-junit5/src/test/java/{support → utils}/MaskingLogModifier.java +1 -1
- package/.claude/skills/karate/templates/java-junit5/src/test/resources/testData/newProduct.js +7 -0
- package/.claude/skills/karate/templates/java-junit5/src/test/resources/testData/testData.json +6 -0
- package/.claude/skills/newman/templates/README.md +4 -5
- package/.claude/skills/newman/templates/collection/.env.example +2 -0
- package/.claude/skills/newman/templates/collection/collections/api.postman_collection.json +165 -145
- package/.claude/skills/newman/templates/collection/package.json +2 -1
- package/.claude/skills/newman/templates/collection/resources/desc/products.desc.json +53 -0
- package/.claude/skills/newman/templates/collection/resources/testData/testData.json +10 -0
- package/.claude/skills/newman/templates/collection/run.js +41 -31
- package/.claude/skills/newman/templates/collection/src/config/env.js +37 -0
- package/.claude/skills/orion/SKILL.md +19 -12
- package/.claude/skills/orion/references/assess-fix.md +35 -0
- package/.claude/skills/orion/references/batch.md +64 -0
- package/.claude/skills/orion/references/blockers.md +1 -1
- package/.claude/skills/orion/references/capabilities.md +1 -1
- package/.claude/skills/orion/references/conversation.md +65 -20
- package/.claude/skills/orion/references/delivery-formats.md +24 -36
- package/.claude/skills/orion/references/doctor.md +1 -1
- package/.claude/skills/orion/references/hosts.md +1 -0
- package/.claude/skills/orion/references/modes.md +7 -3
- package/.claude/skills/orion/references/plain-language.md +55 -0
- package/.claude/skills/orion/references/project-context-files.md +8 -2
- package/.claude/skills/orion/references/recovery-loop.md +8 -0
- package/.claude/skills/orion/references/setup-card.md +29 -8
- package/.claude/skills/orion/references/status-lines.md +9 -4
- package/.claude/skills/orion/references/task-brief.md +1 -0
- package/.claude/skills/orion/references/work-branch.md +3 -1
- package/.claude/skills/orion/scripts/batch_detect.mjs +98 -0
- package/.claude/skills/orion/scripts/batch_state.mjs +179 -0
- package/.claude/skills/orion/scripts/browser_setup.mjs +41 -21
- package/.claude/skills/orion/scripts/cases_export.py +724 -0
- package/.claude/skills/orion/scripts/codemap.mjs +116 -0
- package/.claude/skills/orion/scripts/done_check.mjs +195 -0
- package/.claude/skills/orion/scripts/env_check.mjs +8 -3
- package/.claude/skills/orion/scripts/env_check.py +12 -5
- package/.claude/skills/orion/scripts/fix_plan.mjs +170 -0
- package/.claude/skills/orion/scripts/graph.mjs +400 -0
- package/.claude/skills/orion/scripts/hooks/lean_guard.mjs +162 -0
- package/.claude/skills/orion/scripts/lib/inside.mjs +31 -0
- package/.claude/skills/orion/scripts/lib/scan.mjs +357 -0
- package/.claude/skills/orion/scripts/lib/table.mjs +116 -0
- package/.claude/skills/orion/scripts/parity_check.mjs +166 -0
- package/.claude/skills/orion/scripts/quiet.mjs +160 -0
- package/.claude/skills/orion/scripts/report_check.mjs +77 -0
- package/.claude/skills/orion/scripts/results_parse.mjs +209 -0
- package/.claude/skills/orion/scripts/reuse_check.mjs +251 -0
- package/.claude/skills/orion/scripts/rules.mjs +92 -0
- package/.claude/skills/orion/scripts/run_state.mjs +238 -0
- package/.claude/skills/orion/scripts/suite_check.mjs +267 -0
- package/.claude/skills/orion/scripts/timing_profile.mjs +128 -0
- package/.claude/skills/orion/scripts/usage_report.mjs +315 -0
- package/.claude/skills/orion/templates/project-context/assessment.md +45 -0
- package/.claude/skills/orion/templates/project-context/defects.md +5 -0
- package/.claude/skills/orion/templates/project-context/report.md +45 -0
- package/.claude/skills/orion/templates/project-context/retry-policy.md +6 -0
- package/.claude/skills/orion/templates/project-context/run.md +4 -1
- package/.claude/skills/orion/templates/project-context/test-case-map.md +5 -0
- package/.claude/skills/orion/templates/project-context/test-design.md +24 -0
- package/.claude/skills/pact/SKILL.md +2 -2
- package/.claude/skills/pact/templates/README.md +4 -2
- package/.claude/skills/pact/templates/project/package.json +2 -2
- package/.claude/skills/pact/templates/project/{data/cases.js → resources/desc/products.desc.js} +3 -3
- package/.claude/skills/pact/templates/project/resources/testData/testData.js +21 -0
- package/.claude/skills/pact/templates/project/src/config/env.js +32 -0
- package/.claude/skills/pact/templates/project/src/{products-client.js → services/products-client.js} +4 -2
- package/.claude/skills/pact/templates/project/tests/contract/products.contract.test.js +46 -0
- package/.claude/skills/pact/templates/project/{verify → tests/verify}/products.verify.js +7 -22
- package/.claude/skills/playwright/SKILL.md +6 -6
- package/.claude/skills/playwright/templates/README.md +29 -10
- package/.claude/skills/playwright/templates/ci/Jenkinsfile +1 -1
- package/.claude/skills/playwright/templates/ci/azure-pipelines.yml +1 -1
- package/.claude/skills/playwright/templates/ci/github-actions-javascript.yml +1 -1
- package/.claude/skills/playwright/templates/ci/github-actions.yml +1 -1
- package/.claude/skills/playwright/templates/ci/gitlab-ci.yml +1 -1
- package/.claude/skills/playwright/templates/dotnet/.env.example +7 -0
- package/.claude/skills/playwright/templates/dotnet/.runsettings +17 -0
- package/.claude/skills/playwright/templates/dotnet/Automation.csproj +8 -0
- package/.claude/skills/playwright/templates/dotnet/Config/Env.cs +89 -0
- package/.claude/skills/playwright/templates/dotnet/Config/Flags.cs +56 -0
- package/.claude/skills/playwright/templates/dotnet/Config/Paths.cs +31 -0
- package/.claude/skills/playwright/templates/dotnet/Fixtures/ApiBaseTest.cs +39 -0
- package/.claude/skills/playwright/templates/dotnet/Fixtures/BaseTest.cs +72 -0
- package/.claude/skills/playwright/templates/dotnet/PageObjects/BasePage.cs +63 -0
- package/.claude/skills/playwright/templates/dotnet/PageObjects/HomePage.cs +21 -0
- package/.claude/skills/playwright/templates/dotnet/PageObjects/LoginPage.cs +54 -0
- package/.claude/skills/playwright/templates/dotnet/PageObjects/ShellPage.cs +29 -0
- package/.claude/skills/playwright/templates/dotnet/Resources/Desc/SignInDesc.cs +23 -0
- package/.claude/skills/playwright/templates/dotnet/Resources/TestData/TestData.cs +74 -0
- package/.claude/skills/playwright/templates/dotnet/Resources/TestData/testData.json +19 -0
- package/.claude/skills/playwright/templates/dotnet/Services/ApiClient.cs +51 -0
- package/.claude/skills/playwright/templates/dotnet/Setup/AuthSetup.cs +63 -0
- package/.claude/skills/playwright/templates/dotnet/Tests/Api/SessionTests.cs +18 -0
- package/.claude/skills/playwright/templates/dotnet/Tests/Ui/SignInTests.cs +48 -0
- package/.claude/skills/playwright/templates/dotnet/Tests/Unit/UtilsTests.cs +40 -0
- package/.claude/skills/playwright/templates/dotnet/Utils/AutomationError.cs +15 -0
- package/.claude/skills/playwright/templates/dotnet/Utils/Dates.cs +18 -0
- package/.claude/skills/playwright/templates/dotnet/Utils/Log.cs +37 -0
- package/.claude/skills/playwright/templates/dotnet/Utils/RandomData.cs +26 -0
- package/.claude/skills/playwright/templates/dotnet/Utils/Redact.cs +22 -0
- package/.claude/skills/playwright/templates/dotnet/Utils/TestDescription.cs +55 -0
- package/.claude/skills/playwright/templates/dotnet/gitignore +6 -1
- package/.claude/skills/playwright/templates/javascript/.env.example +8 -0
- package/.claude/skills/playwright/templates/javascript/fixtures/index.js +85 -0
- package/.claude/skills/playwright/templates/javascript/fixtures/session.js +82 -0
- package/.claude/skills/playwright/templates/javascript/gitignore +7 -0
- package/.claude/skills/playwright/templates/javascript/jsconfig.json +12 -0
- package/.claude/skills/playwright/templates/javascript/package.json +7 -3
- package/.claude/skills/playwright/templates/javascript/pageObjects/basePage.js +62 -0
- package/.claude/skills/playwright/templates/javascript/pageObjects/homePage.js +19 -0
- package/.claude/skills/playwright/templates/javascript/pageObjects/loginPage.js +44 -0
- package/.claude/skills/playwright/templates/javascript/pageObjects/shellPage.js +26 -0
- package/.claude/skills/playwright/templates/javascript/playwright.config.js +45 -24
- package/.claude/skills/playwright/templates/javascript/reporters/summaryReporter.js +233 -0
- package/.claude/skills/playwright/templates/javascript/resources/desc/signIn.desc.js +33 -0
- package/.claude/skills/playwright/templates/javascript/resources/testData/testData.js +45 -0
- package/.claude/skills/playwright/templates/javascript/setup/auth.setup.js +17 -0
- package/.claude/skills/playwright/templates/javascript/setup/auth.teardown.js +16 -0
- package/.claude/skills/playwright/templates/javascript/src/config/env.js +107 -0
- package/.claude/skills/playwright/templates/javascript/src/config/flags.js +70 -0
- package/.claude/skills/playwright/templates/javascript/src/config/loadEnv.js +21 -0
- package/.claude/skills/playwright/templates/javascript/src/config/paths.js +22 -0
- package/.claude/skills/playwright/templates/javascript/src/services/apiClient.js +68 -0
- package/.claude/skills/playwright/templates/javascript/tests/api/session.spec.js +15 -0
- package/.claude/skills/playwright/templates/javascript/tests/ui/signIn.spec.js +35 -0
- package/.claude/skills/playwright/templates/javascript/tests/unit/summaryReporter.test.js +34 -0
- package/.claude/skills/playwright/templates/javascript/tests/unit/utils.test.js +31 -0
- package/.claude/skills/playwright/templates/javascript/utils/date.js +28 -0
- package/.claude/skills/playwright/templates/javascript/{src → utils}/errors.js +1 -0
- package/.claude/skills/playwright/templates/javascript/utils/formFill.js +29 -0
- package/.claude/skills/playwright/templates/javascript/utils/logger.js +33 -0
- package/.claude/skills/playwright/templates/javascript/utils/random.js +37 -0
- package/.claude/skills/playwright/templates/javascript/utils/redact.js +35 -0
- package/.claude/skills/playwright/templates/javascript/utils/titles.js +38 -0
- package/.claude/skills/playwright/templates/project/.env.example +8 -0
- package/.claude/skills/playwright/templates/project/fixtures/index.ts +86 -0
- package/.claude/skills/playwright/templates/project/fixtures/session.ts +78 -0
- package/.claude/skills/playwright/templates/project/gitignore +9 -2
- package/.claude/skills/playwright/templates/project/package.json +8 -6
- package/.claude/skills/playwright/templates/project/pageObjects/basePage.ts +57 -0
- package/.claude/skills/playwright/templates/project/pageObjects/homePage.ts +20 -0
- package/.claude/skills/playwright/templates/project/pageObjects/loginPage.ts +47 -0
- package/.claude/skills/playwright/templates/project/pageObjects/shellPage.ts +22 -0
- package/.claude/skills/playwright/templates/project/playwright.config.ts +49 -23
- package/.claude/skills/playwright/templates/project/reporters/summaryReporter.ts +241 -0
- package/.claude/skills/playwright/templates/project/resources/desc/signIn.desc.ts +32 -0
- package/.claude/skills/playwright/templates/project/resources/testData/testData.ts +42 -0
- package/.claude/skills/playwright/templates/project/setup/auth.setup.ts +16 -0
- package/.claude/skills/playwright/templates/project/setup/auth.teardown.ts +15 -0
- package/.claude/skills/playwright/templates/project/src/config/env.ts +109 -0
- package/.claude/skills/playwright/templates/project/src/config/flags.ts +70 -0
- package/.claude/skills/playwright/templates/project/src/config/loadEnv.ts +17 -0
- package/.claude/skills/playwright/templates/project/src/config/paths.ts +19 -0
- package/.claude/skills/playwright/templates/project/src/services/apiClient.ts +70 -0
- package/.claude/skills/playwright/templates/project/tests/api/session.spec.ts +14 -0
- package/.claude/skills/playwright/templates/project/tests/ui/signIn.spec.ts +34 -0
- package/.claude/skills/playwright/templates/project/tests/unit/summaryReporter.test.ts +33 -0
- package/.claude/skills/playwright/templates/project/tests/unit/utils.test.ts +30 -0
- package/.claude/skills/playwright/templates/project/tsconfig.json +3 -8
- package/.claude/skills/playwright/templates/project/utils/date.ts +25 -0
- package/.claude/skills/playwright/templates/project/utils/formFill.ts +27 -0
- package/.claude/skills/playwright/templates/project/utils/logger.ts +32 -0
- package/.claude/skills/playwright/templates/project/utils/random.ts +34 -0
- package/.claude/skills/playwright/templates/project/utils/redact.ts +32 -0
- package/.claude/skills/playwright/templates/project/utils/titles.ts +42 -0
- package/.claude/skills/playwright/templates/python/.env.example +8 -0
- package/.claude/skills/playwright/templates/python/conftest.py +91 -16
- package/.claude/skills/playwright/templates/python/gitignore +5 -0
- package/.claude/skills/playwright/templates/python/page_objects/__init__.py +1 -0
- package/.claude/skills/playwright/templates/python/page_objects/base_page.py +57 -0
- package/.claude/skills/playwright/templates/python/page_objects/home_page.py +22 -0
- package/.claude/skills/playwright/templates/python/page_objects/login_page.py +42 -0
- package/.claude/skills/playwright/templates/python/page_objects/shell_page.py +21 -0
- package/.claude/skills/playwright/templates/python/pytest.ini +5 -2
- package/.claude/skills/playwright/templates/python/requirements.txt +1 -0
- package/.claude/skills/playwright/templates/python/resources/__init__.py +1 -0
- package/.claude/skills/playwright/templates/python/resources/desc/__init__.py +1 -0
- package/.claude/skills/playwright/templates/python/resources/desc/sign_in_desc.py +27 -0
- package/.claude/skills/playwright/templates/python/resources/test_data/__init__.py +1 -0
- package/.claude/skills/playwright/templates/python/resources/test_data/test_data.py +41 -0
- package/.claude/skills/playwright/templates/python/setup/__init__.py +1 -0
- package/.claude/skills/playwright/templates/python/setup/auth.py +53 -0
- package/.claude/skills/playwright/templates/python/src/__init__.py +1 -0
- package/.claude/skills/playwright/templates/python/src/config/__init__.py +1 -0
- package/.claude/skills/playwright/templates/python/src/config/env.py +109 -0
- package/.claude/skills/playwright/templates/python/src/config/flags.py +63 -0
- package/.claude/skills/playwright/templates/python/src/config/load_env.py +16 -0
- package/.claude/skills/playwright/templates/python/src/config/paths.py +25 -0
- package/.claude/skills/playwright/templates/python/src/services/__init__.py +1 -0
- package/.claude/skills/playwright/templates/python/src/services/api_client.py +60 -0
- package/.claude/skills/playwright/templates/python/tests/api/test_session.py +14 -0
- package/.claude/skills/playwright/templates/python/tests/ui/test_sign_in.py +36 -0
- package/.claude/skills/playwright/templates/python/tests/unit/test_utils.py +32 -0
- package/.claude/skills/playwright/templates/python/utils/__init__.py +1 -0
- package/.claude/skills/playwright/templates/python/utils/dates.py +23 -0
- package/.claude/skills/playwright/templates/python/{framework → utils}/errors.py +3 -2
- package/.claude/skills/playwright/templates/python/utils/form_fill.py +26 -0
- package/.claude/skills/playwright/templates/python/utils/logger.py +40 -0
- package/.claude/skills/playwright/templates/python/utils/markers.py +6 -0
- package/.claude/skills/playwright/templates/python/utils/random_data.py +35 -0
- package/.claude/skills/playwright/templates/python/utils/redact.py +30 -0
- package/.claude/skills/playwright/templates/python/utils/titles.py +53 -0
- package/.claude/skills/quality-checks/SKILL.md +11 -11
- package/.claude/skills/quality-checks/templates/README.md +14 -12
- package/.claude/skills/quality-checks/templates/playwright-js/pageObjects/scannedPage.js +21 -0
- package/.claude/skills/quality-checks/templates/playwright-js/resources/desc/quality.desc.js +63 -0
- package/.claude/skills/quality-checks/templates/playwright-js/resources/testData/qualityData.js +32 -0
- package/.claude/skills/quality-checks/templates/playwright-js/src/checks/accessibility.js +50 -0
- package/.claude/skills/quality-checks/templates/playwright-js/src/checks/pageHealth.js +38 -0
- package/.claude/skills/quality-checks/templates/playwright-js/src/checks/performance.js +21 -0
- package/.claude/skills/quality-checks/templates/playwright-js/src/services/graphqlClient.js +28 -0
- package/.claude/skills/quality-checks/templates/playwright-js/tests/api/graphql.spec.js +23 -0
- package/.claude/skills/quality-checks/templates/playwright-js/tests/ui/quality.spec.js +50 -0
- package/.claude/skills/quality-checks/templates/playwright-ts/pageObjects/scannedPage.ts +20 -0
- package/.claude/skills/quality-checks/templates/playwright-ts/resources/desc/quality.desc.ts +59 -0
- package/.claude/skills/quality-checks/templates/playwright-ts/{src/data/quality.data.ts → resources/testData/qualityData.ts} +3 -2
- package/.claude/skills/quality-checks/templates/playwright-ts/tests/api/graphql.spec.ts +22 -0
- package/.claude/skills/quality-checks/templates/playwright-ts/tests/ui/quality.spec.ts +49 -0
- package/.claude/skills/requests/templates/README.md +6 -7
- package/.claude/skills/requests/templates/python-pytest/.env.example +4 -0
- package/.claude/skills/requests/templates/python-pytest/conftest.py +24 -9
- package/.claude/skills/requests/templates/python-pytest/pytest.ini +6 -3
- package/.claude/skills/requests/templates/python-pytest/requirements.txt +1 -0
- package/.claude/skills/requests/templates/python-pytest/resources/__init__.py +1 -0
- package/.claude/skills/requests/templates/python-pytest/resources/desc/__init__.py +1 -0
- package/.claude/skills/requests/templates/python-pytest/resources/desc/products_desc.py +27 -0
- package/.claude/skills/requests/templates/python-pytest/resources/test_data/__init__.py +1 -0
- package/.claude/skills/requests/templates/python-pytest/resources/test_data/test_data.py +27 -0
- package/.claude/skills/requests/templates/python-pytest/src/__init__.py +1 -0
- package/.claude/skills/requests/templates/python-pytest/src/config/__init__.py +1 -0
- package/.claude/skills/requests/templates/python-pytest/src/config/env.py +39 -0
- package/.claude/skills/requests/templates/python-pytest/src/config/flags.py +35 -0
- package/.claude/skills/requests/templates/python-pytest/src/config/load_env.py +16 -0
- package/.claude/skills/requests/templates/python-pytest/src/config/paths.py +16 -0
- package/.claude/skills/requests/templates/python-pytest/src/services/__init__.py +1 -0
- package/.claude/skills/requests/templates/python-pytest/{api/client.py → src/services/api_client.py} +19 -10
- package/.claude/skills/requests/templates/python-pytest/{api → src/services}/products_api.py +3 -9
- package/.claude/skills/requests/templates/python-pytest/tests/api/test_products.py +35 -0
- package/.claude/skills/requests/templates/python-pytest/tests/unit/test_utils.py +32 -0
- package/.claude/skills/requests/templates/python-pytest/utils/__init__.py +1 -0
- package/.claude/skills/requests/templates/python-pytest/utils/dates.py +23 -0
- package/.claude/skills/{selenium/templates/python-pytest/framework → requests/templates/python-pytest/utils}/errors.py +4 -3
- package/.claude/skills/requests/templates/python-pytest/utils/logger.py +40 -0
- package/.claude/skills/requests/templates/python-pytest/utils/random_data.py +35 -0
- package/.claude/skills/requests/templates/python-pytest/utils/redact.py +30 -0
- package/.claude/skills/requests/templates/python-pytest/utils/titles.py +53 -0
- package/.claude/skills/requirement-analysis/SKILL.md +1 -1
- package/.claude/skills/rest-assured/SKILL.md +1 -1
- package/.claude/skills/rest-assured/templates/README.md +6 -7
- package/.claude/skills/rest-assured/templates/ci/github-actions.yml +5 -2
- package/.claude/skills/rest-assured/templates/java-testng/.env.example +3 -0
- package/.claude/skills/rest-assured/templates/java-testng/pom.xml +7 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/{api/ApiConfig.java → config/Env.java} +35 -22
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/config/Flags.java +17 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/config/Paths.java +14 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/desc/ProductsDesc.java +26 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/fixtures/BaseTest.java +29 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/services/ApiSpec.java +31 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/services/HealthApi.java +17 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/{api → services}/ProductsApi.java +19 -14
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/{data → testData}/ProductBuilder.java +4 -8
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/testData/TestData.java +64 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/api/ProductsTest.java +49 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/unit/UtilsTest.java +34 -0
- package/.claude/skills/{selenium/templates/java-testng/src/test/java/automation/framework → rest-assured/templates/java-testng/src/test/java/automation/utils}/AutomationError.java +4 -4
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Case.java +20 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/CaseTransformer.java +54 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Dates.java +42 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Log.java +45 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/MissingSettingError.java +13 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/RandomData.java +41 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Redact.java +33 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/TestDescription.java +25 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/resources/testData/testData.properties +14 -0
- package/.claude/skills/rest-assured/templates/java-testng/testng.xml +14 -0
- package/.claude/skills/selenium/SKILL.md +1 -1
- package/.claude/skills/selenium/templates/README.md +25 -13
- package/.claude/skills/selenium/templates/ci/github-actions-java.yml +5 -2
- package/.claude/skills/selenium/templates/csharp-nunit/.env.example +15 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Automation.csproj +7 -0
- package/.claude/skills/selenium/templates/csharp-nunit/{Framework/Config.cs → Config/Env.cs} +33 -34
- package/.claude/skills/selenium/templates/csharp-nunit/Config/Flags.cs +39 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Config/Paths.cs +31 -0
- package/.claude/skills/selenium/templates/csharp-nunit/{Framework → Driver}/DriverFactory.cs +16 -13
- package/.claude/skills/selenium/templates/csharp-nunit/Driver/DriverManager.cs +27 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Fixtures/BaseTest.cs +56 -0
- package/.claude/skills/selenium/templates/csharp-nunit/{Pages → PageObjects}/BasePage.cs +44 -14
- package/.claude/skills/selenium/templates/csharp-nunit/PageObjects/HomePage.cs +21 -0
- package/.claude/skills/selenium/templates/csharp-nunit/PageObjects/LoginPage.cs +53 -0
- package/.claude/skills/selenium/templates/csharp-nunit/PageObjects/ShellPage.cs +22 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Resources/Desc/SignInDesc.cs +23 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Resources/TestData/TestData.cs +74 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Resources/TestData/testData.json +14 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Services/ApiClient.cs +71 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Setup/AuthSetup.cs +104 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Tests/Api/SessionTests.cs +23 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Tests/Ui/SignInTests.cs +42 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Tests/Unit/UtilsTests.cs +40 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Utils/AutomationError.cs +15 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Utils/Dates.cs +18 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Utils/FormFill.cs +20 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Utils/Log.cs +37 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Utils/RandomData.cs +26 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Utils/Redact.cs +22 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Utils/TestDescription.cs +55 -0
- package/.claude/skills/selenium/templates/csharp-nunit/gitignore +6 -2
- package/.claude/skills/selenium/templates/java-testng/.env.example +12 -0
- package/.claude/skills/selenium/templates/java-testng/gitignore +5 -2
- package/.claude/skills/selenium/templates/java-testng/pom.xml +2 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{framework/Config.java → config/Env.java} +45 -55
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/config/Flags.java +50 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/config/Paths.java +20 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/desc/SignInDesc.java +30 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{framework → driver}/DriverFactory.java +15 -12
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{framework → driver}/DriverManager.java +4 -7
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/fixtures/BaseTest.java +87 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{pages → pageObjects}/BasePage.java +41 -17
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pageObjects/HomePage.java +32 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pageObjects/LoginPage.java +69 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pageObjects/ShellPage.java +34 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/services/ApiClient.java +93 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/setup/AuthSetup.java +125 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/testData/TestData.java +88 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/api/SessionTest.java +23 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/ui/SignInTest.java +46 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/unit/UtilsTest.java +34 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/AutomationError.java +18 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Case.java +20 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/CaseTransformer.java +54 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Dates.java +42 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/FormFill.java +25 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Log.java +45 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/MissingSettingError.java +13 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/RandomData.java +41 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Redact.java +33 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/TestDescription.java +25 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/resources/testData/testData.properties +11 -0
- package/.claude/skills/selenium/templates/java-testng/testng.xml +15 -5
- package/.claude/skills/selenium/templates/python-pytest/.env.example +12 -0
- package/.claude/skills/selenium/templates/python-pytest/conftest.py +63 -12
- package/.claude/skills/selenium/templates/python-pytest/gitignore +7 -2
- package/.claude/skills/selenium/templates/python-pytest/page_objects/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/{pages → page_objects}/base_page.py +20 -20
- package/.claude/skills/selenium/templates/python-pytest/page_objects/home_page.py +17 -0
- package/.claude/skills/selenium/templates/python-pytest/{pages → page_objects}/login_page.py +12 -14
- package/.claude/skills/selenium/templates/python-pytest/page_objects/shell_page.py +16 -0
- package/.claude/skills/selenium/templates/python-pytest/pytest.ini +6 -2
- package/.claude/skills/selenium/templates/python-pytest/requirements.txt +1 -0
- package/.claude/skills/selenium/templates/python-pytest/resources/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/resources/desc/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/resources/desc/sign_in_desc.py +27 -0
- package/.claude/skills/selenium/templates/python-pytest/resources/test_data/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/resources/test_data/test_data.py +25 -0
- package/.claude/skills/selenium/templates/python-pytest/setup/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/setup/auth.py +60 -0
- package/.claude/skills/selenium/templates/python-pytest/src/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/src/config/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/src/config/env.py +68 -0
- package/.claude/skills/selenium/templates/python-pytest/src/config/flags.py +40 -0
- package/.claude/skills/selenium/templates/python-pytest/src/config/load_env.py +16 -0
- package/.claude/skills/selenium/templates/python-pytest/src/config/paths.py +25 -0
- package/.claude/skills/selenium/templates/python-pytest/src/driver/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/{framework → src/driver}/driver_factory.py +11 -18
- package/.claude/skills/selenium/templates/python-pytest/{framework → src/driver}/driver_manager.py +3 -3
- package/.claude/skills/selenium/templates/python-pytest/src/services/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/src/services/api_client.py +89 -0
- package/.claude/skills/selenium/templates/python-pytest/tests/api/test_session.py +11 -0
- package/.claude/skills/selenium/templates/python-pytest/tests/ui/test_sign_in.py +34 -0
- package/.claude/skills/selenium/templates/python-pytest/tests/unit/test_utils.py +32 -0
- package/.claude/skills/selenium/templates/python-pytest/utils/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/utils/dates.py +23 -0
- package/.claude/skills/selenium/templates/python-pytest/utils/errors.py +28 -0
- package/.claude/skills/selenium/templates/python-pytest/utils/form_fill.py +29 -0
- package/.claude/skills/selenium/templates/python-pytest/utils/logger.py +40 -0
- package/.claude/skills/selenium/templates/python-pytest/utils/markers.py +6 -0
- package/.claude/skills/selenium/templates/python-pytest/utils/random_data.py +35 -0
- package/.claude/skills/selenium/templates/python-pytest/utils/redact.py +30 -0
- package/.claude/skills/selenium/templates/python-pytest/utils/titles.py +53 -0
- package/.claude/skills/self-healing/SKILL.md +2 -2
- package/.claude/skills/test-design/SKILL.md +1 -1
- package/.claude/skills/test-reporting/references/tool-mapping.md +13 -9
- package/.claude/skills/ui-observation/SKILL.md +8 -6
- package/.claude/skills/ui-observation/references/login-methods.md +1 -1
- package/.claude-plugin/plugin.json +15 -2
- package/.codex/agents/automation-strategist.toml +1 -0
- package/.codex/agents/change-agent.toml +1 -0
- package/.codex/agents/codebase-analyst.toml +1 -0
- package/.codex/agents/environment-discovery.toml +1 -0
- package/.codex/agents/evidence-validator.toml +1 -0
- package/.codex/agents/executor.toml +1 -0
- package/.codex/agents/failure-analyst.toml +1 -0
- package/.codex/agents/implementer.toml +2 -1
- package/.codex/agents/requirement-analyst.toml +1 -0
- package/.codex/agents/reviewer.toml +1 -0
- package/.codex/agents/test-reporter.toml +1 -0
- package/.codex/hooks.json +15 -0
- package/.cursor/commands/orion.md +1 -1
- package/.cursor/hooks.json +10 -0
- package/.devin/hooks.v1.json +13 -0
- package/.gemini/agents/automation-strategist.md +1 -0
- package/.gemini/agents/change-agent.md +1 -0
- package/.gemini/agents/codebase-analyst.md +1 -0
- package/.gemini/agents/environment-discovery.md +1 -0
- package/.gemini/agents/evidence-validator.md +1 -0
- package/.gemini/agents/executor.md +1 -0
- package/.gemini/agents/failure-analyst.md +1 -0
- package/.gemini/agents/implementer.md +2 -1
- package/.gemini/agents/requirement-analyst.md +1 -0
- package/.gemini/agents/reviewer.md +1 -0
- package/.gemini/agents/test-reporter.md +1 -0
- package/.gemini/commands/orion.toml +2 -2
- package/.github/hooks/orion-lean.json +13 -0
- package/.github/prompts/orion.prompt.md +2 -2
- package/.windsurf/workflows/orion.md +2 -2
- package/AGENTS.md +6 -6
- package/README.md +55 -140
- package/assets/architecture.svg +104 -0
- package/assets/run-flow.svg +1 -1
- package/bin/orion.mjs +6 -6
- package/hosts/gemini-extension/gemini-extension.json +1 -1
- package/hosts/gemini-extension/hooks/hooks.json +16 -0
- package/hosts/gemini-extension/policies/platform.toml +5 -0
- package/package.json +6 -1
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/data/Cases.java +0 -37
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/data/SignInData.java +0 -25
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/flows/SignInFlow.java +0 -34
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/framework/Account.java +0 -19
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/screens/HomeScreen.java +0 -36
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/screens/LoginScreen.java +0 -57
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/BaseTest.java +0 -33
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/SmokeTest.java +0 -17
- package/.claude/skills/httpclient/templates/csharp-nunit/Api/ApiClient.cs +0 -61
- package/.claude/skills/httpclient/templates/csharp-nunit/Api/ApiConfig.cs +0 -61
- package/.claude/skills/httpclient/templates/csharp-nunit/Api/ApiError.cs +0 -17
- package/.claude/skills/httpclient/templates/csharp-nunit/Data/Cases.cs +0 -41
- package/.claude/skills/httpclient/templates/csharp-nunit/Data/HealthData.cs +0 -11
- package/.claude/skills/httpclient/templates/csharp-nunit/Data/ProductBuilder.cs +0 -16
- package/.claude/skills/httpclient/templates/csharp-nunit/Data/ProductsData.cs +0 -17
- package/.claude/skills/httpclient/templates/csharp-nunit/Tests/HealthTests.cs +0 -18
- package/.claude/skills/httpclient/templates/csharp-nunit/Tests/ProductsTests.cs +0 -48
- package/.claude/skills/k6/templates/project/data/builders.js +0 -8
- package/.claude/skills/karate/templates/java-junit5/src/test/java/api/products.feature +0 -33
- package/.claude/skills/pact/templates/project/test/contract/products.contract.test.js +0 -45
- package/.claude/skills/playwright/templates/dotnet/Components/AccountMenu.cs +0 -23
- package/.claude/skills/playwright/templates/dotnet/Data/Cases.cs +0 -43
- package/.claude/skills/playwright/templates/dotnet/Data/SignInData.cs +0 -24
- package/.claude/skills/playwright/templates/dotnet/Flows/SignInFlow.cs +0 -51
- package/.claude/skills/playwright/templates/dotnet/Framework/AutomationError.cs +0 -17
- package/.claude/skills/playwright/templates/dotnet/Framework/Config.cs +0 -91
- package/.claude/skills/playwright/templates/dotnet/Pages/BasePage.cs +0 -57
- package/.claude/skills/playwright/templates/dotnet/Pages/HomePage.cs +0 -26
- package/.claude/skills/playwright/templates/dotnet/Pages/LoginPage.cs +0 -45
- package/.claude/skills/playwright/templates/dotnet/Tests/SmokeTests.cs +0 -47
- package/.claude/skills/playwright/templates/javascript/src/components/account-menu.component.js +0 -30
- package/.claude/skills/playwright/templates/javascript/src/config.js +0 -53
- package/.claude/skills/playwright/templates/javascript/src/data/accounts.js +0 -23
- package/.claude/skills/playwright/templates/javascript/src/data/cases.js +0 -49
- package/.claude/skills/playwright/templates/javascript/src/data/sign-in.data.js +0 -12
- package/.claude/skills/playwright/templates/javascript/src/flows/sign-in.flow.js +0 -53
- package/.claude/skills/playwright/templates/javascript/src/pages/base.page.js +0 -59
- package/.claude/skills/playwright/templates/javascript/src/pages/home.page.js +0 -31
- package/.claude/skills/playwright/templates/javascript/src/pages/login.page.js +0 -56
- package/.claude/skills/playwright/templates/javascript/tests/fixtures.js +0 -20
- package/.claude/skills/playwright/templates/javascript/tests/smoke.spec.js +0 -22
- package/.claude/skills/playwright/templates/project/src/components/account-menu.component.ts +0 -27
- package/.claude/skills/playwright/templates/project/src/config.ts +0 -56
- package/.claude/skills/playwright/templates/project/src/data/accounts.ts +0 -21
- package/.claude/skills/playwright/templates/project/src/data/cases.ts +0 -55
- package/.claude/skills/playwright/templates/project/src/data/sign-in.data.ts +0 -10
- package/.claude/skills/playwright/templates/project/src/flows/sign-in.flow.ts +0 -51
- package/.claude/skills/playwright/templates/project/src/pages/base.page.ts +0 -52
- package/.claude/skills/playwright/templates/project/src/pages/home.page.ts +0 -30
- package/.claude/skills/playwright/templates/project/src/pages/login.page.ts +0 -53
- package/.claude/skills/playwright/templates/project/tests/fixtures.ts +0 -25
- package/.claude/skills/playwright/templates/project/tests/smoke.spec.ts +0 -22
- package/.claude/skills/playwright/templates/python/components/__init__.py +0 -1
- package/.claude/skills/playwright/templates/python/components/account_menu.py +0 -22
- package/.claude/skills/playwright/templates/python/data/accounts.py +0 -14
- package/.claude/skills/playwright/templates/python/data/cases.py +0 -33
- package/.claude/skills/playwright/templates/python/data/sign_in_data.py +0 -9
- package/.claude/skills/playwright/templates/python/flows/sign_in.py +0 -63
- package/.claude/skills/playwright/templates/python/framework/config.py +0 -86
- package/.claude/skills/playwright/templates/python/pages/base_page.py +0 -51
- package/.claude/skills/playwright/templates/python/pages/home_page.py +0 -21
- package/.claude/skills/playwright/templates/python/pages/login_page.py +0 -40
- package/.claude/skills/playwright/templates/python/tests/test_smoke.py +0 -26
- package/.claude/skills/quality-checks/templates/playwright-ts/src/pages/scanned.page.ts +0 -16
- package/.claude/skills/quality-checks/templates/playwright-ts/tests/quality.spec.ts +0 -58
- package/.claude/skills/requests/templates/python-pytest/api/config.py +0 -43
- package/.claude/skills/requests/templates/python-pytest/api/errors.py +0 -15
- package/.claude/skills/requests/templates/python-pytest/data/builders.py +0 -16
- package/.claude/skills/requests/templates/python-pytest/data/cases.py +0 -30
- package/.claude/skills/requests/templates/python-pytest/data/health_data.py +0 -6
- package/.claude/skills/requests/templates/python-pytest/data/products_data.py +0 -10
- package/.claude/skills/requests/templates/python-pytest/tests/test_health.py +0 -12
- package/.claude/skills/requests/templates/python-pytest/tests/test_products.py +0 -25
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/api/ApiError.java +0 -18
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/api/ApiSpec.java +0 -29
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/api/HealthApi.java +0 -21
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/data/Cases.java +0 -45
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/data/HealthData.java +0 -12
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/data/ProductsData.java +0 -16
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/HealthTest.java +0 -15
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/ProductsTest.java +0 -37
- package/.claude/skills/selenium/templates/csharp-nunit/Components/AccountMenu.cs +0 -26
- package/.claude/skills/selenium/templates/csharp-nunit/Data/Cases.cs +0 -43
- package/.claude/skills/selenium/templates/csharp-nunit/Data/SignInData.cs +0 -24
- package/.claude/skills/selenium/templates/csharp-nunit/Flows/SignInFlow.cs +0 -51
- package/.claude/skills/selenium/templates/csharp-nunit/Framework/AutomationError.cs +0 -17
- package/.claude/skills/selenium/templates/csharp-nunit/Framework/DriverManager.cs +0 -26
- package/.claude/skills/selenium/templates/csharp-nunit/Pages/HomePage.cs +0 -28
- package/.claude/skills/selenium/templates/csharp-nunit/Pages/LoginPage.cs +0 -58
- package/.claude/skills/selenium/templates/csharp-nunit/Tests/BaseTest.cs +0 -22
- package/.claude/skills/selenium/templates/csharp-nunit/Tests/SmokeTests.cs +0 -37
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/components/AccountMenu.java +0 -37
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/data/Cases.java +0 -48
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/data/SignInData.java +0 -36
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/flows/SignInFlow.java +0 -60
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/framework/Account.java +0 -19
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pages/HomePage.java +0 -45
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pages/LoginPage.java +0 -78
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/BaseTest.java +0 -33
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/SmokeTest.java +0 -33
- package/.claude/skills/selenium/templates/python-pytest/components/__init__.py +0 -1
- package/.claude/skills/selenium/templates/python-pytest/components/account_menu.py +0 -19
- package/.claude/skills/selenium/templates/python-pytest/data/accounts.py +0 -14
- package/.claude/skills/selenium/templates/python-pytest/data/cases.py +0 -33
- package/.claude/skills/selenium/templates/python-pytest/data/sign_in_data.py +0 -9
- package/.claude/skills/selenium/templates/python-pytest/flows/__init__.py +0 -0
- package/.claude/skills/selenium/templates/python-pytest/flows/sign_in.py +0 -61
- package/.claude/skills/selenium/templates/python-pytest/framework/__init__.py +0 -0
- package/.claude/skills/selenium/templates/python-pytest/framework/config.py +0 -90
- package/.claude/skills/selenium/templates/python-pytest/pages/__init__.py +0 -0
- package/.claude/skills/selenium/templates/python-pytest/pages/home_page.py +0 -23
- package/.claude/skills/selenium/templates/python-pytest/tests/test_smoke.py +0 -25
- /package/.claude/skills/karate/templates/java-junit5/src/test/java/{api → tests/api}/delete-product.feature +0 -0
- /package/.claude/skills/playwright/templates/{python/data/__init__.py → dotnet/auth/.gitkeep} +0 -0
- /package/.claude/skills/playwright/templates/{python/flows/__init__.py → javascript/auth/.gitkeep} +0 -0
- /package/.claude/skills/playwright/templates/{python/framework/__init__.py → project/auth/.gitkeep} +0 -0
- /package/.claude/skills/playwright/templates/project/{src → utils}/errors.ts +0 -0
- /package/.claude/skills/playwright/templates/python/{pages/__init__.py → auth/.gitkeep} +0 -0
- /package/.claude/skills/quality-checks/templates/playwright-ts/src/checks/{page-health.ts → pageHealth.ts} +0 -0
- /package/.claude/skills/quality-checks/templates/playwright-ts/src/{api/graphql.ts → services/graphqlClient.ts} +0 -0
- /package/.claude/skills/{requests/templates/python-pytest/api/__init__.py → selenium/templates/csharp-nunit/auth/.gitkeep} +0 -0
- /package/.claude/skills/{requests/templates/python-pytest/data/__init__.py → selenium/templates/java-testng/auth/.gitkeep} +0 -0
- /package/.claude/skills/selenium/templates/python-pytest/{data/__init__.py → auth/.gitkeep} +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hooks": {
|
|
3
|
+
"BeforeTool": [
|
|
4
|
+
{
|
|
5
|
+
"matcher": "run_shell_command|read_file",
|
|
6
|
+
"hooks": [
|
|
7
|
+
{
|
|
8
|
+
"name": "orion-lean",
|
|
9
|
+
"type": "command",
|
|
10
|
+
"command": "node \"${workspacePath}${/}.claude${/}skills${/}orion${/}scripts${/}hooks${/}lean_guard.mjs\""
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -419,6 +419,11 @@ commandPrefix = "yarn dlx"
|
|
|
419
419
|
decision = "ask_user"
|
|
420
420
|
priority = 800
|
|
421
421
|
|
|
422
|
+
[[rule]]
|
|
423
|
+
commandPrefix = "node .claude/skills/orion/scripts/quiet.mjs"
|
|
424
|
+
decision = "ask_user"
|
|
425
|
+
priority = 800
|
|
426
|
+
|
|
422
427
|
[[rule]]
|
|
423
428
|
commandPrefix = "npm test"
|
|
424
429
|
decision = "ask_user"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orion-qa/orion",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Orion: AI test agents that work as one team. They explore your live site, design test cases you approve, write Playwright, Selenium, Appium or API tests in your framework, run them 3 times and prove them. For Claude Code, Cursor, Copilot, Codex and Gemini CLI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"orion",
|
|
@@ -54,15 +54,20 @@
|
|
|
54
54
|
".mcp.template.json",
|
|
55
55
|
".cursor/commands",
|
|
56
56
|
".cursor/mcp.template.json",
|
|
57
|
+
".cursor/hooks.json",
|
|
57
58
|
".github/prompts",
|
|
59
|
+
".github/hooks/orion-lean.json",
|
|
58
60
|
".vscode/mcp.template.json",
|
|
59
61
|
".gemini/agents",
|
|
60
62
|
".gemini/commands",
|
|
61
63
|
".gemini/settings.json",
|
|
62
64
|
".codex/agents",
|
|
65
|
+
".codex/hooks.json",
|
|
63
66
|
".windsurf/workflows",
|
|
67
|
+
".devin/hooks.v1.json",
|
|
64
68
|
"hosts/gemini-extension",
|
|
65
69
|
"assets/run-flow.svg",
|
|
70
|
+
"assets/architecture.svg",
|
|
66
71
|
"assets/orion-logo.svg",
|
|
67
72
|
"assets/orion-banner.svg"
|
|
68
73
|
]
|
package/.claude/skills/appium/templates/project-java/src/test/java/automation/data/Cases.java
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
package automation.data;
|
|
2
|
-
|
|
3
|
-
import java.util.List;
|
|
4
|
-
import java.util.Map;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* The test cases, as data: one per behaviour. TestNG descriptions need constants, so each test carries its case's
|
|
8
|
-
* constant ({@link #TS0}); the details live in {@link #ALL}. Replace these with the story's cases (test-design step 3).
|
|
9
|
-
*/
|
|
10
|
-
public final class Cases {
|
|
11
|
-
/** Case id and criterion of TS-0, for the test's description. */
|
|
12
|
-
public static final String TS0 = "TS-0 @AC-0";
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* One test case: what it covers, what must be true first, what it does and the change it asserts.
|
|
16
|
-
*
|
|
17
|
-
* @param id case id, shared with the test's name and description
|
|
18
|
-
* @param ac the acceptance criterion it covers
|
|
19
|
-
* @param title the behaviour, in the requirement's words
|
|
20
|
-
* @param preconditions what must be true before the steps
|
|
21
|
-
* @param steps what the test does
|
|
22
|
-
* @param data the data it uses (variable names, never secret values)
|
|
23
|
-
* @param expected the change the test asserts
|
|
24
|
-
* @param postconditions what the test leaves behind
|
|
25
|
-
*/
|
|
26
|
-
public record TestCase(String id, String ac, String title, List<String> preconditions, List<String> steps,
|
|
27
|
-
String data, String expected, List<String> postconditions) {}
|
|
28
|
-
|
|
29
|
-
/** Every case of the story, keyed by its description constant. */
|
|
30
|
-
public static final Map<String, TestCase> ALL = Map.of(
|
|
31
|
-
TS0, new TestCase("TS-0", "AC-0", "the test account signs in and the app greets the user",
|
|
32
|
-
List.of("Signed out, app freshly started"), List.of("Enter the test account", "Submit"),
|
|
33
|
-
"E2E_USER, E2E_PASSWORD", "The home screen greets the user", List.of("Signed in")));
|
|
34
|
-
|
|
35
|
-
/** Not instantiable: constants and the case table only. */
|
|
36
|
-
private Cases() {}
|
|
37
|
-
}
|
package/.claude/skills/appium/templates/project-java/src/test/java/automation/data/SignInData.java
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
package automation.data;
|
|
2
|
-
|
|
3
|
-
import automation.framework.Account;
|
|
4
|
-
import automation.framework.Config;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Accounts and expected results of the sign-in cases. Expected values come from the requirement (never from what the
|
|
8
|
-
* screen showed); account values come from the environment through Config, so this file holds no secret.
|
|
9
|
-
*/
|
|
10
|
-
public final class SignInData {
|
|
11
|
-
/** What the app greets the signed-in test account with. */
|
|
12
|
-
public static final String GREETING = "{{SIGNED_IN_TEXT}}";
|
|
13
|
-
|
|
14
|
-
/** Not instantiable: constants and factory methods only. */
|
|
15
|
-
private SignInData() {}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* The account the user gave for this app.
|
|
19
|
-
*
|
|
20
|
-
* @return it, read from the environment when called
|
|
21
|
-
*/
|
|
22
|
-
public static Account standardAccount() {
|
|
23
|
-
return Config.testAccount();
|
|
24
|
-
}
|
|
25
|
-
}
|
package/.claude/skills/appium/templates/project-java/src/test/java/automation/flows/SignInFlow.java
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
package automation.flows;
|
|
2
|
-
|
|
3
|
-
import automation.framework.Account;
|
|
4
|
-
import automation.screens.HomeScreen;
|
|
5
|
-
import automation.screens.LoginScreen;
|
|
6
|
-
import io.appium.java_client.AppiumDriver;
|
|
7
|
-
|
|
8
|
-
/** The one sign-in every signed-in test uses: wait for the sign-in screen, sign in, land on the home screen. */
|
|
9
|
-
public class SignInFlow {
|
|
10
|
-
private final AppiumDriver driver;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @param driver the session to sign in with
|
|
14
|
-
*/
|
|
15
|
-
public SignInFlow(AppiumDriver driver) {
|
|
16
|
-
this.driver = driver;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Signs in and waits until the home screen is ready (readiness, not an assertion).
|
|
21
|
-
*
|
|
22
|
-
* @param account the account to sign in with, from the data layer
|
|
23
|
-
* @return the home screen, for the test to assert on
|
|
24
|
-
*/
|
|
25
|
-
public HomeScreen signIn(Account account) {
|
|
26
|
-
LoginScreen login = new LoginScreen(driver);
|
|
27
|
-
login.waitUntilReady();
|
|
28
|
-
login.signIn(account.user(), account.password());
|
|
29
|
-
login.waitUntilLeft();
|
|
30
|
-
HomeScreen home = new HomeScreen(driver);
|
|
31
|
-
home.waitUntilReady();
|
|
32
|
-
return home;
|
|
33
|
-
}
|
|
34
|
-
}
|
package/.claude/skills/appium/templates/project-java/src/test/java/automation/framework/Account.java
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
package automation.framework;
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* A test account: user name and password. Built from the environment by {@link Config#testAccount()}; never logged.
|
|
5
|
-
*
|
|
6
|
-
* @param user the account's user name
|
|
7
|
-
* @param password the account's password
|
|
8
|
-
*/
|
|
9
|
-
public record Account(String user, String password) {
|
|
10
|
-
/**
|
|
11
|
-
* Hides the password, so an account printed in a log or a failure message never shows it.
|
|
12
|
-
*
|
|
13
|
-
* @return the user name with the password masked
|
|
14
|
-
*/
|
|
15
|
-
@Override
|
|
16
|
-
public String toString() {
|
|
17
|
-
return "Account[user=" + user + ", password=***]";
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
package automation.screens;
|
|
2
|
-
|
|
3
|
-
import io.appium.java_client.AppiumBy;
|
|
4
|
-
import io.appium.java_client.AppiumDriver;
|
|
5
|
-
import org.openqa.selenium.By;
|
|
6
|
-
|
|
7
|
-
/** The screen a signed-in user lands on. Exposes what tests assert on; holds no expected values. */
|
|
8
|
-
public class HomeScreen extends BaseScreen {
|
|
9
|
-
private static final By GREETING = AppiumBy.accessibilityId("{{SIGNED_IN_ACCESSIBILITY_ID}}");
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @param driver the AppiumDriver from the DriverManager
|
|
13
|
-
*/
|
|
14
|
-
public HomeScreen(AppiumDriver driver) {
|
|
15
|
-
super(driver);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* The greeting marks the screen as ready.
|
|
20
|
-
*
|
|
21
|
-
* @return its locator
|
|
22
|
-
*/
|
|
23
|
-
@Override
|
|
24
|
-
protected By readyMarker() {
|
|
25
|
-
return GREETING;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* The greeting's text once the app has filled it in, for tests to assert on.
|
|
30
|
-
*
|
|
31
|
-
* @return the text
|
|
32
|
-
*/
|
|
33
|
-
public String greetingText() {
|
|
34
|
-
return textWhenPresent(GREETING);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
package automation.screens;
|
|
2
|
-
|
|
3
|
-
import automation.framework.AutomationError;
|
|
4
|
-
import io.appium.java_client.AppiumBy;
|
|
5
|
-
import io.appium.java_client.AppiumDriver;
|
|
6
|
-
import org.openqa.selenium.By;
|
|
7
|
-
import org.openqa.selenium.TimeoutException;
|
|
8
|
-
import org.openqa.selenium.support.ui.ExpectedConditions;
|
|
9
|
-
|
|
10
|
-
/** The app's sign-in screen. Accessibility ids from the UI map (Appium MCP page source, one match each); never guessed. */
|
|
11
|
-
public class LoginScreen extends BaseScreen {
|
|
12
|
-
private static final By USERNAME = AppiumBy.accessibilityId("{{USERNAME_ACCESSIBILITY_ID}}");
|
|
13
|
-
private static final By PASSWORD = AppiumBy.accessibilityId("{{PASSWORD_ACCESSIBILITY_ID}}");
|
|
14
|
-
private static final By SUBMIT = AppiumBy.accessibilityId("{{SUBMIT_ACCESSIBILITY_ID}}");
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @param driver the AppiumDriver from the DriverManager
|
|
18
|
-
*/
|
|
19
|
-
public LoginScreen(AppiumDriver driver) {
|
|
20
|
-
super(driver);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* The user name field marks the screen as ready.
|
|
25
|
-
*
|
|
26
|
-
* @return its locator
|
|
27
|
-
*/
|
|
28
|
-
@Override
|
|
29
|
-
protected By readyMarker() {
|
|
30
|
-
return USERNAME;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Fills the form and submits it.
|
|
35
|
-
*
|
|
36
|
-
* @param user the account's user name
|
|
37
|
-
* @param password the account's password
|
|
38
|
-
*/
|
|
39
|
-
public void signIn(String user, String password) {
|
|
40
|
-
type(USERNAME, user);
|
|
41
|
-
type(PASSWORD, password);
|
|
42
|
-
tap(SUBMIT);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Waits until the sign-in form is gone (readiness, not an assertion).
|
|
47
|
-
*
|
|
48
|
-
* @throws AutomationError when the form stays
|
|
49
|
-
*/
|
|
50
|
-
public void waitUntilLeft() {
|
|
51
|
-
try {
|
|
52
|
-
wait.until(ExpectedConditions.invisibilityOfElementLocated(USERNAME));
|
|
53
|
-
} catch (TimeoutException e) {
|
|
54
|
-
throw new AutomationError("Wait for", "LoginScreen", "the sign-in form to go away");
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/BaseTest.java
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
package automation.tests;
|
|
2
|
-
|
|
3
|
-
import automation.flows.SignInFlow;
|
|
4
|
-
import automation.framework.DriverManager;
|
|
5
|
-
import io.appium.java_client.AppiumDriver;
|
|
6
|
-
import org.testng.annotations.AfterMethod;
|
|
7
|
-
|
|
8
|
-
/** Lifecycle only: gives tests the session and flows, and always quits the session after each test. */
|
|
9
|
-
public abstract class BaseTest {
|
|
10
|
-
/**
|
|
11
|
-
* This thread's session.
|
|
12
|
-
*
|
|
13
|
-
* @return the driver from the DriverManager
|
|
14
|
-
*/
|
|
15
|
-
protected AppiumDriver driver() {
|
|
16
|
-
return DriverManager.get();
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* The sign-in flow for this test's session.
|
|
21
|
-
*
|
|
22
|
-
* @return a new flow
|
|
23
|
-
*/
|
|
24
|
-
protected SignInFlow signInFlow() {
|
|
25
|
-
return new SignInFlow(driver());
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/** Quits the session after every test, also when the test failed. */
|
|
29
|
-
@AfterMethod(alwaysRun = true)
|
|
30
|
-
public void quitDriver() {
|
|
31
|
-
DriverManager.quit();
|
|
32
|
-
}
|
|
33
|
-
}
|
package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/SmokeTest.java
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
package automation.tests;
|
|
2
|
-
|
|
3
|
-
import automation.data.Cases;
|
|
4
|
-
import automation.data.SignInData;
|
|
5
|
-
import automation.screens.HomeScreen;
|
|
6
|
-
import org.testng.Assert;
|
|
7
|
-
import org.testng.annotations.Test;
|
|
8
|
-
|
|
9
|
-
/** {{STORY_KEY}} sign-in: each test's name carries the case id and the acceptance criterion it implements. */
|
|
10
|
-
public class SmokeTest extends BaseTest {
|
|
11
|
-
/** TS-0 @AC-0: the test account signs in and the app greets the user. */
|
|
12
|
-
@Test(groups = "smoke", description = Cases.TS0)
|
|
13
|
-
public void ts0Ac0TestAccountSignsInAndIsGreeted() {
|
|
14
|
-
HomeScreen home = signInFlow().signIn(SignInData.standardAccount());
|
|
15
|
-
Assert.assertEquals(home.greetingText(), SignInData.GREETING);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
using System.Net.Http.Headers;
|
|
2
|
-
|
|
3
|
-
namespace Automation.Api;
|
|
4
|
-
|
|
5
|
-
/// <summary>
|
|
6
|
-
/// One HttpClient for the whole run (a new client per test exhausts sockets). Base address and token come from
|
|
7
|
-
/// ApiConfig; failure messages never include headers, which carry the token.
|
|
8
|
-
/// </summary>
|
|
9
|
-
public static class ApiClient
|
|
10
|
-
{
|
|
11
|
-
private static readonly Lazy<HttpClient> Shared = new(Create);
|
|
12
|
-
|
|
13
|
-
/// <summary>Sends a GET request.</summary>
|
|
14
|
-
/// <param name="path">Path relative to API_BASE_URL, from the test data; a leading slash is removed so a base path is kept.</param>
|
|
15
|
-
/// <returns>The response, for the test to assert on.</returns>
|
|
16
|
-
public static Task<HttpResponseMessage> GetAsync(string path) => Shared.Value.GetAsync(Relative(path));
|
|
17
|
-
|
|
18
|
-
/// <summary>Sends a POST request.</summary>
|
|
19
|
-
/// <param name="path">Path relative to API_BASE_URL, from the test data.</param>
|
|
20
|
-
/// <param name="content">The request body.</param>
|
|
21
|
-
/// <returns>The response, for the test to assert on.</returns>
|
|
22
|
-
public static Task<HttpResponseMessage> PostAsync(string path, HttpContent content) =>
|
|
23
|
-
Shared.Value.PostAsync(Relative(path), content);
|
|
24
|
-
|
|
25
|
-
/// <summary>Sends a DELETE request.</summary>
|
|
26
|
-
/// <param name="path">Path relative to API_BASE_URL, from the test data.</param>
|
|
27
|
-
/// <returns>The response, for the test to assert on.</returns>
|
|
28
|
-
public static Task<HttpResponseMessage> DeleteAsync(string path) => Shared.Value.DeleteAsync(Relative(path));
|
|
29
|
-
|
|
30
|
-
/// <summary>A failure message without headers (they can carry the token): method, path, status and a short body.</summary>
|
|
31
|
-
/// <param name="response">The response to describe.</param>
|
|
32
|
-
/// <returns>"Call METHOD /path: HTTP n: body".</returns>
|
|
33
|
-
public static async Task<string> DescribeAsync(HttpResponseMessage response)
|
|
34
|
-
{
|
|
35
|
-
var body = await response.Content.ReadAsStringAsync();
|
|
36
|
-
var request = response.RequestMessage;
|
|
37
|
-
return $"Call {request?.Method} {request?.RequestUri?.AbsolutePath}: HTTP {(int)response.StatusCode}: {body[..Math.Min(body.Length, 300)]}";
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/// <summary>Removes a leading slash, so the request keeps the base URL's own path.</summary>
|
|
41
|
-
/// <param name="path">The path from the test data.</param>
|
|
42
|
-
/// <returns>The relative path.</returns>
|
|
43
|
-
private static string Relative(string path) => path.TrimStart('/');
|
|
44
|
-
|
|
45
|
-
/// <summary>Builds the shared client: base address, JSON accept, timeout and, when set, the bearer token.</summary>
|
|
46
|
-
/// <returns>The client.</returns>
|
|
47
|
-
private static HttpClient Create()
|
|
48
|
-
{
|
|
49
|
-
var client = new HttpClient
|
|
50
|
-
{
|
|
51
|
-
BaseAddress = new Uri(ApiConfig.BaseUrl().TrimEnd('/') + "/"),
|
|
52
|
-
Timeout = ApiConfig.Timeout(),
|
|
53
|
-
};
|
|
54
|
-
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
|
|
55
|
-
if (ApiConfig.Token() is { } token)
|
|
56
|
-
{
|
|
57
|
-
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
|
|
58
|
-
}
|
|
59
|
-
return client;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
namespace Automation.Api;
|
|
2
|
-
|
|
3
|
-
/// <summary>
|
|
4
|
-
/// Settings of the suite, read in this one place: the process environment first, then the project's one `.env`
|
|
5
|
-
/// (gitignored). The file is read once, the first time a value is needed, so loading a class never reads it or fails.
|
|
6
|
-
/// </summary>
|
|
7
|
-
public static class ApiConfig
|
|
8
|
-
{
|
|
9
|
-
private static readonly Lazy<Dictionary<string, string>> EnvFile = new(ReadEnvFile);
|
|
10
|
-
|
|
11
|
-
/// <summary>The API's base URL in the test environment (<c>API_BASE_URL</c>).</summary>
|
|
12
|
-
/// <returns>The value; throws <see cref="ApiError"/> naming the variable when it isn't set.</returns>
|
|
13
|
-
public static string BaseUrl() =>
|
|
14
|
-
Value("API_BASE_URL") ?? throw new ApiError("Read setting", "API_BASE_URL", "not set (add it to the project .env or the CI secrets)");
|
|
15
|
-
|
|
16
|
-
/// <summary>The bearer token (<c>API_TOKEN</c>).</summary>
|
|
17
|
-
/// <returns>The token, or null when the API needs none.</returns>
|
|
18
|
-
public static string? Token() => Value("API_TOKEN");
|
|
19
|
-
|
|
20
|
-
/// <summary>The per-call timeout (<c>API_TIMEOUT_SECONDS</c>, default 15).</summary>
|
|
21
|
-
/// <returns>The timeout.</returns>
|
|
22
|
-
public static TimeSpan Timeout() => TimeSpan.FromSeconds(int.Parse(Value("API_TIMEOUT_SECONDS") ?? "15"));
|
|
23
|
-
|
|
24
|
-
/// <summary>An optional setting: the process environment first, then the project's `.env`.</summary>
|
|
25
|
-
/// <param name="name">The variable name.</param>
|
|
26
|
-
/// <returns>Its value, or null when unset or blank.</returns>
|
|
27
|
-
public static string? Value(string name)
|
|
28
|
-
{
|
|
29
|
-
var fromEnv = Environment.GetEnvironmentVariable(name);
|
|
30
|
-
var raw = !string.IsNullOrWhiteSpace(fromEnv) ? fromEnv : EnvFile.Value.GetValueOrDefault(name);
|
|
31
|
-
return string.IsNullOrWhiteSpace(raw) ? null : raw.Trim();
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/// <summary>Reads the `NAME=value` lines of the project's `.env`; empty when there is no file (CI uses secrets).</summary>
|
|
35
|
-
/// <returns>The values by name.</returns>
|
|
36
|
-
private static Dictionary<string, string> ReadEnvFile()
|
|
37
|
-
{
|
|
38
|
-
var values = new Dictionary<string, string>();
|
|
39
|
-
var path = FindEnvFile();
|
|
40
|
-
if (path is null) return values;
|
|
41
|
-
foreach (var line in File.ReadAllLines(path))
|
|
42
|
-
{
|
|
43
|
-
var eq = line.IndexOf('=');
|
|
44
|
-
if (eq > 0 && !line.TrimStart().StartsWith('#')) values[line[..eq].Trim()] = line[(eq + 1)..].Trim();
|
|
45
|
-
}
|
|
46
|
-
return values;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/// <summary>Finds the project's `.env`: `dotnet test` runs from bin/, so it looks upwards from there.</summary>
|
|
50
|
-
/// <returns>The file's path, or null when there is none.</returns>
|
|
51
|
-
private static string? FindEnvFile()
|
|
52
|
-
{
|
|
53
|
-
for (var dir = new DirectoryInfo(AppContext.BaseDirectory); dir is not null; dir = dir.Parent)
|
|
54
|
-
{
|
|
55
|
-
var candidate = Path.Combine(dir.FullName, ".env");
|
|
56
|
-
if (File.Exists(candidate)) return candidate;
|
|
57
|
-
if (Directory.GetFiles(dir.FullName, "*.csproj").Length > 0) return null;
|
|
58
|
-
}
|
|
59
|
-
return null;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
namespace Automation.Api;
|
|
2
|
-
|
|
3
|
-
/// <summary>
|
|
4
|
-
/// The one error type the suite raises, so every failure reads the same way:
|
|
5
|
-
/// what was being done, where (method and path, or the setting), and what came back (status or what is missing).
|
|
6
|
-
/// </summary>
|
|
7
|
-
public class ApiError : Exception
|
|
8
|
-
{
|
|
9
|
-
/// <summary>Builds the message from its three parts.</summary>
|
|
10
|
-
/// <param name="action">What the suite was doing, e.g. "Call" or "Read setting".</param>
|
|
11
|
-
/// <param name="where">The method and path, or the setting, it was acting on.</param>
|
|
12
|
-
/// <param name="detail">What came back: the HTTP status, or what is missing.</param>
|
|
13
|
-
public ApiError(string action, string where, string detail)
|
|
14
|
-
: base($"{action} {where}: {detail}")
|
|
15
|
-
{
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
namespace Automation.Data;
|
|
2
|
-
|
|
3
|
-
/// <summary>One test case: what it covers, what must be true first, what it does and the change it asserts.</summary>
|
|
4
|
-
/// <param name="Id">Case id, shared with the test's name and Description.</param>
|
|
5
|
-
/// <param name="Ac">The acceptance criterion it covers.</param>
|
|
6
|
-
/// <param name="Title">The behaviour, in the requirement's words.</param>
|
|
7
|
-
/// <param name="Preconditions">What must be true before the steps.</param>
|
|
8
|
-
/// <param name="Steps">What the test does.</param>
|
|
9
|
-
/// <param name="Data">The data it uses (variable names, never secret values).</param>
|
|
10
|
-
/// <param name="Expected">The change the test asserts.</param>
|
|
11
|
-
/// <param name="Postconditions">What the test leaves behind.</param>
|
|
12
|
-
public sealed record TestCase(string Id, string Ac, string Title, string[] Preconditions, string[] Steps, string Data, string Expected, string[] Postconditions);
|
|
13
|
-
|
|
14
|
-
/// <summary>
|
|
15
|
-
/// The test cases, as data: one per behaviour. NUnit attributes need constants, so each test carries its case's
|
|
16
|
-
/// constant (<see cref="Ts0"/>…) in its Description; the details live in <see cref="All"/>. Replace these with the
|
|
17
|
-
/// story's cases (test-design step 3).
|
|
18
|
-
/// </summary>
|
|
19
|
-
public static class Cases
|
|
20
|
-
{
|
|
21
|
-
/// <summary>Case id and criterion of TS-0, for the test's Description.</summary>
|
|
22
|
-
public const string Ts0 = "TS-0 @AC-0";
|
|
23
|
-
|
|
24
|
-
/// <summary>Case id and criterion of TS-1.</summary>
|
|
25
|
-
public const string Ts1 = "TS-1 @AC-1";
|
|
26
|
-
|
|
27
|
-
/// <summary>Case id and criterion of TS-2.</summary>
|
|
28
|
-
public const string Ts2 = "TS-2 @AC-1";
|
|
29
|
-
|
|
30
|
-
/// <summary>Every case of the story, keyed by its Description constant.</summary>
|
|
31
|
-
public static readonly IReadOnlyDictionary<string, TestCase> All = new Dictionary<string, TestCase>
|
|
32
|
-
{
|
|
33
|
-
[Ts0] = new("TS-0", "AC-0", "the service answers the health check", ["API_BASE_URL and API_TOKEN set"],
|
|
34
|
-
["GET the health endpoint"], "health path", "The expected status", []),
|
|
35
|
-
[Ts1] = new("TS-1", "AC-1", "a created product can be read back unchanged", ["No product with this name"],
|
|
36
|
-
["Create a product from the builder", "Read it by the returned id"], "builder: unique name, price",
|
|
37
|
-
"201 on create; the read returns the same name and price", ["The product is deleted, only if it was created"]),
|
|
38
|
-
[Ts2] = new("TS-2", "AC-1", "an unknown product id answers not found", ["No product with this id"],
|
|
39
|
-
["Read a product by an id that doesn't exist"], "UnknownId", "404", []),
|
|
40
|
-
};
|
|
41
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
namespace Automation.Data;
|
|
2
|
-
|
|
3
|
-
/// <summary>Test data and expected results of the health check case, from the requirement or the API's documentation.</summary>
|
|
4
|
-
public static class HealthData
|
|
5
|
-
{
|
|
6
|
-
/// <summary>The health endpoint's path.</summary>
|
|
7
|
-
public const string Path = "{{HEALTH_PATH}}";
|
|
8
|
-
|
|
9
|
-
/// <summary>The status a healthy service answers with.</summary>
|
|
10
|
-
public const int ExpectedStatus = {{HEALTH_STATUS}};
|
|
11
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
using System.Text.Json.Serialization;
|
|
2
|
-
|
|
3
|
-
namespace Automation.Data;
|
|
4
|
-
|
|
5
|
-
/// <summary>A product's fields, as the API takes and returns them.</summary>
|
|
6
|
-
/// <param name="Name">The product's name.</param>
|
|
7
|
-
/// <param name="Price">Its price.</param>
|
|
8
|
-
public sealed record Product([property: JsonPropertyName("name")] string Name, [property: JsonPropertyName("price")] decimal Price);
|
|
9
|
-
|
|
10
|
-
/// <summary>Builds valid synthetic products: a new name per call, so tests never share or collide on records.</summary>
|
|
11
|
-
public static class ProductBuilder
|
|
12
|
-
{
|
|
13
|
-
/// <summary>A valid product with a run-unique name; a test changes only the field it is about (`with { Price = 0 }`).</summary>
|
|
14
|
-
/// <returns>The product.</returns>
|
|
15
|
-
public static Product NewProduct() => new($"Test product {Guid.NewGuid().ToString("N")[..8]}", 9.99m);
|
|
16
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
namespace Automation.Data;
|
|
2
|
-
|
|
3
|
-
/// <summary>Test data and expected results of the product cases, from the requirement or the API's documentation.</summary>
|
|
4
|
-
public static class ProductsData
|
|
5
|
-
{
|
|
6
|
-
/// <summary>The products resource's path.</summary>
|
|
7
|
-
public const string Path = "{{PRODUCTS_PATH}}";
|
|
8
|
-
|
|
9
|
-
/// <summary>The status a successful create answers with.</summary>
|
|
10
|
-
public const int CreatedStatus = 201;
|
|
11
|
-
|
|
12
|
-
/// <summary>The status for an id the API doesn't have.</summary>
|
|
13
|
-
public const int NotFoundStatus = 404;
|
|
14
|
-
|
|
15
|
-
/// <summary>An id no product has.</summary>
|
|
16
|
-
public const string UnknownId = "does-not-exist";
|
|
17
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
using Automation.Api;
|
|
2
|
-
using Automation.Data;
|
|
3
|
-
using NUnit.Framework;
|
|
4
|
-
|
|
5
|
-
namespace Automation.Tests;
|
|
6
|
-
|
|
7
|
-
/// <summary>Health check: each test's name carries the case id and the acceptance criterion it implements.</summary>
|
|
8
|
-
[TestFixture]
|
|
9
|
-
public class HealthTests
|
|
10
|
-
{
|
|
11
|
-
/// <summary>TS-0 @AC-0: the service answers the health check with the expected status.</summary>
|
|
12
|
-
[Test, Category("smoke"), Description(Cases.Ts0)]
|
|
13
|
-
public async Task Ts0Ac0ServiceAnswersHealthCheck()
|
|
14
|
-
{
|
|
15
|
-
using var response = await ApiClient.GetAsync(HealthData.Path);
|
|
16
|
-
Assert.That((int)response.StatusCode, Is.EqualTo(HealthData.ExpectedStatus), await ApiClient.DescribeAsync(response));
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
using System.Net.Http.Json;
|
|
2
|
-
using System.Text.Json.Serialization;
|
|
3
|
-
using Automation.Api;
|
|
4
|
-
using Automation.Data;
|
|
5
|
-
using NUnit.Framework;
|
|
6
|
-
|
|
7
|
-
namespace Automation.Tests;
|
|
8
|
-
|
|
9
|
-
/// <summary>Products: create, read back, clean up; and the not-found case. Names carry the case id and criterion.</summary>
|
|
10
|
-
[TestFixture]
|
|
11
|
-
public class ProductsTests
|
|
12
|
-
{
|
|
13
|
-
/// <summary>The fields of a product the API returns, including its id.</summary>
|
|
14
|
-
/// <param name="Id">The product's id.</param>
|
|
15
|
-
/// <param name="Name">Its name.</param>
|
|
16
|
-
/// <param name="Price">Its price.</param>
|
|
17
|
-
private sealed record StoredProduct([property: JsonPropertyName("id")] string Id, [property: JsonPropertyName("name")] string Name, [property: JsonPropertyName("price")] decimal Price);
|
|
18
|
-
|
|
19
|
-
/// <summary>TS-1 @AC-1: a created product can be read back unchanged.</summary>
|
|
20
|
-
[Test, Description(Cases.Ts1)]
|
|
21
|
-
public async Task Ts1Ac1CreatedProductCanBeReadBack()
|
|
22
|
-
{
|
|
23
|
-
var product = ProductBuilder.NewProduct();
|
|
24
|
-
using var created = await ProductsApi.CreateAsync(product);
|
|
25
|
-
Assert.That((int)created.StatusCode, Is.EqualTo(ProductsData.CreatedStatus), await ApiClient.DescribeAsync(created));
|
|
26
|
-
var id = (await created.Content.ReadFromJsonAsync<StoredProduct>())!.Id;
|
|
27
|
-
try
|
|
28
|
-
{
|
|
29
|
-
using var read = await ProductsApi.GetAsync(id);
|
|
30
|
-
Assert.That((int)read.StatusCode, Is.EqualTo(200), await ApiClient.DescribeAsync(read));
|
|
31
|
-
var stored = await read.Content.ReadFromJsonAsync<StoredProduct>();
|
|
32
|
-
Assert.That(new Product(stored!.Name, stored.Price), Is.EqualTo(product));
|
|
33
|
-
}
|
|
34
|
-
finally
|
|
35
|
-
{
|
|
36
|
-
// Teardown runs only when the create above succeeded.
|
|
37
|
-
using var _ = await ProductsApi.DeleteAsync(id);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/// <summary>TS-2 @AC-1: an unknown product id answers not found.</summary>
|
|
42
|
-
[Test, Description(Cases.Ts2)]
|
|
43
|
-
public async Task Ts2Ac1UnknownProductAnswersNotFound()
|
|
44
|
-
{
|
|
45
|
-
using var response = await ProductsApi.GetAsync(ProductsData.UnknownId);
|
|
46
|
-
Assert.That((int)response.StatusCode, Is.EqualTo(ProductsData.NotFoundStatus), await ApiClient.DescribeAsync(response));
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Builds a valid product with a run-unique name; a test changes only the field it is about.
|
|
3
|
-
* @param {object} [overrides] Fields to change.
|
|
4
|
-
* @returns {object} The product: `name` (string) and `price` (number).
|
|
5
|
-
*/
|
|
6
|
-
export function newProduct(overrides = {}) {
|
|
7
|
-
return { name: `load-${__VU}-${__ITER}-${Date.now()}`, price: 9.5, ...overrides };
|
|
8
|
-
}
|