@capagents/forgeqe 3.1.1 → 3.1.2
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/HOW_TO_USE.md +435 -78
- package/README.md +21 -6
- package/THIRD_PARTY_NOTICES.md +210 -1
- package/dist/docs-site/CREDITS.md +6 -0
- package/dist/docs-site/architecture-map/index.html +1 -1
- package/dist/docs-site/docs/app-theme.css +100 -8
- package/dist/docs-site/docs/architecture/index.html +210 -214
- package/dist/docs-site/docs/area-api/index.html +350 -0
- package/dist/docs-site/docs/area-automated-tests/index.html +967 -0
- package/dist/docs-site/docs/area-browser/index.html +430 -0
- package/dist/docs-site/docs/area-data/index.html +605 -0
- package/dist/docs-site/docs/area-desktop/index.html +755 -0
- package/dist/docs-site/docs/area-mobile/index.html +631 -0
- package/dist/docs-site/docs/area-operations/index.html +1069 -0
- package/dist/docs-site/docs/area-pull-requests/index.html +208 -0
- package/dist/docs-site/docs/area-quality/index.html +365 -0
- package/dist/docs-site/docs/area-release/index.html +320 -0
- package/dist/docs-site/docs/area-setup/index.html +1192 -0
- package/dist/docs-site/docs/area-systems/index.html +207 -0
- package/dist/docs-site/docs/area-test-cases/index.html +694 -0
- package/dist/docs-site/docs/containers/index.html +97 -104
- package/dist/docs-site/docs/cost-architecture/index.html +108 -112
- package/dist/docs-site/docs/custom-agents-first-run/index.html +19 -23
- package/dist/docs-site/docs/desktop/index.html +172 -162
- package/dist/docs-site/docs/desktop-ci/index.html +26 -33
- package/dist/docs-site/docs/evidence/index.html +253 -257
- package/dist/docs-site/docs/feature-test-prompts/index.html +66 -70
- package/dist/docs-site/docs/get-started/index.html +495 -0
- package/dist/docs-site/docs/graphify/index.html +42 -46
- package/dist/docs-site/docs/guardrails/index.html +17 -21
- package/dist/docs-site/docs/index.html +17 -6729
- package/dist/docs-site/docs/mobile/index.html +155 -162
- package/dist/docs-site/docs/model-routing/index.html +44 -51
- package/dist/docs-site/docs/overview/index.html +176 -0
- package/dist/docs-site/docs/product-graph/index.html +52 -55
- package/dist/docs-site/docs/product-knowledge/index.html +11 -15
- package/dist/docs-site/docs/product-views/index.html +53 -57
- package/dist/docs-site/docs/reference/index.html +379 -0
- package/dist/docs-site/docs/search.js +1 -1
- package/dist/docs-site/docs/using/index.html +480 -0
- package/dist/docs-site/docs/web-app/index.html +147 -93
- package/dist/docs-site/security/index.html +930 -0
- package/dist/docs-site/security/security-theme.css +161 -0
- package/dist/docs-site/security/security.js +1465 -0
- package/dist/docs-site/vendor/react-18.3.1.production.min.js +31 -0
- package/dist/docs-site/vendor/react-dom-18.3.1.production.min.js +267 -0
- package/dist/docs-site/vendor/reactflow-11.11.4.umd.js +10 -0
- package/dist/forgeqe.js +1902 -1895
- package/dist/web/THIRD_PARTY_NOTICES.md +0 -136
- package/dist/web/assets/Agent-CPhmZdFX.js +8 -0
- package/dist/web/assets/AgentWork-BXdN9xgi.js +2 -0
- package/dist/web/assets/ApiTests-Do3xLjfB.js +10 -0
- package/dist/web/assets/Browse-WVkJT6Bs.js +2 -0
- package/dist/web/assets/Chat-CDc9UcQX.js +3 -0
- package/dist/web/assets/CommandPalette-BAZm62lV.js +1 -0
- package/dist/web/assets/Compare-Br6n9T9L.js +1 -0
- package/dist/web/assets/Cost-BBUyBu3Y.js +1 -0
- package/dist/web/assets/Data-Ch2DPEWp.js +6 -0
- package/dist/web/assets/Desktop-Qzoq-cQv.js +1 -0
- package/dist/web/assets/DesktopReview-CF_jQYAM.js +1 -0
- package/dist/web/assets/Evidence-C72Lj5_Q.js +1 -0
- package/dist/web/assets/Explore-ObkEpUyS.js +2 -0
- package/dist/web/assets/Features-CQzNo_WP.js +1 -0
- package/dist/web/assets/Flags-0-RniPJm.js +2 -0
- package/dist/web/assets/Flaky-BPJvNLCA.js +1 -0
- package/dist/web/assets/Impact-CfccsL_k.js +3 -0
- package/dist/web/assets/Jobs-T6m4zhDy.js +5 -0
- package/dist/web/assets/KindPage-BDUvWe2p.js +6 -0
- package/dist/web/assets/Migration-Dqeh4x5u.js +2 -0
- package/dist/web/assets/PageAgent-DNjzIgeY.js +1 -0
- package/dist/web/assets/Product-nYV_scOV.js +7 -0
- package/dist/web/assets/Production-CGSbEWVa.js +1 -0
- package/dist/web/assets/Quality-BIypojZm.js +1 -0
- package/dist/web/assets/Readiness-BlRjwJRg.js +1 -0
- package/dist/web/assets/Record-v2KLI-_Z.js +1 -0
- package/dist/web/assets/Regression-B-jSt4Jz.js +5 -0
- package/dist/web/assets/RelationGraph-8J98lOVG.js +1 -0
- package/dist/web/assets/Reports-GI4u6SyW.js +2 -0
- package/dist/web/assets/Response-mhBThq2b.js +9 -0
- package/dist/web/assets/Responsive-DXu7Ra7K.js +3 -0
- package/dist/web/assets/RunDiff-D0SHDNp0.js +1 -0
- package/dist/web/assets/Runs-C1Gjdi9M.js +2 -0
- package/dist/web/assets/Settings-BGGeuvyF.js +21 -0
- package/dist/web/assets/Steps-D-YG0eJy.js +2 -0
- package/dist/web/assets/TestCases-DC4w77eQ.js +1 -0
- package/dist/web/assets/TestData-CvKWRVVV.js +2 -0
- package/dist/web/assets/TestDebt-D8YzN29_.js +1 -0
- package/dist/web/assets/TestManagement-C5cDCqrD.js +1 -0
- package/dist/web/assets/Tosca-BGUv3RiJ.js +3 -0
- package/dist/web/assets/WhatsNew-B_Gyuv8O.js +1 -0
- package/dist/web/assets/agents-C0Jg2pN8.js +1 -0
- package/dist/web/assets/coverage-BMP6ELFJ.js +5 -0
- package/dist/web/assets/dataParts-DbeCj9ga.js +3 -0
- package/dist/web/assets/diff-BStuTmsN.js +2 -0
- package/dist/web/assets/families-BBFFrUlo.js +1 -0
- package/dist/web/assets/filters-CnAMr286.js +1 -0
- package/dist/web/assets/fold-D_O_VZui.js +1 -0
- package/dist/web/assets/head-CRo48rPt.js +1 -0
- package/dist/web/assets/highlight-BcFZIf59.js +4 -0
- package/dist/web/assets/index-B3JsM7tv.js +64 -0
- package/dist/web/assets/index-CafApcbZ.css +2 -0
- package/dist/web/assets/input-CtzK50ZF.js +1 -0
- package/dist/web/assets/jsx-runtime-LKYXHABd.js +1 -0
- package/dist/web/assets/line-icons-rdF8DYDJ.js +1 -0
- package/dist/web/assets/logos-D4oVWzqa.js +1 -0
- package/dist/web/assets/palette-DAaGSao7.js +1 -0
- package/dist/web/assets/paletteCommands-Co-RlQ8q.js +1 -0
- package/dist/web/assets/parts-D357Wolo.js +1 -0
- package/dist/web/assets/productParts-B8oHRCJF.js +1 -0
- package/dist/web/assets/qualityParts-BLkmIfDY.js +1 -0
- package/dist/web/assets/recordTest-Cez2sDJO.js +1 -0
- package/dist/web/assets/rolldown-runtime-XKyaHtl9.js +1 -0
- package/dist/web/assets/route-BloYJWgw.js +1 -0
- package/dist/web/index.html +12 -6
- package/docs/ARCHITECTURE.md +1 -1
- package/docs/BASAL.md +1 -1
- package/docs/DESKTOP.md +20 -1
- package/docs/EVIDENCE.md +1 -1
- package/docs/MOBILE.md +4 -4
- package/docs/PRODUCT_KNOWLEDGE.md +2 -0
- package/docs/WEB_APP.md +114 -51
- package/docs/user-guide.html +404 -81
- package/forgeqe.example.yaml +3 -3
- package/package.json +1 -1
- package/prompts/page-differs.md +1 -1
- package/prompts/requests-rule.md +1 -1
- package/prompts/test-reviewer.md +1 -1
- package/prompts/test-rules.md +3 -4
- package/skills/web-guidance/LICENSE +202 -0
- package/skills/web-guidance/SKILL.md +76 -0
- package/skills/web-guidance/UPSTREAM +67 -0
- package/skills/web-guidance/references/accessibility/accessibility.md +585 -0
- package/skills/web-guidance/references/accessibility/accessible-error-announcement.md +302 -0
- package/skills/web-guidance/references/accessibility/accessible-generated-content.md +41 -0
- package/skills/web-guidance/references/accessibility/respect-os-text-scale.md +127 -0
- package/skills/web-guidance/references/css/responsive-design.md +16 -0
- package/skills/web-guidance/references/forms/autofill-address-form.md +86 -0
- package/skills/web-guidance/references/forms/autofill-payment-form.md +142 -0
- package/skills/web-guidance/references/forms/autofill-sign-in-form.md +145 -0
- package/skills/web-guidance/references/forms/autofill-sign-up-form.md +155 -0
- package/skills/web-guidance/references/forms/forms.md +415 -0
- package/skills/web-guidance/references/forms/ime-safe-enter-submit.md +115 -0
- package/skills/web-guidance/references/forms/required-field-feedback.md +317 -0
- package/skills/web-guidance/references/forms/select-menu-interaction.md +310 -0
- package/skills/web-guidance/references/forms/slider.md +184 -0
- package/skills/web-guidance/references/forms/sms-otp-form.md +208 -0
- package/skills/web-guidance/references/forms/switch.md +60 -0
- package/skills/web-guidance/references/forms/validate-input-after-interaction.md +406 -0
- package/skills/web-guidance/references/performance/break-up-long-tasks.md +64 -0
- package/skills/web-guidance/references/performance/identify-heavy-scripts.md +69 -0
- package/skills/web-guidance/references/performance/identify-inp-causes.md +105 -0
- package/skills/web-guidance/references/performance/interaction-paint-timing.md +200 -0
- package/skills/web-guidance/references/performance/optimize-image-priority.md +73 -0
- package/skills/web-guidance/references/performance/performance.md +384 -0
- package/skills/web-guidance/references/privacy/privacy.md +247 -0
- package/skills/web-guidance/references/security/passkey-authentication.md +218 -0
- package/skills/web-guidance/references/security/passkey-management.md +310 -0
- package/skills/web-guidance/references/security/passkey-reauthentication.md +142 -0
- package/skills/web-guidance/references/security/passkey-registration.md +186 -0
- package/skills/web-guidance/references/security/passkeys.md +39 -0
- package/skills/web-guidance/references/security/sanitize-untrusted-html.md +105 -0
- package/skills/web-guidance/references/security/secure-external-subresources.md +202 -0
- package/skills/web-guidance/references/security/security.md +390 -0
- package/skills/web-guidance/references/security/trusted-types.md +141 -0
- package/skills/web-guidance/references/security/validate-origins.md +197 -0
- package/skills/web-guidance/references/security/verify-email-ownership.md +235 -0
- package/skills/web-guidance/references/ui-atoms/position-aware-tooltips.md +173 -0
- package/skills/web-guidance/references/ui-atoms/responsive-table.md +122 -0
- package/skills/web-guidance/references/ui-atoms/viewport-aware-dropdowns.md +178 -0
- package/skills/web-guidance/references/ui-behaviors/drag-and-drop.md +108 -0
- package/skills/web-guidance/references/ui-behaviors/light-dismiss-a-dialog.md +89 -0
- package/skills/web-guidance/references/ui-behaviors/motion.md +97 -0
- package/skills/web-guidance/references/ui-behaviors/platform-controls-dismiss-dialog.md +40 -0
- package/skills/web-guidance/references/ui-behaviors/prevent-page-scroll-under-modal-dialog.md +59 -0
- package/skills/web-guidance/references/ui-behaviors/search-hidden-content.md +141 -0
- package/skills/web-guidance/references/ui-behaviors/sortable-table.md +140 -0
- package/skills/web-guidance/references/ui-components/accordion.md +343 -0
- package/skills/web-guidance/references/ui-components/breadcrumbs.md +168 -0
- package/skills/web-guidance/references/ui-components/carousel.md +206 -0
- package/skills/web-guidance/references/ui-components/checkbox.md +144 -0
- package/skills/web-guidance/references/ui-components/dialog.md +218 -0
- package/skills/web-guidance/references/ui-components/hovercard.md +391 -0
- package/skills/web-guidance/references/ui-components/menu.md +415 -0
- package/skills/web-guidance/references/ui-components/navbar.md +281 -0
- package/skills/web-guidance/references/ui-components/navigation-drawer.md +429 -0
- package/skills/web-guidance/references/ui-components/persistent-toast-notifications.md +185 -0
- package/skills/web-guidance/references/ui-components/progress.md +181 -0
- package/skills/web-guidance/references/ui-components/spinner.md +179 -0
- package/skills/web-guidance/references/ui-components/tabs.md +371 -0
- package/skills/web-guidance/references/ui-components/toolbar.md +277 -0
- package/skills/web-guidance/references/user-experience/form-factor-adaptation.md +120 -0
- package/skills/web-guidance/references/user-experience/natural-interactions.md +155 -0
- package/skills/web-guidance/references/visual-design/color.md +43 -0
- package/skills/web-guidance/references/visual-design/dark-mode.md +350 -0
- package/dist/web/assets/AgentWork-DwAI0_Of.js +0 -2
- package/dist/web/assets/ApiTests-C0vFSHmM.js +0 -10
- package/dist/web/assets/Browse-5jfdtRc5.js +0 -2
- package/dist/web/assets/Chat-B3uhI94O.js +0 -3
- package/dist/web/assets/CommandPalette-D2J4nf5y.js +0 -1
- package/dist/web/assets/Compare-CN75w1p9.js +0 -1
- package/dist/web/assets/Cost-QoxyjR95.js +0 -1
- package/dist/web/assets/Data-BAvkcBVt.js +0 -6
- package/dist/web/assets/Desktop-BXdOIalN.js +0 -1
- package/dist/web/assets/DesktopReview-Bl2SrPP0.js +0 -1
- package/dist/web/assets/Evidence-BJ_I52CD.js +0 -1
- package/dist/web/assets/Explore-D9AuyTip.js +0 -2
- package/dist/web/assets/Features-CusGMDR9.js +0 -1
- package/dist/web/assets/Flags-CycGFuUP.js +0 -2
- package/dist/web/assets/Flaky-BcSzJogN.js +0 -1
- package/dist/web/assets/Impact-CJHnyZ21.js +0 -3
- package/dist/web/assets/Jobs-4xcFzEFo.js +0 -5
- package/dist/web/assets/KindPage-BielEIej.js +0 -6
- package/dist/web/assets/Migration-NwanKpJg.js +0 -2
- package/dist/web/assets/PageAgent-CNw4NXva.js +0 -1
- package/dist/web/assets/Product-DS3LJZ4P.js +0 -7
- package/dist/web/assets/Production-D3zsyNIS.js +0 -1
- package/dist/web/assets/Quality-Ctj2YpC4.js +0 -1
- package/dist/web/assets/Readiness-DGcRr_co.js +0 -1
- package/dist/web/assets/Record-Cc-wGe_Y.js +0 -1
- package/dist/web/assets/Regression-DcsbrRa1.js +0 -5
- package/dist/web/assets/Reports-BkCn0-Sf.js +0 -2
- package/dist/web/assets/Response-BP0UwQcW.js +0 -9
- package/dist/web/assets/Responsive-C8U7dumd.js +0 -3
- package/dist/web/assets/RunDiff-BhABuhF_.js +0 -1
- package/dist/web/assets/Runs-OwdWEYBv.js +0 -2
- package/dist/web/assets/Steps-BvzbQyoD.js +0 -2
- package/dist/web/assets/TestCases-CLq_6JA5.js +0 -1
- package/dist/web/assets/TestData-B0oKAhp6.js +0 -2
- package/dist/web/assets/TestDebt-8NLQ5YV_.js +0 -1
- package/dist/web/assets/TestManagement-2LYQ7vsN.js +0 -1
- package/dist/web/assets/Tosca-DfvMpPTG.js +0 -3
- package/dist/web/assets/WhatsNew-BGFNGwqN.js +0 -1
- package/dist/web/assets/families-DYlN5v0i.js +0 -1
- package/dist/web/assets/filters-faaSnoIq.js +0 -1
- package/dist/web/assets/fold-CUjwWAK3.js +0 -1
- package/dist/web/assets/frame-BLPdAXUq.js +0 -13
- package/dist/web/assets/head-CsTxBsO0.js +0 -1
- package/dist/web/assets/index-CxiCvGZq.js +0 -78
- package/dist/web/assets/index-dOIsrzhD.css +0 -2
- package/dist/web/assets/line-icons-CwZWt93L.js +0 -1
- package/dist/web/assets/logos-dGuc1jIM.js +0 -1
- package/dist/web/assets/markdown-BI3F-SJ1.js +0 -10
- package/dist/web/assets/paletteCommands-QJiCuUEr.js +0 -1
- package/dist/web/assets/parts-CdF1f7yS.js +0 -1
- package/dist/web/assets/productParts-hNLD9fN0.js +0 -1
- package/dist/web/assets/qualityParts-CT25lBWU.js +0 -1
- package/dist/web/assets/recordTest-P792aBUt.js +0 -1
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title>API testing · ForgeQE docs</title>
|
|
7
|
+
<meta name="description" content="How to use ForgeQE: set it up, configure it, and every feature in detail, with what it needs and how to ask for it.">
|
|
8
|
+
<meta name="theme-color" content="#ffffff">
|
|
9
|
+
<link rel="canonical" href="https://forgeqe.qualityai.co.uk/docs/">
|
|
10
|
+
<link rel="icon" type="image/png" href="../../img/favicon.png">
|
|
11
|
+
<link rel="stylesheet" href="../docs.css">
|
|
12
|
+
<script src="../search.js" defer></script>
|
|
13
|
+
<script src="../docs.js" defer></script>
|
|
14
|
+
<link rel="stylesheet" href="../../app-look.css">
|
|
15
|
+
<link rel="stylesheet" href="../app-theme.css">
|
|
16
|
+
</head>
|
|
17
|
+
<body class="docs">
|
|
18
|
+
<svg aria-hidden="true" style="position:absolute;width:0;height:0;overflow:hidden" xmlns="http://www.w3.org/2000/svg"><!-- Phosphor Duotone (MIT), from web/src/flatIcons.ts --><symbol id="ph-context-engine" viewBox="0 0 256 256"><g fill="currentColor"><path d="m195.88 195.88l-39.6-39.6a40 40 0 0 0 0-56.56l39.6-39.6a96 96 0 0 1 0 135.76M60.12 60.12a96 96 0 0 0 0 135.76l39.6-39.6a40 40 0 0 1 0-56.56Z" opacity=".2"/><path d="M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m39.1 131.79a47.84 47.84 0 0 0 0-55.58l28.5-28.49a87.83 87.83 0 0 1 0 112.56ZM96 128a32 32 0 1 1 32 32a32 32 0 0 1-32-32m88.28-67.6l-28.49 28.5a47.84 47.84 0 0 0-55.58 0L71.72 60.4a87.83 87.83 0 0 1 112.56 0M60.4 71.72l28.5 28.49a47.84 47.84 0 0 0 0 55.58l-28.5 28.49a87.83 87.83 0 0 1 0-112.56M71.72 195.6l28.49-28.5a47.84 47.84 0 0 0 55.58 0l28.49 28.5a87.83 87.83 0 0 1-112.56 0"/></g></symbol><symbol id="ph-wikis" viewBox="0 0 256 256"><g fill="currentColor"><path d="M224 128a96 96 0 1 1-96-96a96 96 0 0 1 96 96" opacity=".2"/><path d="M140 180a12 12 0 1 1-12-12a12 12 0 0 1 12 12M128 72c-22.06 0-40 16.15-40 36v4a8 8 0 0 0 16 0v-4c0-11 10.77-20 24-20s24 9 24 20s-10.77 20-24 20a8 8 0 0 0-8 8v8a8 8 0 0 0 16 0v-.72c18.24-3.35 32-17.9 32-35.28c0-19.85-17.94-36-40-36m104 56A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104m-16 0a88 88 0 1 0-88 88a88.1 88.1 0 0 0 88-88"/></g></symbol><symbol id="ph-shield" viewBox="0 0 256 256"><g fill="currentColor"><path d="M216 56v56c0 96-88 120-88 120s-88-24-88-120V56a8 8 0 0 1 8-8h160a8 8 0 0 1 8 8" opacity=".2"/><path d="M208 40H48a16 16 0 0 0-16 16v56c0 52.72 25.52 84.67 46.93 102.19c23.06 18.86 46 25.26 47 25.53a8 8 0 0 0 4.2 0c1-.27 23.91-6.67 47-25.53C198.48 196.67 224 164.72 224 112V56a16 16 0 0 0-16-16m0 72c0 37.07-13.66 67.16-40.6 89.42a129.3 129.3 0 0 1-39.4 22.2a128.3 128.3 0 0 1-38.92-21.81C61.82 179.51 48 149.3 48 112V56h160ZM82.34 141.66a8 8 0 0 1 11.32-11.32L112 148.69l50.34-50.35a8 8 0 0 1 11.32 11.32l-56 56a8 8 0 0 1-11.32 0Z"/></g></symbol><symbol id="ph-architecture" viewBox="0 0 256 256"><g fill="currentColor"><path d="m224 80l-96 56l-96-56l96-56Z" opacity=".2"/><path d="M230.91 172a8 8 0 0 1-2.91 10.91l-96 56a8 8 0 0 1-8.06 0l-96-56A8 8 0 0 1 36 169.09l92 53.65l92-53.65a8 8 0 0 1 10.91 2.91M220 121.09l-92 53.65l-92-53.65a8 8 0 0 0-8 13.82l96 56a8 8 0 0 0 8.06 0l96-56a8 8 0 1 0-8.06-13.82M24 80a8 8 0 0 1 4-6.91l96-56a8 8 0 0 1 8.06 0l96 56a8 8 0 0 1 0 13.82l-96 56a8 8 0 0 1-8.06 0l-96-56A8 8 0 0 1 24 80m23.88 0L128 126.74L208.12 80L128 33.26Z"/></g></symbol><symbol id="ph-mail" viewBox="0 0 256 256"><g fill="currentColor"><path d="m224 56l-96 88l-96-88Z" opacity=".2"/><path d="M224 48H32a8 8 0 0 0-8 8v136a16 16 0 0 0 16 16h176a16 16 0 0 0 16-16V56a8 8 0 0 0-8-8m-20.57 16L128 133.15L52.57 64ZM216 192H40V74.19l82.59 75.71a8 8 0 0 0 10.82 0L216 74.19z"/></g></symbol><symbol id="ph-api" viewBox="0 0 256 256"><g fill="currentColor"><path d="M240 128c-64 0 0 88-64 88H80c-64 0 0-88-64-88c64 0 0-88 64-88h96c64 0 0 88 64 88" opacity=".2"/><path d="M43.18 128a29.8 29.8 0 0 1 8 10.26c4.8 9.9 4.8 22 4.8 33.74c0 24.31 1 36 24 36a8 8 0 0 1 0 16c-17.48 0-29.32-6.14-35.2-18.26c-4.8-9.9-4.8-22-4.8-33.74c0-24.31-1-36-24-36a8 8 0 0 1 0-16c23 0 24-11.69 24-36c0-11.72 0-23.84 4.8-33.74C50.68 38.14 62.52 32 80 32a8 8 0 0 1 0 16c-23 0-24 11.69-24 36c0 11.72 0 23.84-4.8 33.74A29.8 29.8 0 0 1 43.18 128M240 120c-23 0-24-11.69-24-36c0-11.72 0-23.84-4.8-33.74C205.32 38.14 193.48 32 176 32a8 8 0 0 0 0 16c23 0 24 11.69 24 36c0 11.72 0 23.84 4.8 33.74a29.8 29.8 0 0 0 8 10.26a29.8 29.8 0 0 0-8 10.26c-4.8 9.9-4.8 22-4.8 33.74c0 24.31-1 36-24 36a8 8 0 0 0 0 16c17.48 0 29.32-6.14 35.2-18.26c4.8-9.9 4.8-22 4.8-33.74c0-24.31 1-36 24-36a8 8 0 0 0 0-16"/></g></symbol></svg>
|
|
19
|
+
<svg aria-hidden="true" style="position:absolute;width:0;height:0;overflow:hidden" xmlns="http://www.w3.org/2000/svg"><!-- Lucide icons v0.454.0, ISC licence (https://lucide.dev) -->
|
|
20
|
+
<symbol id="i-monitor" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="14" x="2" y="3" rx="2" />
|
|
21
|
+
<line x1="8" x2="16" y1="21" y2="21" />
|
|
22
|
+
<line x1="12" x2="12" y1="17" y2="21" /></symbol>
|
|
23
|
+
<symbol id="i-smartphone" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="20" x="5" y="2" rx="2" ry="2" />
|
|
24
|
+
<path d="M12 18h.01" /></symbol>
|
|
25
|
+
<symbol id="i-braces" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1" />
|
|
26
|
+
<path d="M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1" /></symbol>
|
|
27
|
+
<symbol id="i-container" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z" />
|
|
28
|
+
<path d="M10 21.9V14L2.1 9.1" />
|
|
29
|
+
<path d="m10 14 11.9-6.9" />
|
|
30
|
+
<path d="M14 19.8v-8.1" />
|
|
31
|
+
<path d="M18 17.5V9.4" /></symbol>
|
|
32
|
+
<symbol id="i-shield-check" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" />
|
|
33
|
+
<path d="m9 12 2 2 4-4" /></symbol>
|
|
34
|
+
<symbol id="i-file-text" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" />
|
|
35
|
+
<path d="M14 2v4a2 2 0 0 0 2 2h4" />
|
|
36
|
+
<path d="M10 9H8" />
|
|
37
|
+
<path d="M16 13H8" />
|
|
38
|
+
<path d="M16 17H8" /></symbol>
|
|
39
|
+
<symbol id="i-terminal" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 17 10 11 4 5" />
|
|
40
|
+
<line x1="12" x2="20" y1="19" y2="19" /></symbol>
|
|
41
|
+
<symbol id="i-brain" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z" />
|
|
42
|
+
<path d="M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z" />
|
|
43
|
+
<path d="M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4" />
|
|
44
|
+
<path d="M17.599 6.5a3 3 0 0 0 .399-1.375" />
|
|
45
|
+
<path d="M6.003 5.125A3 3 0 0 0 6.401 6.5" />
|
|
46
|
+
<path d="M3.477 10.896a4 4 0 0 1 .585-.396" />
|
|
47
|
+
<path d="M19.938 10.5a4 4 0 0 1 .585.396" />
|
|
48
|
+
<path d="M6 18a4 4 0 0 1-1.967-.516" />
|
|
49
|
+
<path d="M19.967 17.484A4 4 0 0 1 18 18" /></symbol>
|
|
50
|
+
<symbol id="i-git-branch" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><line x1="6" x2="6" y1="3" y2="15" />
|
|
51
|
+
<circle cx="18" cy="6" r="3" />
|
|
52
|
+
<circle cx="6" cy="18" r="3" />
|
|
53
|
+
<path d="M18 9a9 9 0 0 1-9 9" /></symbol>
|
|
54
|
+
<symbol id="i-database" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><ellipse cx="12" cy="5" rx="9" ry="3" />
|
|
55
|
+
<path d="M3 5V19A9 3 0 0 0 21 19V5" />
|
|
56
|
+
<path d="M3 12A9 3 0 0 0 21 12" /></symbol>
|
|
57
|
+
<symbol id="i-zap" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z" /></symbol>
|
|
58
|
+
<symbol id="i-scan-search" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 7V5a2 2 0 0 1 2-2h2" />
|
|
59
|
+
<path d="M17 3h2a2 2 0 0 1 2 2v2" />
|
|
60
|
+
<path d="M21 17v2a2 2 0 0 1-2 2h-2" />
|
|
61
|
+
<path d="M7 21H5a2 2 0 0 1-2-2v-2" />
|
|
62
|
+
<circle cx="12" cy="12" r="3" />
|
|
63
|
+
<path d="m16 16-1.9-1.9" /></symbol>
|
|
64
|
+
<symbol id="i-bug" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m8 2 1.88 1.88" />
|
|
65
|
+
<path d="M14.12 3.88 16 2" />
|
|
66
|
+
<path d="M9 7.13v-1a3.003 3.003 0 1 1 6 0v1" />
|
|
67
|
+
<path d="M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6" />
|
|
68
|
+
<path d="M12 20v-9" />
|
|
69
|
+
<path d="M6.53 9C4.6 8.8 3 7.1 3 5" />
|
|
70
|
+
<path d="M6 13H2" />
|
|
71
|
+
<path d="M3 21c0-2.1 1.7-3.9 3.8-4" />
|
|
72
|
+
<path d="M20.97 5c0 2.1-1.6 3.8-3.5 4" />
|
|
73
|
+
<path d="M22 13h-4" />
|
|
74
|
+
<path d="M17.2 17c2.1.1 3.8 1.9 3.8 4" /></symbol>
|
|
75
|
+
<symbol id="i-repeat" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m17 2 4 4-4 4" />
|
|
76
|
+
<path d="M3 11v-1a4 4 0 0 1 4-4h14" />
|
|
77
|
+
<path d="m7 22-4-4 4-4" />
|
|
78
|
+
<path d="M21 13v1a4 4 0 0 1-4 4H3" /></symbol>
|
|
79
|
+
<symbol id="i-code" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6" />
|
|
80
|
+
<polyline points="8 6 2 12 8 18" /></symbol>
|
|
81
|
+
<symbol id="i-lock" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2" />
|
|
82
|
+
<path d="M7 11V7a5 5 0 0 1 10 0v4" /></symbol>
|
|
83
|
+
<symbol id="i-plug" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22v-5" />
|
|
84
|
+
<path d="M9 8V2" />
|
|
85
|
+
<path d="M15 8V2" />
|
|
86
|
+
<path d="M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z" /></symbol>
|
|
87
|
+
<symbol id="i-layers" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z" />
|
|
88
|
+
<path d="m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65" />
|
|
89
|
+
<path d="m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65" /></symbol>
|
|
90
|
+
<symbol id="i-chevron-right" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></symbol>
|
|
91
|
+
<symbol id="i-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="14" x="8" y="8" rx="2" ry="2" />
|
|
92
|
+
<path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" /></symbol>
|
|
93
|
+
<symbol id="i-play" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polygon points="6 3 20 12 6 21 6 3" /></symbol>
|
|
94
|
+
<symbol id="i-maximize" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 3 21 3 21 9" /><polyline points="9 21 3 21 3 15" /><line x1="21" x2="14" y1="3" y2="10" /><line x1="3" x2="10" y1="21" y2="14" /></symbol>
|
|
95
|
+
<symbol id="i-x" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18" /><path d="m6 6 12 12" /></symbol>
|
|
96
|
+
<symbol id="i-mail" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="16" x="2" y="4" rx="2" /><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" /></symbol>
|
|
97
|
+
<symbol id="i-message-square" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" /></symbol>
|
|
98
|
+
</svg>
|
|
99
|
+
|
|
100
|
+
<a class="skip" href="#main">Skip to content</a>
|
|
101
|
+
<header class="nav" id="navigation">
|
|
102
|
+
<div class="nav__bar">
|
|
103
|
+
<a class="nav__logo" href="https://forgeqe.github.io/" aria-label="ForgeQE by Capgemini, home"><picture><source srcset="../../img/wordmark-white.webp" media="(prefers-color-scheme: dark)"><img src="../../img/wordmark.webp" alt="" width="160" height="76"></picture><span class="nav__by">by <img src="../../img/capgemini-color.svg" alt="" width="92" height="21"></span></a>
|
|
104
|
+
<nav aria-label="Main"><ul class="nav__links"><li><a href="https://forgeqe.github.io/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-context-engine"/></svg>Product</a></li><li><a href="../index.html" aria-current="page"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs</a></li><li><a href="../../security/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-shield"/></svg>Security</a></li><li><a href="../../architecture-map/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-architecture"/></svg>Architecture</a></li><li><a href="https://forgeqe.github.io/contact/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-mail"/></svg>Contact us</a></li></ul></nav>
|
|
105
|
+
<div class="nav__end">
|
|
106
|
+
<button class="search-open" type="button" aria-haspopup="dialog"><svg class="icon" aria-hidden="true"><use href="#i-scan-search"></use></svg><span>Search</span><kbd>/</kbd></button>
|
|
107
|
+
<button class="nav__menu" type="button" aria-expanded="false" aria-controls="menu"><span class="sr-only">Open the menu</span><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 8h16M4 16h16"/></svg></button>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
<div class="menu" id="menu" hidden><ul><li><a href="https://forgeqe.github.io/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-context-engine"/></svg>Product</a></li><li><a href="../index.html" aria-current="page"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs</a></li><li><a href="../../security/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-shield"/></svg>Security</a></li><li><a href="../../architecture-map/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-architecture"/></svg>Architecture</a></li><li><a href="https://forgeqe.github.io/contact/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-mail"/></svg>Contact us</a></li></ul></div>
|
|
111
|
+
</header>
|
|
112
|
+
<div class="container docs-layout">
|
|
113
|
+
<nav class="docs-side" aria-label="Docs">
|
|
114
|
+
<a class="side-home" href="../index.html" aria-current="page"><svg class="pix ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs home</a>
|
|
115
|
+
<div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="index.html" aria-current="page"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="../area-setup/index.html"><span>Setup and configuration</span></a></li><li><a href="../area-operations/index.html"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>Architecture</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div>
|
|
116
|
+
</nav>
|
|
117
|
+
<main id="main" class="docs-main guide chapter-page">
|
|
118
|
+
<p class="crumbs"><a href="../index.html">Docs</a><span>/</span>Browser and tests</p>
|
|
119
|
+
<div class="page-bar"><details class="bar-menu"><summary>Docs menu</summary><nav class="bar-panel" aria-label="Docs menu"><div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="index.html" aria-current="page"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="../area-setup/index.html"><span>Setup and configuration</span></a></li><li><a href="../area-operations/index.html"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>Architecture</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div></nav></details><details class="bar-toc"><summary>On this page</summary><nav class="bar-panel" aria-label="On this page"><ul><li><a href="#cap-api-testing">API and contract testing</a></li><li><a href="#doc-how_to_use-api-and-contract-tests">API and contract tests</a></li><li><a href="#doc-how_to_use-end-to-end-api-scenarios">End-to-end API scenarios</a></li><li><a href="#cap-api-load-security">API load and security checks</a></li></ul></nav></details></div>
|
|
120
|
+
<h1 class="topic-h"><svg class="pix pix--title ph" aria-hidden="true" focusable="false"><use href="#ph-api"/></svg>API testing</h1>
|
|
121
|
+
<p class="guide-lead">Contracts and end-to-end scenarios, without a browser</p>
|
|
122
|
+
<article class="spec feat" id="cap-api-testing">
|
|
123
|
+
<div class="hd"><span class="mono">API</span><h3>API and contract testing</h3></div>
|
|
124
|
+
<p class="ds">Builds API contracts (status, schema, key fields) from the calls a browser run saw or from an API description (OpenAPI, Swagger, WSDL, GraphQL, .proto, gRPC reflection), and end-to-end API scenarios from runs, descriptions, test cases, or plain English. Runs them straight against the API without a browser, or writes them as tests in the repository. REST, GraphQL (with subscriptions), SOAP, gRPC (with streaming), WebSocket and Server-Sent Events. Comparing runs of one flow learns which values are parameters; contracts that stop passing after the app changed are learned again from a newer run, kept only when a replay passes and a person agrees. A mock server built from the contracts.</p>
|
|
125
|
+
<div class="facts">
|
|
126
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Turn the last run's API calls into tests</li><li>Test the API in openapi.yaml</li><li>Write API scenario tests for the order lifecycle</li><li>Import our Postman collection and send its calls</li><li>Add these cURL calls to the shop API</li><li>Heal the API contracts from the latest run</li></ul></div>
|
|
127
|
+
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need opt">Optional</span><span>The coding agent, Quill: a live model profile (or code.model) and the agent runtime, which forgeqe setup installs</span></li></ul></div>
|
|
128
|
+
<div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>Calls that change data run only when the user allows them, on a test environment, never production; healing never replays them.</li><li>A contract that fails can be a real defect: healing proposes a new version, and a person decides.</li></ul></div>
|
|
129
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>api_contracts</code> <code>run_api_contracts</code> <code>heal_api_contracts</code> <code>api_scenarios</code> <code>run_api_scenarios</code> <code>write_api_tests</code> <code>api_find_calls</code> <code>api_new_set</code> <code>api_add_calls</code> <code>api_import_collection</code></p></div>
|
|
130
|
+
</div>
|
|
131
|
+
<div class="detail"><span class="mono">In detail</span>
|
|
132
|
+
<section class="doc" id="doc-how_to_use-api-and-contract-tests">
|
|
133
|
+
<h4>API and contract tests</h4>
|
|
134
|
+
<div class="prose"><p>ForgeQE tests APIs directly too: REST, GraphQL (queries, mutations and subscriptions), SOAP, gRPC (unary and streaming), WebSocket and Server-Sent Events. API tests check the same logic as UI tests in a fraction of the time, and they do not break when the page changes. Contracts come from two places:</p>
|
|
135
|
+
<ul>
|
|
136
|
+
<li><strong>A browser run, a recording, or its latest try.</strong> Every browser run, every recording you make by hand, and the latest <strong>Re-run</strong> of a recording record the application's own API calls (XHR, fetch, event streams) in <code>network.json</code> in the run folder: method, URL, status, timing, and the request and response bodies when they are JSON, XML, or text. Secrets never reach the file: <code>Authorization</code>, cookies, and API key headers are dropped (only the kind of auth is kept, e.g. bearer), and fields named like a password, token, key, session, or card number are redacted in bodies and query strings. Only a few headers are kept (content type, accept, SOAP action); <code>api.keep_headers</code> adds others your API needs, such as <code>X-Tenant</code>, which the contracts' example calls then send too. A header that can carry a credential (<code>Authorization</code>, <code>Cookie</code>, or one named like a token, key, auth or session) is refused there. Analytics and monitoring calls are left out. "Turn the last run's API calls into tests" (<code>api_contracts</code> from <code>run</code>) groups the calls into operations: one per method and path, with ids in paths turned into <code>{id}</code> (<code>GET /api/orders/{id}</code>), GraphQL by operation name, SOAP by action, gRPC-web by method. Several calls to one operation make a better contract: a field in every answer is required, a value that differs between calls is not pinned. No model is used.</li>
|
|
137
|
+
<li><strong>An API description,</strong> by link or file: OpenAPI 3 or Swagger 2 (JSON or YAML, or the Swagger UI page, which ForgeQE looks behind for the document), WSDL for SOAP, a GraphQL endpoint (read by introspection) or an SDL or introspection file, <code>.proto</code> files, or <code>grpc://host:port</code> for a gRPC server with reflection (through <a href="https://github.com/fullstorydev/grpcurl" class="ext" rel="noopener">grpcurl</a>); client, server and bidi streaming rpcs become streaming contracts, and a GraphQL subscription becomes a <code>graphql-transport-ws</code> WebSocket contract. Each operation gets an example call from the description's examples; values it gives no example for are made up and the contract is marked as needing real values.</li>
|
|
138
|
+
</ul>
|
|
139
|
+
<p>Each contract has one example call and what its answer must have: the <strong>status</strong>, the <strong>content type</strong>, the body's <strong>schema</strong>, and <strong>key fields</strong> (ids, statuses, names, totals: present, with their type; a value only where it does not change between calls, like a status). GraphQL answers must have no <code>errors</code>; SOAP answers no <code>Fault</code> and the expected elements; gRPC calls the OK status. Contract sets are saved in <code>.forgeqe/reports/api/<id>/</code>: <code>contracts.json</code> (edit the examples freely, e.g. to give real ids) and <code>api.md</code>.</p>
|
|
140
|
+
<p>Then:</p>
|
|
141
|
+
<ul>
|
|
142
|
+
<li><strong>Run them now</strong> (<code>run_api_contracts</code>, or <code>forgeqe api run</code>): ForgeQE makes each call and checks the answer, without a browser or a model. Calls that change data (POST, PUT, PATCH, DELETE, mutations, SOAP and gRPC calls not named like reads) are left out unless you allow them, on a test environment; the agent asks first. Calls with made-up values are skipped until you give real ones. Results go to <code>results.json</code> and <code>junit.xml</code>, with <code>report.html</code> (each contract a case, its checks the steps, with what the API answered) and <code>suite.json</code> beside them; a 401 or 403 says which header the call needs.</li>
|
|
143
|
+
<li><strong>Calls the site's bot protection blocks.</strong> A site behind Cloudflare, Akamai, Imperva, DataDome or a similar service can answer a call that does not come from a browser with a challenge or block page (a 403, 429 or 503 with the service's marks, or HTML where the API answers JSON). ForgeQE tells that apart from the API's own refusal (a JSON 403 is the API's answer) and, with <code>api.browser_fallback</code> on (the default), sends a call that only reads again from a page of a real browser on the API's own site: the page loads first, so a challenge can set its cookie, and the call is made with <code>fetch()</code> in a part of the page the site's own scripts cannot see, so they never read its credentials. The result says "sent from a browser page". A call that changes data is never sent again. Contract runs, scenarios, healing and the API page's <strong>Send</strong> use it (the page says "Sent from a browser page" by the answer; <code>forgeqe web</code> keeps that browser for two minutes after the last blocked call); load tests and security checks never do. Turned off, a blocked call fails with "blocked" and the reason.</li>
|
|
144
|
+
<li><strong>Write them as tests</strong> (<code>write_api_tests</code>, or <code>forgeqe api tests</code>): Quill writes them in the repository's own framework and HTTP client (Playwright's <code>request</code> fixture, pytest with requests, REST Assured, RestSharp or HttpClient, supertest...) with the base URL from configuration and credentials from environment variables, and ForgeQE runs them until they pass.</li>
|
|
145
|
+
<li><strong>Heal them when the app changed</strong> (<code>heal_api_contracts</code>, or <code>forgeqe api heal [SET] --run RUN</code>): run the flow again in the browser, and ForgeQE runs the set's read-only calls, learns each one that fails again from the newer run (the same operation with a new answer, or the one call of the same method and step that moved, like <code>/api/v1/orders/{id}</code> to <code>/api/v2/orders/{id}</code>), and replays it. Only a version whose replay passes is offered, with what changed (path, status, fields now required or gone), and the set changes only when you agree (<code>--yes</code> in a terminal); the old <code>contracts.json</code> is kept in <code>history/</code>, and scenarios that still make the old call are named. A contract that fails can be a real defect, so nothing is changed on its own. Calls that change data are never replayed, contracts from a description are fixed in the description, and another site's call is never taken.</li>
|
|
146
|
+
</ul>
|
|
147
|
+
<p><strong>Learning what the caller chooses.</strong> One run cannot tell <code>/domains/github.com</code> from a fixed path. Give <code>api_contracts</code> other runs of the same flow (other data, another user: <code>compare_runs</code>, or <code>forgeqe api contracts --run RUN --compare RUN2,RUN3</code>) and the calls made in the same step, with the same method and the same number of path segments, are compared: a segment that differed becomes a parameter named for the segment before it (<code>GET /domains/{domain}</code>), when the first segment is the same, no more than half of them differ, and the answers have the same shape, so two endpoints are not made one. Each contract lists its <strong>inputs</strong> in <code>contracts.json</code>, <code>api.md</code> and on the API page (under the call's request, with a note when a call was learned again by healing): its path parameters, and the query keys and body fields whose values differed between calls (names only, never values). The example stays a real call, so it runs as it is.</p>
|
|
148
|
+
<p>Credentials for API calls go in <code>forgeqe.yaml</code>, as references to environment variables; the values are sent, never stored or shown to a model:</p>
|
|
149
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">api:
|
|
150
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> capture: true</span><span class="pad"> </span><span class="cm"><span class="h">#</span> record the application's API calls in every browser run (default)
|
|
151
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> base_url: https://staging.shop.example</span><span class="pad"> </span><span class="cm"><span class="h">#</span> where contracts run when not where they were recorded or described
|
|
152
|
+
</span></span><span class="ln"><span class="cmd"> headers:
|
|
153
|
+
</span></span><span class="ln"><span class="cmd"> Authorization: Bearer ${API_TOKEN}
|
|
154
|
+
</span></span><span class="ln"><span class="cmd"> X-Tenant: ${API_TENANT}
|
|
155
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> third_party: false</span><span class="pad"> </span><span class="cm"><span class="h">#</span> keep calls to other sites than the page's (sign-in providers, CDNs)
|
|
156
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> keep_headers: [X-Tenant]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> more headers to keep on captured calls, and to send in the calls made from them
|
|
157
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> browser_fallback: true</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a read-only call the site's bot protection blocks is sent again from a browser page
|
|
158
|
+
</span></span><span class="ln"><span class="cmd"> timeout_seconds: 30
|
|
159
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> oauth2:</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a bearer token fetched with the client-credentials grant (sent unless a call has its own Authorization)
|
|
160
|
+
</span></span><span class="ln"><span class="cmd"> token_url: https://login.shop.example/oauth2/token
|
|
161
|
+
</span></span><span class="ln"><span class="cmd"> client_id_env: SHOP_API_CLIENT_ID
|
|
162
|
+
</span></span><span class="ln"><span class="cmd"> client_secret_env: SHOP_API_CLIENT_SECRET
|
|
163
|
+
</span></span><span class="ln"><span class="cmd"> scope: orders.read orders.write
|
|
164
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> tls:</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a client certificate (mutual TLS) and the authorities trusted; keep the key out of the repository
|
|
165
|
+
</span></span><span class="ln"><span class="cmd"> cert: ~/.certs/shop-client.pem
|
|
166
|
+
</span></span><span class="ln"><span class="cmd"> key: ~/.certs/shop-client-key.pem
|
|
167
|
+
</span></span><span class="ln"><span class="cmd"> ca: ~/.certs/shop-ca.pem
|
|
168
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> load:</span><span class="pad"> </span><span class="cm"><span class="h">#</span> defaults for forgeqe api load
|
|
169
|
+
</span></span><span class="ln"><span class="cmd"> users: 10
|
|
170
|
+
</span></span><span class="ln"><span class="cmd"> limits: { p95_ms: 800, error_rate: 0.01 }
|
|
171
|
+
</span></span></code></pre></div>
|
|
172
|
+
<p><strong>Sign-in beyond fixed headers.</strong> <code>api.oauth2</code> fetches a bearer token with OAuth2's client-credentials grant from an
|
|
173
|
+
https token address only (Basic client auth, no redirect followed), keeps it in memory until just before it expires, and
|
|
174
|
+
sends it unless the call already carries an <code>Authorization</code>. <code>api.tls</code> gives a client certificate (mutual TLS), its key
|
|
175
|
+
and the authorities trusted, used for HTTP, SSE, WebSocket and gRPC; each must be a PEM file of its kind. The client id,
|
|
176
|
+
secret and key passphrase are read from the environment by name and stay out of model-run shells.</p>
|
|
177
|
+
<p><strong>Load and latency testing</strong> (<code>forgeqe api load [SET]</code>, or <code>run_api_load</code>): many virtual users repeat the set's
|
|
178
|
+
read-only calls for a time or a number of calls, each answer still checked as a contract. It reports each call's
|
|
179
|
+
latency (p50/p90/p95/p99), throughput and error rate, and fails when a limit (<code>p95_ms</code>, <code>p99_ms</code>, <code>error_rate</code>,
|
|
180
|
+
<code>min_rps</code>) is broken, writing <code>load.md</code>, <code>load.json</code> and <code>junit.xml</code>. Calls that change data are never load tested, and
|
|
181
|
+
an environment named like production is refused as a target (at most 50 users, 10 minutes, 20,000 calls).</p>
|
|
182
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">forgeqe api load --users 20 --duration 60 --p95-ms 800 --base-url https://qa.shop.example
|
|
183
|
+
</span></span></code></pre></div>
|
|
184
|
+
<p><strong>A mock server</strong> (<code>forgeqe api mock [SET]</code>): serves a mock of the set's REST, GraphQL and SOAP calls on <code>127.0.0.1</code>
|
|
185
|
+
until you stop it, so an app, a consumer, or an automation script can run against a stand-in for the real API — useful
|
|
186
|
+
for integration and end-to-end tests where the real dependency is missing, flaky, or a paid third party. (For a containerised mock that an environment's app points at for the whole session, the orchestrator's <code>mock_service</code> starts WireMock from a run, an OpenAPI description or a contract set, and takes the same rules file for conditional responses and fault or latency injection; stateful CRUD is served by this in-process mock.) It is guarded
|
|
187
|
+
by a random token (send <code>Authorization: Bearer <token></code>, or <code>X-Forgeqe-Mock-Token</code> when the consumer sends its own
|
|
188
|
+
<code>Authorization</code>) and refuses non-local browser origins. Each call is answered in three steps: the first matching
|
|
189
|
+
<strong>rule</strong>, then the <strong>stateful store</strong> when <code>--state</code> is on, then the contract's own example body.</p>
|
|
190
|
+
<ul>
|
|
191
|
+
<li>
|
|
192
|
+
<p><strong>Conditional responses</strong> come from a rules file (<code>--rules mocks.yaml</code>, YAML or JSON, read as untrusted — known keys
|
|
193
|
+
only, no code). A rule names an <code>operation</code> (a contract id) or a <code>method</code>+<code>path</code>, an optional <code>when</code> (match on path
|
|
194
|
+
params, query, headers, or body fields), and a <code>respond</code> (status, body, headers, a <code>delayMs</code>, or a <code>fault</code> of
|
|
195
|
+
<code>error</code> or <code>timeout</code>). The first rule that matches wins, so a specific case can precede a catch-all:</p>
|
|
196
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">state: true
|
|
197
|
+
</span></span><span class="ln"><span class="cmd">rules:
|
|
198
|
+
</span></span><span class="ln"><span class="cmd"> - operation: GET /orders/{id}
|
|
199
|
+
</span></span><span class="ln"><span class="cmd"> when: { path: { id: "5" } }
|
|
200
|
+
</span></span><span class="ln"><span class="cmd"> respond: { status: 200, body: { id: 5, status: paid } }
|
|
201
|
+
</span></span><span class="ln"><span class="cmd"> - operation: GET /orders/{id}
|
|
202
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> respond: { status: 404, body: { error: "not found" } }</span><span class="pad"> </span><span class="cm"><span class="h">#</span> fallback
|
|
203
|
+
</span></span><span class="ln"><span class="cmd"> - path: /orders
|
|
204
|
+
</span></span><span class="ln"><span class="cmd"> method: POST
|
|
205
|
+
</span></span><span class="ln"><span class="cmd"> when: { body: { item: reject } }
|
|
206
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> respond: { status: 422, body: { error: "bad item" } }</span><span class="pad"> </span><span class="cm"><span class="h">#</span> invalid-input case
|
|
207
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> - operation: GET /orders</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a degraded dependency
|
|
208
|
+
</span></span><span class="ln"><span class="cmd"> respond: { fault: error, delayMs: 800 }
|
|
209
|
+
</span></span></code></pre></div>
|
|
210
|
+
</li>
|
|
211
|
+
<li>
|
|
212
|
+
<p><strong>Stateful CRUD</strong> (<code>--state</code>, or <code>state: true</code> in the rules file): for each resource with a <code>/thing</code> and
|
|
213
|
+
<code>/thing/{id}</code>, a <code>POST</code> creates an entity (assigning an id), the matching <code>GET</code>/<code>PUT</code>/<code>PATCH</code>/<code>DELETE</code> then see it,
|
|
214
|
+
and the collection <code>GET</code> lists what exists — so a multi-step E2E flow holds together against the mock. The store is
|
|
215
|
+
in memory and resets on restart (or on a control-API reset).</p>
|
|
216
|
+
</li>
|
|
217
|
+
<li>
|
|
218
|
+
<p><strong>Fault and latency injection</strong>: a rule's <code>respond.delayMs</code> adds latency, <code>fault: error</code> forces a 5xx, and
|
|
219
|
+
<code>fault: timeout</code> holds the request to test how your automation handles a slow or failing dependency.</p>
|
|
220
|
+
</li>
|
|
221
|
+
<li>
|
|
222
|
+
<p><strong>Runtime control</strong> for scripts, over a token-guarded control API on the same server under <code>/__forgeqe/</code>:
|
|
223
|
+
<code>GET /__forgeqe/calls</code> returns the calls the mock received (for assertions), <code>POST /__forgeqe/override</code> pushes a rule
|
|
224
|
+
that takes effect immediately (same shape as a rules-file rule), and <code>POST /__forgeqe/reset</code> with
|
|
225
|
+
<code>{"what":"all|state|calls|overrides"}</code> clears it. So a test can set up a specific response, exercise its flow, then
|
|
226
|
+
read back what the mock saw — without restarting it.</p>
|
|
227
|
+
</li>
|
|
228
|
+
</ul>
|
|
229
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">forgeqe api mock orders --rules mocks.yaml --state --port 8080
|
|
230
|
+
</span></span><span class="ln ln--note"><span class="pad"></span><span class="cm"><span class="h">#</span> in the test: override one call, run the flow, then assert on the calls the mock received
|
|
231
|
+
</span></span><span class="ln"><span class="cmd">curl -s -XPOST localhost:8080/__forgeqe/override -H "authorization: Bearer $T" \
|
|
232
|
+
</span></span><span class="ln"><span class="cmd"> -d '{"operation":"GET /orders/{id}","respond":{"status":503}}'
|
|
233
|
+
</span></span><span class="ln"><span class="cmd">curl -s localhost:8080/__forgeqe/calls -H "authorization: Bearer $T"
|
|
234
|
+
</span></span></code></pre></div>
|
|
235
|
+
<p><strong>Pact consumer contracts</strong> (v2 and v3) come in through <strong>Add an API</strong> or the Agent tab alongside Postman collections:
|
|
236
|
+
a pact's interactions become contracts to verify against the real provider with <code>forgeqe api run</code>, an <code>equality</code>
|
|
237
|
+
matching rule becomes a key field, and credentials and off-provider paths are left out (ForgeQE verifies HTTP pacts,
|
|
238
|
+
not message pacts).</p>
|
|
239
|
+
<p><strong>API-security and robustness checks</strong> (<code>forgeqe api security [SET]</code>, or <code>run_api_security</code>): on an API you own and a
|
|
240
|
+
test environment, ForgeQE re-sends each call with malformed query, path and body values (wrong types, empty, oversized,
|
|
241
|
+
a traversal string, and marker strings) and with no credentials, then judges the server's <strong>own handling</strong> of that
|
|
242
|
+
input — never whether a probe "worked" as an attack. Findings map to the OWASP API Security Top 10: an unhandled <code>5xx</code>
|
|
243
|
+
or dropped connection on bad input, an error body that leaks a stack trace or database message, a marker reflected back
|
|
244
|
+
as unescaped HTML, a read that still answers with no credentials, an unexpected field accepted and echoed (mass
|
|
245
|
+
assignment), and missing transport-security headers. It writes <code>security.md</code>, <code>security.json</code> and <code>junit.xml</code>, and
|
|
246
|
+
exits non-zero on a high-severity finding. It refuses an environment named like production, and calls that change data
|
|
247
|
+
are probed only with <code>--allow-writes</code>, after you agree (at most 40 probes a call, 2,000 in all).</p>
|
|
248
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe api security --base-url https://qa.shop.example</span><span class="pad"> </span><span class="cm"><span class="h">#</span> exit 1 on a high-severity finding: a CI gate
|
|
249
|
+
</span></span></code></pre></div>
|
|
250
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">forgeqe api contracts --spec https://petstore3.swagger.io/api/v3/openapi.json
|
|
251
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe api contracts --run</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the latest browser run's API calls
|
|
252
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe api run --base-url https://qa.shop.example</span><span class="pad"> </span><span class="cm"><span class="h">#</span> exit 1 when a contract fails: a CI gate
|
|
253
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe api tests --repo ../app</span><span class="pad"> </span><span class="cm"><span class="h">#</span> Quill writes them as tests
|
|
254
|
+
</span></span></code></pre></div>
|
|
255
|
+
<p><strong>The Agent tab</strong> of the API tests page is a conversation: paste a link (an API description, a Postman collection,
|
|
256
|
+
the docs), cURL commands, or tell it about the API in your words, and attach a file (a Postman collection is imported
|
|
257
|
+
at once; an API description is kept in <code>.forgeqe/specs/</code> for the agent to read). The agent makes the API and its
|
|
258
|
+
calls in folders, as Postman would (<code>api_new_set</code>, <code>api_add_calls</code>, <code>api_import_collection</code>, <code>api_contracts</code>), sends
|
|
259
|
+
them, and says what it found; each API it made shows as a card to open on the Workbench tab. It never puts a
|
|
260
|
+
credential in a call: you set the API's sign-in on the Workbench.</p>
|
|
261
|
+
<p><strong>Postman collections</strong> (v2.0 and v2.1) come in from <strong>Add an API</strong> or the Agent tab, and go out with <strong>Export as a
|
|
262
|
+
Postman collection</strong>: requests become calls in their folders, a saved example's status what each call must answer;
|
|
263
|
+
only requests to the collection's own address are kept, and credentials (headers, secret variables, auth values)
|
|
264
|
+
never are. An exported collection has a test of what each call must answer and <code>{{variables}}</code> where credentials go.</p>
|
|
265
|
+
<p><strong>On the API tests page's Workbench tab</strong> (<code>forgeqe web</code>), it works like Postman, with an agent beside it. The APIs are on the left,
|
|
266
|
+
each with its <strong>calls</strong> (contracts) and <strong>flows</strong> (scenarios). Open a call to see and change its request (method,
|
|
267
|
+
path, params, headers, a JSON body), <strong>Send</strong> it and see what came back (body, headers, the checks that passed or
|
|
268
|
+
failed), <strong>Save</strong> it, and set <strong>what it must answer</strong> (the status, the statuses that also pass, fields with their
|
|
269
|
+
type or value), or take it from a right answer with <strong>Use as what it must answer</strong>. Pick the <strong>environment</strong> from
|
|
270
|
+
<code>env.yaml</code> at the top: calls go to its API app's address. Where it has none, the API's own address shows in full before
|
|
271
|
+
the path, and you can edit it (http, https, grpc or grpcs, with no user, query or fragment). A call can go to another
|
|
272
|
+
app of <code>env.yaml</code> instead: pick <code>{{app.NAME}}</code> before its path, or set one for the whole API under <strong>Calls go to</strong>. Its
|
|
273
|
+
address is that app's on the environment picked (else the active one), and a call whose app the environment does not
|
|
274
|
+
have is not sent. Rename an API, a call or a flow in place; an API's chevron collapses it. <strong>Run</strong> runs every call and then every flow there
|
|
275
|
+
(<code>forgeqe api run-all</code>). A call that changes data asks first: <strong>Send it once</strong>, or <strong>Always on</strong> that environment
|
|
276
|
+
(remembered for the API, never for an environment named like production). <strong>Sign in</strong> once per API: a bearer token,
|
|
277
|
+
an API key in a header, or a user name and password; the value you type goes to the credential store under a variable
|
|
278
|
+
name, and only the name is kept with the API. Credential headers cannot be typed into a call's headers, and answers
|
|
279
|
+
come back with credentials masked. Build a <strong>flow</strong> step by step from the API's calls: a step keeps a value from its
|
|
280
|
+
answer by a name (<code>id</code> as <code>itemId</code>), and later steps use it as <code>{{itemId}}</code> in their path or body; <code>{{$unique}}</code> is
|
|
281
|
+
new on each run. <strong>Ask the agent</strong> writes the tests, says why a call fails, or what is not tested yet, and its work
|
|
282
|
+
shows on the page. Adding an API runs its calls that only read at once. Each run keeps the start of every answer (secrets
|
|
283
|
+
masked), and each call shows how its last runs went.</p>
|
|
284
|
+
</div>
|
|
285
|
+
</section>
|
|
286
|
+
<section class="doc" id="doc-how_to_use-end-to-end-api-scenarios">
|
|
287
|
+
<h4>End-to-end API scenarios</h4>
|
|
288
|
+
<div class="prose"><p>A scenario is API calls in order, where later calls use values earlier answers gave: create a cart, add an item to <code>{{cartId}}</code>, place the order, read <code>{{orderId}}</code>. Each step has its own checks (status, schema, key fields). <code>{{$unique}}</code> is new on every run, for emails, usernames, and references that must not clash; <code>{{$uuid}}</code>, <code>{{$now}}</code>, and <code>{{$randomInt}}</code> are there too. Scenarios are saved in the contract set's <code>contracts.json</code> (edit them freely) and listed in <code>api.md</code>. There are four ways to make them (<code>api_scenarios</code>):</p>
|
|
289
|
+
<div class="tbl tbl--cols-3"><table>
|
|
290
|
+
<thead>
|
|
291
|
+
<tr><th>From</th><th>How</th><th>Model</th></tr>
|
|
292
|
+
</thead>
|
|
293
|
+
<tbody>
|
|
294
|
+
<tr><td data-label="From"><strong>A browser run</strong> (<code>--run</code>)</td><td data-label="How">The calls the application made, in order. A value an answer gave (an order id) that a later request sends, in its path, query, or body, becomes a variable: saved from that answer, used in that request. A GET made again (polling) is kept once. Emails and usernames sent to sign-up endpoints get <code>{{$unique}}</code>. The UI flow becomes the same flow at the API level.</td><td data-label="Model">no</td></tr>
|
|
295
|
+
<tr><td data-label="From"><strong>An API description</strong> (<code>--spec</code>, or a saved set)</td><td data-label="How">For each resource with an item path (<code>/pets</code> and <code>/pets/{petId}</code>): its <strong>lifecycle</strong> (create, read, update, read, delete, then read gives 404), <strong>browsing</strong> (the list, then its first item), the description's OpenAPI <strong>links</strong>, and <strong>negative cases</strong>: an id that does not exist gives 404, no credentials give 401 or 403, an empty body gives 400 or 422. The id comes from the links, else the field named like the path parameter, else <code>id</code>.</td><td data-label="Model">no</td></tr>
|
|
296
|
+
<tr><td data-label="From"><strong>Test cases</strong> (<code>--cases ado:2238,jira:SHOP-12</code>)</td><td data-label="How">One scenario per test case, planned by the model against the set's operations: the calls, the data, the values to carry, and the case's expected results as checks. Cases with nothing to test are left out with the reason (the same rules as the test case check). The scenario keeps its test case.</td><td data-label="Model">yes</td></tr>
|
|
297
|
+
<tr><td data-label="From"><strong>Plain English</strong> (<code>--text "..."</code>) or a story</td><td data-label="How">"Create a user, log in, add two items, check out, verify the order total." Planned the same way.</td><td data-label="Model">yes</td></tr>
|
|
298
|
+
</tbody>
|
|
299
|
+
</table></div>
|
|
300
|
+
<p>The planner only uses operations the set has: a step no operation does is listed as unmatched, never invented. Give it the API's operations with <code>--spec</code> (an OpenAPI or Swagger link or file) or a saved set; without a description, make contracts from a browser run first. Every plan is checked before it is saved (each operation exists, each variable is saved before it is used) and shown step by step; nothing runs until you run it.</p>
|
|
301
|
+
<p><code>run_api_scenarios</code> (or <code>forgeqe api run-scenarios</code>) runs them against the API, without a browser or a model: each step in order, the values passed on, every step's checks. A failed step stops its scenario, and the scenario's <strong>cleanup</strong> steps (deleting what it created) run, those whose values exist. Scenarios that change data run only after you agree (in CI: <code>--allow-writes</code>), on a test environment. Results go to <code>scenario-results.json</code> and <code>scenarios-junit.xml</code>, with <code>report.html</code> (each scenario a case, its calls the steps) and <code>suite.json</code> beside them. API runs count in the <a href="../area-release/index.html#doc-how_to_use-team-report">team report</a>.</p>
|
|
302
|
+
<p><strong>On your existing API automation.</strong> <code>write_api_tests</code> with <code>scenarios</code> (or <code>forgeqe api tests --scenarios</code>) has Quill write each scenario as an end-to-end test in the repository, built on what is already there:</p>
|
|
303
|
+
<ol>
|
|
304
|
+
<li>It maps the repository's API layer first: clients, request helpers, auth and base URL fixtures, data builders, schemas.</li>
|
|
305
|
+
<li>Each step calls the helper that already calls that operation; only operations without one get a new helper, in the same style.</li>
|
|
306
|
+
<li>It reuses helpers, never tests: a scenario never runs another test as a step, and sets up its own data.</li>
|
|
307
|
+
<li>A shared helper is only added to, never changed in a way its tests rely on. When Quill changes one, ForgeQE also runs the tests that use it, and sends any failure back until both pass.</li>
|
|
308
|
+
<li>A scenario test for a test case is named after it and recorded in <code>.forgeqe/test-cases.json</code>, and set as the Azure DevOps test case's Associated Automation when write-back is on.</li>
|
|
309
|
+
</ol>
|
|
310
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe api scenarios --run</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the latest browser run's flow, chained
|
|
311
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe api scenarios --spec https://shop.test/openapi.json</span><span class="pad"> </span><span class="cm"><span class="h">#</span> lifecycles, browsing, links, negative cases
|
|
312
|
+
</span></span><span class="ln"><span class="cmd">forgeqe api scenarios --cases ado:2238,ado:2239 --spec openapi.yaml
|
|
313
|
+
</span></span><span class="ln"><span class="cmd">forgeqe api scenarios --text "create a user, add two items, check out, the total is the sum" --spec openapi.yaml
|
|
314
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe api run-scenarios --allow-writes --base-url https://qa.shop.test</span><span class="pad"> </span><span class="cm"><span class="h">#</span> exit 1 when one fails
|
|
315
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe api tests --scenarios --repo ../api-tests</span><span class="pad"> </span><span class="cm"><span class="h">#</span> on the repo's existing helpers
|
|
316
|
+
</span></span></code></pre></div>
|
|
317
|
+
</div>
|
|
318
|
+
</section>
|
|
319
|
+
</div>
|
|
320
|
+
</article>
|
|
321
|
+
<article class="spec feat" id="cap-api-load-security">
|
|
322
|
+
<div class="hd"><span class="mono">API</span><h3>API load and security checks</h3></div>
|
|
323
|
+
<p class="ds">Load and latency testing of a contract set's read-only calls (virtual users, percentiles, throughput and error rate against limits), and robustness and API-security checks (OWASP API Top 10): malformed input, calls without credentials, leaked errors, mass assignment and missing security headers.</p>
|
|
324
|
+
<div class="facts">
|
|
325
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Load test the orders API with 20 users for a minute</li><li>Run OWASP security checks on the shop API</li><li>Fuzz the API's endpoints for robustness</li></ul></div>
|
|
326
|
+
<div class="fact"><span class="mono">What it needs</span><p class="muted">Nothing beyond ForgeQE itself.</p></div>
|
|
327
|
+
<div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>Load and security checks run against a test environment, never production; calls that change data are never load tested, and probed only when allowed.</li></ul></div>
|
|
328
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>run_api_load</code> <code>run_api_security</code></p></div>
|
|
329
|
+
</div>
|
|
330
|
+
<div class="detail"><span class="mono">In detail</span>
|
|
331
|
+
<p class="see">See <a href="#doc-how_to_use-api-and-contract-tests">API and contract tests</a>.</p>
|
|
332
|
+
</div>
|
|
333
|
+
</article>
|
|
334
|
+
|
|
335
|
+
<nav class="pager" aria-label="Previous and next">
|
|
336
|
+
<a class="prev" href="../feature-test-prompts/index.html"><small>Previous</small><span>Feature test prompts</span></a>
|
|
337
|
+
<a class="next" href="../area-quality/index.html"><small>Next</small><span>Quality checks</span></a>
|
|
338
|
+
</nav>
|
|
339
|
+
</main>
|
|
340
|
+
<aside class="docs-toc" aria-label="On this page"><p class="side-head">On this page</p><ul><li><a href="#cap-api-testing">API and contract testing</a></li><li><a href="#doc-how_to_use-api-and-contract-tests">API and contract tests</a></li><li><a href="#doc-how_to_use-end-to-end-api-scenarios">End-to-end API scenarios</a></li><li><a href="#cap-api-load-security">API load and security checks</a></li></ul></aside>
|
|
341
|
+
</div>
|
|
342
|
+
<footer class="foot">
|
|
343
|
+
<div class="container foot__row">
|
|
344
|
+
<a class="foot__brand" href="https://forgeqe.github.io/"><picture><source srcset="../../img/wordmark-white.webp" media="(prefers-color-scheme: dark)"><img src="../../img/wordmark.webp" alt="ForgeQE" width="160" height="76"></picture><span>AI writes the code. <em>ForgeQE proves it works.</em></span></a>
|
|
345
|
+
<nav aria-label="Footer"><ul><li><a href="https://forgeqe.github.io/">Product</a></li><li><a href="../index.html">Docs</a></li><li><a href="../../security/index.html">Security</a></li><li><a href="../../architecture-map/index.html">Architecture</a></li><li><a href="https://forgeqe.github.io/contact/">Contact us</a></li><li><a href="https://forgeqe.github.io/sample-report/">Sample report</a></li></ul></nav>
|
|
346
|
+
</div>
|
|
347
|
+
<p class="container foot__legal">© 2026 Capgemini · forgeqe.qualityai.co.uk · Built from ForgeQE's own docs</p>
|
|
348
|
+
</footer>
|
|
349
|
+
</body>
|
|
350
|
+
</html>
|