@orion-qa/orion 3.0.0 → 3.1.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/codebase-analyst.md +1 -1
- package/.claude/settings.json +9 -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 +2 -1
- package/.claude/skills/automation-implementation/SKILL.md +2 -1
- package/.claude/skills/automation-implementation/references/patterns.md +46 -24
- package/.claude/skills/code-review/SKILL.md +3 -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 +6 -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 +9 -7
- package/.claude/skills/orion/references/assess-fix.md +34 -0
- package/.claude/skills/orion/references/capabilities.md +1 -1
- package/.claude/skills/orion/references/conversation.md +9 -8
- package/.claude/skills/orion/references/delivery-formats.md +1 -1
- package/.claude/skills/orion/references/modes.md +3 -1
- package/.claude/skills/orion/references/project-context-files.md +6 -1
- package/.claude/skills/orion/references/setup-card.md +12 -6
- package/.claude/skills/orion/references/status-lines.md +6 -2
- 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/browser_setup.mjs +30 -15
- 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 +149 -0
- package/.claude/skills/orion/scripts/graph.mjs +400 -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/parity_check.mjs +166 -0
- package/.claude/skills/orion/scripts/report_check.mjs +77 -0
- package/.claude/skills/orion/scripts/results_parse.mjs +203 -0
- package/.claude/skills/orion/scripts/reuse_check.mjs +251 -0
- package/.claude/skills/orion/scripts/run_state.mjs +171 -0
- package/.claude/skills/orion/scripts/suite_check.mjs +228 -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/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 +18 -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 +59 -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 +83 -0
- package/.claude/skills/playwright/templates/javascript/fixtures/session.js +79 -0
- package/.claude/skills/playwright/templates/javascript/gitignore +7 -0
- package/.claude/skills/playwright/templates/javascript/jsconfig.json +11 -0
- package/.claude/skills/playwright/templates/javascript/package.json +7 -3
- package/.claude/skills/playwright/templates/javascript/pageObjects/basePage.js +58 -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 +42 -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 +79 -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 +84 -0
- package/.claude/skills/playwright/templates/project/fixtures/session.ts +76 -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 +53 -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 +46 -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 +81 -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 +54 -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/{framework/config.py → src/config/env.py} +24 -33
- 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 +40 -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 +38 -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 +17 -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 +1 -1
- package/.claude/skills/test-design/SKILL.md +1 -1
- package/.claude/skills/ui-observation/SKILL.md +7 -6
- package/.claude/skills/ui-observation/references/login-methods.md +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.cursor/commands/orion.md +1 -1
- package/.gemini/commands/orion.toml +2 -2
- package/.github/prompts/orion.prompt.md +2 -2
- package/.windsurf/workflows/orion.md +2 -2
- package/AGENTS.md +1 -1
- package/README.md +23 -3
- package/assets/architecture.svg +104 -0
- package/hosts/gemini-extension/gemini-extension.json +1 -1
- package/package.json +2 -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/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
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { THRESHOLDS } from '../../resources/testData/testData.js';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
|
-
* Settings for the load tests. Each value comes from the environment first (`k6 run -e NAME=value` or the shell),
|
|
4
|
+
* Settings for the load tests (src/config/env.js). Each value comes from the environment first (`k6 run -e NAME=value` or the shell),
|
|
3
5
|
* then from the project's `.env`. Values are never logged; a missing setting fails with its name only.
|
|
4
6
|
*/
|
|
5
7
|
|
|
6
|
-
const fileValues = readEnvFile('
|
|
8
|
+
const fileValues = readEnvFile('../../.env');
|
|
7
9
|
|
|
8
10
|
/**
|
|
9
11
|
* Reads NAME=value lines from the project's .env (init context only); quotes around a value are removed.
|
|
@@ -43,13 +45,16 @@ function setting(name, fallback) {
|
|
|
43
45
|
return value;
|
|
44
46
|
}
|
|
45
47
|
|
|
46
|
-
/**
|
|
48
|
+
/**
|
|
49
|
+
* The run's settings, read in this one place. PROFILE `smoke` (default) or `load`; the load numbers are the ones you
|
|
50
|
+
* approved (H6). The thresholds' defaults are the requirement's numbers, kept in `resources/testData/testData.js`.
|
|
51
|
+
*/
|
|
47
52
|
export const config = {
|
|
48
53
|
baseUrl: setting('API_BASE_URL').replace(/\/$/, ''),
|
|
49
54
|
token: setting('API_TOKEN', '-'),
|
|
50
55
|
profile: setting('PROFILE', 'smoke'),
|
|
51
|
-
p95Ms: Number(setting('P95_MS',
|
|
52
|
-
errorRate: Number(setting('ERROR_RATE',
|
|
56
|
+
p95Ms: Number(setting('P95_MS', String(THRESHOLDS.p95Ms))),
|
|
57
|
+
errorRate: Number(setting('ERROR_RATE', String(THRESHOLDS.errorRate))),
|
|
53
58
|
loadVus: Number(setting('LOAD_VUS', '{{LOAD_VUS}}')),
|
|
54
59
|
loadDuration: setting('LOAD_DURATION', '{{LOAD_DURATION}}'),
|
|
55
60
|
thinkSeconds: Number(setting('THINK_SECONDS', '1')),
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
// @toolkit: shared helpers kept for stories to reuse; reuse or extend them before writing a new one.
|
|
1
2
|
/** One client per resource: the products endpoints, with the bearer token from the settings. */
|
|
2
3
|
import http from 'k6/http';
|
|
3
|
-
import { config } from '
|
|
4
|
+
import { config } from '../config/env.js';
|
|
5
|
+
import { ROUTES } from '../../resources/testData/testData.js';
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* Request parameters shared by every call: auth header, JSON body type, and the case id as a tag.
|
|
@@ -25,7 +27,7 @@ export const productsApi = {
|
|
|
25
27
|
* @returns {import('k6/http').RefinedResponse} The response.
|
|
26
28
|
*/
|
|
27
29
|
health(caseId) {
|
|
28
|
-
return http.get(`${config.baseUrl}{
|
|
30
|
+
return http.get(`${config.baseUrl}${ROUTES.health}`, params(caseId));
|
|
29
31
|
},
|
|
30
32
|
/**
|
|
31
33
|
* Creates a product.
|
|
@@ -34,7 +36,7 @@ export const productsApi = {
|
|
|
34
36
|
* @returns {import('k6/http').RefinedResponse} The response.
|
|
35
37
|
*/
|
|
36
38
|
create(product, caseId) {
|
|
37
|
-
return http.post(`${config.baseUrl}{
|
|
39
|
+
return http.post(`${config.baseUrl}${ROUTES.products}`, JSON.stringify(product), params(caseId));
|
|
38
40
|
},
|
|
39
41
|
/**
|
|
40
42
|
* Reads a product.
|
|
@@ -44,7 +46,7 @@ export const productsApi = {
|
|
|
44
46
|
* @returns {import('k6/http').RefinedResponse} The response.
|
|
45
47
|
*/
|
|
46
48
|
get(id, caseId, expected) {
|
|
47
|
-
return http.get(`${config.baseUrl}{
|
|
49
|
+
return http.get(`${config.baseUrl}${ROUTES.products}/${id}`, params(caseId, expected));
|
|
48
50
|
},
|
|
49
51
|
/**
|
|
50
52
|
* Deletes a product (cleanup).
|
|
@@ -53,6 +55,6 @@ export const productsApi = {
|
|
|
53
55
|
* @returns {import('k6/http').RefinedResponse} The response.
|
|
54
56
|
*/
|
|
55
57
|
remove(id, caseId) {
|
|
56
|
-
return http.del(`${config.baseUrl}{
|
|
58
|
+
return http.del(`${config.baseUrl}${ROUTES.products}/${id}`, null, params(caseId));
|
|
57
59
|
},
|
|
58
60
|
};
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* PROFILE=load runs the profile you approved (H6). Every check is bound to a threshold, so a failed check fails the run.
|
|
4
4
|
*/
|
|
5
5
|
import { check, group, sleep } from 'k6';
|
|
6
|
-
import { config } from '
|
|
7
|
-
import { productsApi } from '
|
|
8
|
-
import { cases } from '
|
|
9
|
-
import { newProduct } from '
|
|
6
|
+
import { config } from '../../src/config/env.js';
|
|
7
|
+
import { productsApi } from '../../src/services/products-api.js';
|
|
8
|
+
import { cases } from '../../resources/desc/products.desc.js';
|
|
9
|
+
import { DATA, newProduct } from '../../resources/testData/testData.js';
|
|
10
10
|
|
|
11
11
|
const profiles = {
|
|
12
12
|
smoke: { vus: 1, iterations: 1 },
|
|
@@ -33,13 +33,13 @@ export const options = {
|
|
|
33
33
|
export default function () {
|
|
34
34
|
group(`${cases.TS0.id} ${cases.TS0.title}`, () => {
|
|
35
35
|
const res = productsApi.health(cases.TS0.id);
|
|
36
|
-
check(res, { [`${cases.TS0.id} ${cases.TS0.expected}`]: (r) => r.status ===
|
|
36
|
+
check(res, { [`${cases.TS0.id} ${cases.TS0.expected}`]: (r) => r.status === DATA.health.status && r.json('status') === DATA.health.body });
|
|
37
37
|
});
|
|
38
38
|
|
|
39
39
|
group(`${cases.TS1.id} ${cases.TS1.title}`, () => {
|
|
40
40
|
const product = newProduct();
|
|
41
41
|
const created = productsApi.create(product, cases.TS1.id);
|
|
42
|
-
const ok = check(created, { [`${cases.TS1.id} create 201 with an id`]: (r) => r.status ===
|
|
42
|
+
const ok = check(created, { [`${cases.TS1.id} create 201 with an id`]: (r) => r.status === DATA.products.createdStatus && r.json('id') !== undefined });
|
|
43
43
|
if (!ok) return;
|
|
44
44
|
const id = created.json('id');
|
|
45
45
|
try {
|
|
@@ -51,8 +51,8 @@ export default function () {
|
|
|
51
51
|
});
|
|
52
52
|
|
|
53
53
|
group(`${cases.TS2.id} ${cases.TS2.title}`, () => {
|
|
54
|
-
const res = productsApi.get(
|
|
55
|
-
check(res, { [`${cases.TS2.id} ${cases.TS2.expected}`]: (r) => r.status ===
|
|
54
|
+
const res = productsApi.get(DATA.products.unknownId, cases.TS2.id, [DATA.products.notFoundStatus]);
|
|
55
|
+
check(res, { [`${cases.TS2.id} ${cases.TS2.expected}`]: (r) => r.status === DATA.products.notFoundStatus });
|
|
56
56
|
});
|
|
57
57
|
|
|
58
58
|
// Think time between iterations under load, so users × 1/think time sets the request rate (none in smoke).
|
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
Used when a build starts a new API project in `sut/<app>/` (the user named this stack) or after Gate 4 approves it for an existing repo (D-nnn). Copy `java-junit5/`, fill every `{{TOKEN}}` (none may remain), rename `gitignore` to `.gitignore`, put the settings into the project's one `.env` (gitignored; names in `.env.example`), then run the health smoke test against the test environment before writing story tests.
|
|
4
4
|
|
|
5
5
|
- Stack: JDK 17+, Maven, Karate with JUnit 5
|
|
6
|
-
- Tokens: `{{PROJECT_NAME}}`, `{{STORY_KEY}}`, `{{KARATE_VERSION}}`, `{{SUREFIRE_VERSION}}`, `{{HEALTH_PATH}}`, `{{HEALTH_STATUS}}` (an unauthenticated health or status endpoint and its documented code); current versions are looked up at init and recorded.
|
|
7
|
-
- Files: `karate-config.js` (settings through `
|
|
8
|
-
- Settings at run time: `API_BASE_URL` (test environment), `API_TOKEN` (optional bearer token), read from the environment first, then `.env`.
|
|
6
|
+
- Tokens: `{{PROJECT_NAME}}`, `{{STORY_KEY}}`, `{{KARATE_VERSION}}`, `{{SUREFIRE_VERSION}}`, `{{HEALTH_PATH}}`, `{{HEALTH_STATUS}}`, `{{PRODUCTS_PATH}}` (in `testData.json`; an unauthenticated health or status endpoint and its documented code); current versions are looked up at init and recorded.
|
|
7
|
+
- Files (the suite architecture, [patterns.md](../../automation-implementation/references/patterns.md)): `src/test/java/karate-config.js` (settings through `config/EnvSettings` (environment first, then `.env`), header masking through `utils/MaskingLogModifier`, timeouts; gives every feature `testData`, `newProduct` and `runWriteTests`) · `src/test/resources/testData/testData.json` (paths, expected statuses and values) and `newProduct.js` (builder, run-unique names) · `src/test/java/tests/api/*.feature` (each scenario is a test description: `@TS-n @AC-n` tags, `@smoke`, `@write`; no data typed in a feature) · `tests/ApiTest.java` (one runner, one thread; `@write` scenarios skipped unless `RUN_WRITE_TESTS=1`; fails when no scenario ran). HTML report: `target/karate-reports/karate-summary.html`.
|
|
8
|
+
- Settings at run time: `API_BASE_URL` (test environment), `API_TOKEN` (optional bearer token), `RUN_WRITE_TESTS`, read from the environment first, then `.env`.
|
|
9
9
|
- CI (when the project has no test job and Gate 4 approves adding one): `ci/github-actions.yml` → `.github/workflows/api-tests.yml`; inputs `target`, `filter`, `repeat` (1 or 3); linted with actionlint 1.7.12 + shellcheck 0.11.0; its test step ran 3× on 2026-10-15 against the previous starter layout, and the command it calls is unchanged.
|
|
10
10
|
|
|
11
11
|
Run here 2026-10-16 (karate-junit5 1.5.1, surefire 3.6.0, JDK 21) against a local stub that answers 200 only with the expected bearer token: 3/3 passed; wrong expected status fails with `match failed: EQUALS`; the token appears 0 times in `target/`. Evidence: [run record](../../../../evals/workflows/runs/2026-10-16-starter-templates.md).
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
One worked resource, **products**: a client per resource (`ProductsApi`: create, get, delete), a **builder** that makes a valid product with a run-unique name, cases as tagged scenarios / named requests (their idiom), and two more cases: **TS-1** a created product can be read back unchanged (deleted in teardown, only after a successful create) and **TS-2** an unknown id answers 404. New token: `{{PRODUCTS_PATH}}`. Rename the resource to the app's own. Run here 2026-10-22 against `evals/fixtures/api-stub/server.mjs` (now with `/products`): 3/3 runs passed, fail check (create status 201 → 200) failed on the create assertion ([run record](../../../../evals/workflows/runs/2026-10-22-starter-v2.md)).
|
|
13
|
+
Run here 2026-11-12 in the new layout (karate-junit5 1.5.2, Surefire 3.6.1 with JUnit 5, JDK 21) against `evals/fixtures/api-stub/server.mjs`: 3/3 "scenarios 2, passed 2" (TS-1 is `@write`); 3/3 "scenarios 3, passed 3" with `RUN_WRITE_TESTS=1`; `--tags @smoke` 1 scenario; created status 201 → 200 fails on `responseStatus == expected.createdStatus`; the token in no file under `target/` ([run record](../../../../evals/workflows/runs/2026-11-12-suite-architecture.md)). Earlier layout: [2026-10-16](../../../../evals/workflows/runs/2026-10-16-starter-templates.md).
|
|
@@ -30,6 +30,10 @@
|
|
|
30
30
|
<exclude>**/*.java</exclude>
|
|
31
31
|
</excludes>
|
|
32
32
|
</testResource>
|
|
33
|
+
<!-- The test data (testData.json, builders), read with classpath:testData/... -->
|
|
34
|
+
<testResource>
|
|
35
|
+
<directory>src/test/resources</directory>
|
|
36
|
+
</testResource>
|
|
33
37
|
</testResources>
|
|
34
38
|
<plugins>
|
|
35
39
|
<plugin>
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Karate's configuration, run before every feature. Reads the settings through
|
|
2
|
+
* Karate's configuration, run before every feature. Reads the settings through config.EnvSettings (the process
|
|
3
3
|
* environment first, then the project's one gitignored .env), masks secret headers in logs and reports, and returns
|
|
4
|
-
* the variables features use.
|
|
5
|
-
*
|
|
4
|
+
* the variables features use: the base URL, the test data (testData/testData.json) and its builders, and whether
|
|
5
|
+
* `write` scenarios may run.
|
|
6
|
+
* @returns {{ baseUrl: string, testData: object, newProduct: Function, runWriteTests: boolean }} The variables every
|
|
7
|
+
* feature sees.
|
|
6
8
|
*/
|
|
7
9
|
function fn() {
|
|
8
|
-
var Env = Java.type('
|
|
10
|
+
var Env = Java.type('config.EnvSettings');
|
|
9
11
|
var baseUrl = Env.value('API_BASE_URL');
|
|
10
12
|
if (!baseUrl) {
|
|
11
13
|
karate.fail('Read setting API_BASE_URL: not set (add it to the project .env or the CI secrets; never to code)');
|
|
12
14
|
}
|
|
13
15
|
// Karate prints request and response headers in the console and reports: mask the secret ones.
|
|
14
|
-
var Masking = Java.type('
|
|
16
|
+
var Masking = Java.type('utils.MaskingLogModifier');
|
|
15
17
|
karate.configure('logModifier', new Masking());
|
|
16
18
|
var token = Env.value('API_TOKEN');
|
|
17
19
|
if (token) {
|
|
@@ -19,5 +21,10 @@ function fn() {
|
|
|
19
21
|
}
|
|
20
22
|
karate.configure('connectTimeout', 15000);
|
|
21
23
|
karate.configure('readTimeout', 15000);
|
|
22
|
-
return {
|
|
24
|
+
return {
|
|
25
|
+
baseUrl: baseUrl,
|
|
26
|
+
testData: read('classpath:testData/testData.json'),
|
|
27
|
+
newProduct: read('classpath:testData/newProduct.js'),
|
|
28
|
+
runWriteTests: Env.value('RUN_WRITE_TESTS') == '1',
|
|
29
|
+
};
|
|
23
30
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<!-- Without this file every library logs at DEBUG, and Apache HttpClient's wire log prints the Authorization header.
|
|
3
|
-
Karate's own request log stays on (its headers are masked by
|
|
3
|
+
Karate's own request log stays on (its headers are masked by utils.MaskingLogModifier). -->
|
|
4
4
|
<configuration>
|
|
5
5
|
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
|
6
6
|
<encoder>
|
package/.claude/skills/karate/templates/java-junit5/src/test/java/{api → tests}/ApiTest.java
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
package
|
|
1
|
+
package tests;
|
|
2
2
|
|
|
3
3
|
import com.intuit.karate.Results;
|
|
4
4
|
import com.intuit.karate.Runner;
|
|
@@ -8,14 +8,17 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
|
|
8
8
|
import static org.junit.jupiter.api.Assertions.assertTrue;
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* Runs every feature under classpath:api. Scope with -Dkarate.options="--tags @smoke".
|
|
12
|
-
* Fails when no scenario ran, so a tag that matches
|
|
11
|
+
* Runs every feature under classpath:tests/api. Scope with -Dkarate.options="--tags @smoke". Scenarios tagged
|
|
12
|
+
* `@write` (they create data) run only with RUN_WRITE_TESTS=1. Fails when no scenario ran, so a tag that matches
|
|
13
|
+
* nothing can't pass.
|
|
13
14
|
*/
|
|
14
15
|
class ApiTest {
|
|
15
16
|
/** Runs the features in one thread (a shared test environment) and fails on any failed or missing scenario. */
|
|
16
17
|
@Test
|
|
17
18
|
void features() {
|
|
18
|
-
|
|
19
|
+
Runner.Builder<?> runner = Runner.path("classpath:tests/api").outputJunitXml(true);
|
|
20
|
+
if (!"1".equals(config.EnvSettings.value("RUN_WRITE_TESTS"))) runner = runner.tags("~@write");
|
|
21
|
+
Results results = runner.parallel(1);
|
|
19
22
|
assertTrue(results.getScenariosTotal() > 0, "No scenarios ran: the tag filter matched nothing");
|
|
20
23
|
assertEquals(0, results.getFailCount(), results.getErrorMessages());
|
|
21
24
|
}
|
package/.claude/skills/karate/templates/java-junit5/src/test/java/{api → tests/api}/health.feature
RENAMED
|
@@ -2,9 +2,9 @@ Feature: {{STORY_KEY}} health check
|
|
|
2
2
|
Each scenario carries the case id and the acceptance criterion it implements as tags.
|
|
3
3
|
|
|
4
4
|
Background:
|
|
5
|
-
# Test data and expected results
|
|
6
|
-
* def healthPath =
|
|
7
|
-
* def expectedStatus =
|
|
5
|
+
# Test data and expected results live in testData/testData.json (karate-config.js reads it as `testData`).
|
|
6
|
+
* def healthPath = testData.routes.health
|
|
7
|
+
* def expectedStatus = testData.health.status
|
|
8
8
|
|
|
9
9
|
@smoke @TS-0 @AC-0
|
|
10
10
|
Scenario: TS-0 the service answers the health check
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
Feature: {{STORY_KEY}} products: create, read back, clean up; and the not-found case
|
|
2
|
+
Each scenario is a test description: its case id and criterion are tags (`@write` creates data); its data is in testData.json.
|
|
3
|
+
|
|
4
|
+
Background:
|
|
5
|
+
# Test data and expected results live in testData/testData.json (karate-config.js reads it as `testData`).
|
|
6
|
+
* url baseUrl
|
|
7
|
+
* def productsPath = testData.routes.products
|
|
8
|
+
* def expected = testData.products
|
|
9
|
+
# Teardown: delete the product a scenario created, only if it was created (runs even when an assertion failed).
|
|
10
|
+
* configure afterScenario = function() { var id = karate.get('productId'); if (id) karate.call('classpath:tests/api/delete-product.feature', { productsPath: productsPath, id: id }) }
|
|
11
|
+
|
|
12
|
+
@TS-1 @AC-1 @write
|
|
13
|
+
Scenario: TS-1 a created product can be read back unchanged
|
|
14
|
+
* def product = newProduct()
|
|
15
|
+
Given path productsPath
|
|
16
|
+
And request product
|
|
17
|
+
When method post
|
|
18
|
+
Then match responseStatus == expected.createdStatus
|
|
19
|
+
* def productId = response.id
|
|
20
|
+
Given path productsPath, productId
|
|
21
|
+
When method get
|
|
22
|
+
Then match responseStatus == 200
|
|
23
|
+
And match response contains product
|
|
24
|
+
|
|
25
|
+
@TS-2 @AC-1
|
|
26
|
+
Scenario: TS-2 an unknown product id answers not found
|
|
27
|
+
Given path productsPath, expected.unknownId
|
|
28
|
+
When method get
|
|
29
|
+
Then match responseStatus == expected.notFoundStatus
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Builder: a valid product with a run-unique name; a scenario changes only the field it is about.
|
|
3
|
+
* @returns {{ name: string, price: number }} The product.
|
|
4
|
+
*/
|
|
5
|
+
function fn() {
|
|
6
|
+
return { name: 'Test product ' + java.util.UUID.randomUUID().toString().substring(0, 8), price: 9.99 };
|
|
7
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "The suite's test data, in one place: the API's paths and the expected statuses and values, from the requirement or the API's documentation. karate-config.js reads it as `testData`. Values you give replace the defaults here; secrets stay in .env by name.",
|
|
3
|
+
"routes": { "health": "{{HEALTH_PATH}}", "products": "{{PRODUCTS_PATH}}" },
|
|
4
|
+
"health": { "status": {{HEALTH_STATUS}} },
|
|
5
|
+
"products": { "createdStatus": 201, "notFoundStatus": 404, "unknownId": "does-not-exist" }
|
|
6
|
+
}
|
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
Used when a build starts a new API project in `sut/<app>/` (the user named this stack) or after Gate 4 approves it for an existing repo (D-nnn). Copy `collection/`, fill every `{{TOKEN}}` (none may remain), rename `gitignore` to `.gitignore`, put the settings into the project's one `.env` (gitignored; names in `.env.example`), then run the health smoke test against the test environment before writing story tests.
|
|
4
4
|
|
|
5
5
|
- Stack: Node.js, newman, Postman collection v2.1
|
|
6
|
-
- Tokens: `{{PROJECT_NAME}}`, `{{
|
|
7
|
-
- Files: `collections/api.postman_collection.json` (bearer auth from `{{token}}`; request names
|
|
8
|
-
- Settings at run time: `API_BASE_URL` (test environment), `API_TOKEN` (optional bearer token), read from the environment first, then `.env`.
|
|
6
|
+
- Tokens: `{{PROJECT_NAME}}`, `{{STORY_KEY}}`, `{{NEWMAN_VERSION}}`, `{{HTMLEXTRA_VERSION}}` (newman-reporter-htmlextra, the HTML report), `{{HEALTH_PATH}}`, `{{HEALTH_STATUS}}`, `{{PRODUCTS_PATH}}` (all three in `resources/testData/testData.json`) (UPPER_CASE; Postman's own `{{baseUrl}}`, `{{token}}` and the camelCase data variables stay); current versions are looked up at init and recorded.
|
|
7
|
+
- Files (the suite architecture in Postman's own format, [patterns.md](../../automation-implementation/references/patterns.md)): `collections/api.postman_collection.json` (bearer auth from `{{token}}`; request names start with the case id; expected values read from variables, never typed in a test script) · `environments/test.postman_environment.json` (keys, empty values) · `resources/testData/testData.json` (paths, expected statuses, example values; passed as Postman variables) · `resources/desc/products.desc.json` (cases with tags `smoke`, `write`) · `src/config/env.js` (settings, `.env` loaded once) · `run.js` (fails when a described case has no request; `write` cases skipped unless `RUN_WRITE_TESTS=1`; JUnit and HTML reports in `reports/`). Every function has a doc comment.
|
|
8
|
+
- Settings at run time: `API_BASE_URL` (test environment), `API_TOKEN` (optional bearer token), `RUN_WRITE_TESTS`, `TEST_FILTER` (a folder or request name), `TEST_REPEAT`, read from the environment first, then `.env`.
|
|
9
9
|
- CI (when the project has no test job and Gate 4 approves adding one): `ci/github-actions.yml` → `.github/workflows/api-tests.yml`; inputs `target`, `filter`, `repeat` (1 or 3); linted with actionlint 1.7.12 + shellcheck 0.11.0; its test step ran 3× on 2026-10-15 against the previous starter layout, and the command it calls is unchanged.
|
|
10
10
|
|
|
11
11
|
Run here 2026-10-16 (newman 6.2.1) against a local stub that answers 200 only with the expected bearer token: 3/3 "assertions 1, failed 0"; wrong expected status fails with `expected response to have status code 404 but got 200`; the token appears 0 times in the output. Evidence: [run record](../../../../evals/workflows/runs/2026-10-16-starter-templates.md).
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
One worked resource, **products**: a client per resource (`ProductsApi`: create, get, delete), a **builder** that makes a valid product with a run-unique name, cases as tagged scenarios / named requests (their idiom), and two more cases: **TS-1** a created product can be read back unchanged (deleted in teardown, only after a successful create) and **TS-2** an unknown id answers 404. New token: `{{PRODUCTS_PATH}}`. Rename the resource to the app's own. Run here 2026-10-22 against `evals/fixtures/api-stub/server.mjs` (now with `/products`): 3/3 runs passed, fail check (create status 201 → 200) failed on the create assertion ([run record](../../../../evals/workflows/runs/2026-10-22-starter-v2.md)).
|
|
13
|
+
Run here 2026-11-12 in the new layout (newman 6.2.3, newman-reporter-htmlextra 1.23.1) against `evals/fixtures/api-stub/server.mjs`: 3/3 "requests 2, assertions 2, failed 0" (TS-1 skipped: `write`); 3/3 "requests 5, assertions 5" with `RUN_WRITE_TESTS=1`; created status 201 → 200 fails with `expected response to have status code 200 but got 201`; a wrong token exits 1 with the token 0 times in the output and the reports; a described case with no request stops the run (`Described cases with no request in the collection: TS-9`) ([run record](../../../../evals/workflows/runs/2026-11-12-suite-architecture.md)). Earlier layout: [2026-10-16](../../../../evals/workflows/runs/2026-10-16-starter-templates.md).
|