|
| 1 | +--- |
| 2 | +id: run-ai-generated-api-tests |
| 3 | +title: Run AI-Generated API Tests |
| 4 | +sidebar_label: Run Tests |
| 5 | +description: Discover how to execute Keploy’s AI-generated API test suites—locally, on-demand from the console, or automatically in CI/CD—and interpret the results to keep your API stable. |
| 6 | +--- |
| 7 | + |
| 8 | +Once you’ve finished curating a suite , it’s time to hit **Run** and see how your API behaves against the latest contract. |
| 9 | + |
| 10 | +## Open the **Run Tests** Modal |
| 11 | + |
| 12 | +1. In the top-right of the Test-Suite workspace, click the green **Run Tests** button. |
| 13 | + |
| 14 | +2. The modal will open with **two tabs**: |
| 15 | + |
| 16 | + | Tab | What to Fill In | |
| 17 | + | ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 18 | + | **Endpoint** | **API Endpoint URL** – the base URL Keploy will prepend to every request in the suite (e.g. `https://jsonplaceholder.typicode.com`). | |
| 19 | + | **Authentication** | (Optional) Drop in a **Bearer**, **Basic**, or **API-key** credential that applies to every step.<br />You can also add per-step auth later in the test-step editor. | |
| 20 | + |
| 21 | +3. Click **Run Tests** to start execution. A toast confirmation appears and the modal closes. |
| 22 | + |
| 23 | +## Watch the Run Spin Up |
| 24 | + |
| 25 | +A **Run Badge** next to each suite row flips from _queued_ → _running_ → _✔ passed_ or _✖ failed_ in real time. |
| 26 | + |
| 27 | +## View the Test-Run Report |
| 28 | + |
| 29 | +1. Click the **📄 View Test Run Report** link that appears in the toast, or switch to the **Run Reports** icon in the sidebar. |
| 30 | +2. The summary table shows: |
| 31 | + |
| 32 | + | Column | Meaning | |
| 33 | + | --------------------------- | ---------------------------------------------------------- | |
| 34 | + | **Report ID** | UUID of this run (use it in CI logs or API calls). | |
| 35 | + | **Created At** | Timestamp the run was triggered. | |
| 36 | + | **Creator** | Email or token that kicked off the run. | |
| 37 | + | **Total / Passed / Failed** | Quick health check of your suite. | |
| 38 | + | **Status** | `QUEUED`, `RUNNING`, or `COMPLETED` (green if 100 % pass). | |
| 39 | + |
| 40 | +3. Click any **Report ID** to drill into per-test details: request/response dumps, assertion diff views, execution time, and re-run buttons for flaky steps. |
| 41 | + |
| 42 | +## Re-running After Fixes |
| 43 | + |
| 44 | +Iterate quickly: |
| 45 | + |
| 46 | +1. Patch your API or tweak assertions from the "Test Suite". |
| 47 | +2. Re-click **Run Tests**—Keploy re-uses the same Endpoint/Auth settings you last entered. |
| 48 | +3. Compare the new report with the previous one right in the dashboard to verify the fix. |
| 49 | + |
| 50 | +You now have a pipeline—from triggering the run to an all-green build—that safeguards your API contract in every environment. |
0 commit comments