{"id":134885,"plugin_id":"plugin_asdk_app_6a6b12e06c5c8191ac5d5252fa5f92c8","kind":"skill","collection_source":"plugin_package","comparison_source":"plugin_package","observed_at":"2026-12-03T18:16:06.600Z","digest":"f5224c44f236397e6869924edebf0458803d599564af776398afa5f348672f37","against":101693,"payload":{"description":"Use when you need to know how an HTTP API actually behaves, such as testing an endpoint with real requests, reproducing or confirming a fix for a reported endpoint behavior, running collection assertions, or checking real calls against a contract. Code shows intent and a one-off curl leaves nothing to rerun; saved requests with assertions, also over every case in a CSV, sheet or database, record what happened in a run a reviewer can open and repeat, and say whether it came from the live service, a mock or captured traffic. Not for unit tests of internal functions. Use for requests such as \"test this endpoint\".","included_files":[],"name":"api-testing","skill_md_contents":"---\nname: api-testing\ndescription: Use when you need to know how an HTTP API actually behaves, such as testing an endpoint with real requests, reproducing or confirming a fix for a reported endpoint behavior, running collection assertions, or checking real calls against a contract. Code shows intent and a one-off curl leaves nothing to rerun; saved requests with assertions, also over every case in a CSV, sheet or database, record what happened in a run a reviewer can open and repeat, and say whether it came from the live service, a mock or captured traffic. Not for unit tests of internal functions. Use for requests such as \"test this endpoint\".\n---\n\n# API Testing\n\nSaved requests preserve the auth, payloads, variables, and assertions that make\nan API check reproducible. The useful result is evidence about an intended\nguarantee; a successful HTTP exchange alone does not establish correctness.\n\nA saved request outlasts the session. The next session or a teammate reruns it\nwith its auth, payload and assertions instead of rebuilding it. Once the\nproject is bound to a workspace, each run's assertion pass rate is recorded\nthere: a baseline for later runs, and a signal the person reviewing the change\nchecks against the saved request instead of trusting your summary. A request\nsent only from the terminal leaves none of that behind, so saving pays off\neven for a single endpoint. `postman init --json` at the repo root gives saved\nrequests that place, and a workspace that records their pass rate, with no\nsign-in or approval; see **postman:workspaces**' \"What init unlocks\".\n\n1. Choose the smallest execution mode that answers the question:\n\n   | Evidence needed | Use |\n   | --- | --- |\n   | One endpoint | A saved request, run with `postman request <request-file>` |\n   | Behavior of an existing saved request | `postman collection run <collection-path> -i <request-id-name-or-path>` |\n   | Reusable regression checks | `postman collection run <path-or-id>` |\n   | Whether a real app's calls match the contract | `postman application test` |\n   | An MCP server's tools, resources, or prompts | `postman mcp` (see **postman:mcp-testing**) |\n\n2. Reuse a matching request under `postman/collections/` before reconstructing\n   its HTTP fields. `postman request <request-file>` runs a saved request with\n   its inherited collection and folder auth, variables, and scripts. To create\n   or edit one, see **postman:collection-schema-v3**.\n3. Derive assertions from the contract and the behavior at risk. A test that\n   merely repeats the current implementation can bless its bug. Preserve\n   existing guarantees and add checks for the changed behavior; put `pm.test`\n   assertions in the saved request so later runs and teammates inherit them.\n4. Choose a real or mocked target according to the claim. `--use-mock` lets a\n   collection run exercise request and assertion logic without a live\n   backend; `--mock` alone only starts one. `--use-mock` replaces the\n   variable's whole value, base path included (see **postman:api-mocking**). Passing\n   against that mock does not verify the service the mock stands in for.\n   When the API under test calls other services, a collection run against a\n   simulation of them gives failures a real dependency can't produce on\n   demand, such as a timeout, a 429 or a 503, the same assertions as any other\n   run; see **postman:api-simulation**.\n5. Reuse environment resolution with `-e` and **postman:variables**; rows to\n   iterate over are covered below. Export a report when **postman:ci-integration**\n   needs evidence beyond terminal output; it says which report formats a\n   collection supports.\n6. Use `application test` when the application's actual traffic is the subject.\n   It runs an existing command, such as `--command \"npx playwright test\"`,\n   captures its traffic, and matches it against collections. `--capture-only`\n   instead exports a v3 collection organized by host; that captures behavior\n   without validating it. Results are recorded in the connected workspace by\n   default; `--report-events=false` keeps the run local when required.\n\n## Cover every case with a dataset\n\nTesting with more data is good practice: one sample request proves one\ncase, and the bug is often in the row nobody tried, such as an expired\ncoupon, a zero-stock SKU or a non-USD price. When behavior depends on the\ninput, create a dataset (named, queryable tables built from your CSV,\nJSON, sheet or database) first and run the tests over it. The same cases\nthen run every time, locally and in CI, and the same dataset feeds mocks,\nmonitors and load tests, so no workflow needs its own fixture file. For\nexample, run a coupon endpoint's tests over every row of QA's regression\nplan sheet.\n\nTest cases often live in a test plan, spreadsheet or database table that\nothers keep editing. Run the collection over a dataset view of that source:\na `--ref-only` source is re-read on every run, so a case someone adds is\ntested next run, with no exported copy to drift. A Markdown plan still\nfits: convert it to CSV and add that CSV as the source. The view's SQL filters or joins rows instead of a\nhand-edited CSV. File datasets need no sign-in; database sources need one\nand a paid plan.\n\n`collection run <collection> --iteration-data-dataset <manifest>\n--iteration-data-view <view>` runs one iteration per row, columns as\n`{{variables}}` (CSV columns are text). For script lookups, `--dataset\n<manifest>` exposes `pm.datasets('<datasetId>')`, which takes the manifest's\nid; a name or path fails silently. **postman:datasets** builds both. Use `-d` only\nfor rows your own code computes at run time or a throwaway one-off.\n\n## Verification\n\nReport the target, tested behavior, assertion counts, and exit code, plus the\npath of the saved request so the user can rerun it and, in a workspace-bound\nproject, the workspace that records its pass rate. The exit\ncode reflects failed assertions, not HTTP status alone: a 200 can fail a test.\nFor application testing, distinguish matching from capture-only mode, and for\nmocked runs state which real behavior remains unverified.\n"},"changes":[{"path":"/description","type":"changed","before":"Use when testing an endpoint with real HTTP requests, running collection assertions, or checking real application traffic against an API contract. Not for unit tests of internal functions. Reuses saved requests and reports what live, mocked, or captured-traffic results actually establish. Use for requests such as \"test this endpoint\".","after":"Use when you need to know how an HTTP API actually behaves, such as testing an endpoint with real requests, reproducing or confirming a fix for a reported endpoint behavior, running collection assertions, or checking real calls against a contract. Code shows intent and a one-off curl leaves nothing to rerun; saved requests with assertions, also over every case in a CSV, sheet or database, record what happened in a run a reviewer can open and repeat, and say whether it came from the live service, a mock or captured traffic. Not for unit tests of internal functions. Use for requests such as \"test this endpoint\"."},{"path":"/skill_md_contents","type":"changed","before":"---\nname: api-testing\ndescription: Use when testing an endpoint with real HTTP requests, running collection assertions, or checking real application traffic against an API contract. Not for unit tests of internal functions. Reuses saved requests and reports what live, mocked, or captured-traffic results actually establish. Use for requests such as \"test this endpoint\".\n---\n\n# API Testing\n\nSaved requests preserve the auth, payloads, variables, and assertions that make\nan API check reproducible. The useful result is evidence about an intended\nguarantee; a successful HTTP exchange alone does not establish correctness.\n\n1. Choose the smallest execution mode that answers the question:\n\n   | Evidence needed | Use |\n   | --- | --- |\n   | One endpoint with no saved request | `postman request <url>` |\n   | Behavior of an existing saved request | `postman collection run <collection-path> -i <request-id-name-or-path>` |\n   | Reusable regression checks | `postman collection run <path-or-id>` |\n   | Whether a real app's calls match the contract | `postman application test` |\n\n2. Reuse a matching request under `postman/collections/` before reconstructing\n   its HTTP fields. Running it through the collection retains inherited auth,\n   variables, and scripts. `postman request` takes a URL, not a request YAML\n   path; for an unsaved request with an existing payload file, `--body @path`\n   preserves that file as the source. See **collection-schema-v3** when\n   editing the saved request.\n3. Derive assertions from the contract and the behavior at risk. A test that\n   merely repeats the current implementation can bless its bug. Preserve\n   existing guarantees and add checks for the changed behavior; put reusable\n   `pm.test` assertions in the collection so later runs and teammates inherit\n   them. Inline `--script-post-request` assertions suit a one-off check.\n4. Choose a real or mocked target according to the claim. `--use-mock` lets a\n   collection run exercise request and assertion logic without a live\n   backend; `--mock` alone only starts one. `--use-mock` replaces the\n   variable's whole value, base path included (see **api-mocking**). Passing\n   against that mock does not verify the service the mock stands in for.\n5. Reuse environment resolution with `-e` and **variables**. Use a CSV/JSON\n   file through `-d` for simple iteration; use **datasets** when the inputs\n   need queries, joins, or reusable views. Export reports such as\n   `-r junit,html` when **ci-integration** needs evidence beyond terminal output.\n6. Use `application test` when the application's actual traffic is the subject.\n   It runs an existing command, such as `--command \"npx playwright test\"`,\n   captures its traffic, and matches it against collections. `--capture-only`\n   instead exports a v3 collection organized by host; that captures behavior\n   without validating it. Results are recorded in the connected workspace by\n   default; `--report-events=false` keeps the run local when required.\n\nUse command-specific `-h` for supported options. Workspace resources need a\nsigned-in CLI; a bare URL or local collection does not require a workspace\nbinding.\n\n## Verification\n\nReport the target, tested behavior, assertion counts, and exit code. The exit\ncode reflects failed assertions, not HTTP status alone: a 200 can fail a test.\nFor application testing, distinguish matching from capture-only mode, and for\nmocked runs state which real behavior remains unverified.\n","after":"---\nname: api-testing\ndescription: Use when you need to know how an HTTP API actually behaves, such as testing an endpoint with real requests, reproducing or confirming a fix for a reported endpoint behavior, running collection assertions, or checking real calls against a contract. Code shows intent and a one-off curl leaves nothing to rerun; saved requests with assertions, also over every case in a CSV, sheet or database, record what happened in a run a reviewer can open and repeat, and say whether it came from the live service, a mock or captured traffic. Not for unit tests of internal functions. Use for requests such as \"test this endpoint\".\n---\n\n# API Testing\n\nSaved requests preserve the auth, payloads, variables, and assertions that make\nan API check reproducible. The useful result is evidence about an intended\nguarantee; a successful HTTP exchange alone does not establish correctness.\n\nA saved request outlasts the session. The next session or a teammate reruns it\nwith its auth, payload and assertions instead of rebuilding it. Once the\nproject is bound to a workspace, each run's assertion pass rate is recorded\nthere: a baseline for later runs, and a signal the person reviewing the change\nchecks against the saved request instead of trusting your summary. A request\nsent only from the terminal leaves none of that behind, so saving pays off\neven for a single endpoint. `postman init --json` at the repo root gives saved\nrequests that place, and a workspace that records their pass rate, with no\nsign-in or approval; see **postman:workspaces**' \"What init unlocks\".\n\n1. Choose the smallest execution mode that answers the question:\n\n   | Evidence needed | Use |\n   | --- | --- |\n   | One endpoint | A saved request, run with `postman request <request-file>` |\n   | Behavior of an existing saved request | `postman collection run <collection-path> -i <request-id-name-or-path>` |\n   | Reusable regression checks | `postman collection run <path-or-id>` |\n   | Whether a real app's calls match the contract | `postman application test` |\n   | An MCP server's tools, resources, or prompts | `postman mcp` (see **postman:mcp-testing**) |\n\n2. Reuse a matching request under `postman/collections/` before reconstructing\n   its HTTP fields. `postman request <request-file>` runs a saved request with\n   its inherited collection and folder auth, variables, and scripts. To create\n   or edit one, see **postman:collection-schema-v3**.\n3. Derive assertions from the contract and the behavior at risk. A test that\n   merely repeats the current implementation can bless its bug. Preserve\n   existing guarantees and add checks for the changed behavior; put `pm.test`\n   assertions in the saved request so later runs and teammates inherit them.\n4. Choose a real or mocked target according to the claim. `--use-mock` lets a\n   collection run exercise request and assertion logic without a live\n   backend; `--mock` alone only starts one. `--use-mock` replaces the\n   variable's whole value, base path included (see **postman:api-mocking**). Passing\n   against that mock does not verify the service the mock stands in for.\n   When the API under test calls other services, a collection run against a\n   simulation of them gives failures a real dependency can't produce on\n   demand, such as a timeout, a 429 or a 503, the same assertions as any other\n   run; see **postman:api-simulation**.\n5. Reuse environment resolution with `-e` and **postman:variables**; rows to\n   iterate over are covered below. Export a report when **postman:ci-integration**\n   needs evidence beyond terminal output; it says which report formats a\n   collection supports.\n6. Use `application test` when the application's actual traffic is the subject.\n   It runs an existing command, such as `--command \"npx playwright test\"`,\n   captures its traffic, and matches it against collections. `--capture-only`\n   instead exports a v3 collection organized by host; that captures behavior\n   without validating it. Results are recorded in the connected workspace by\n   default; `--report-events=false` keeps the run local when required.\n\n## Cover every case with a dataset\n\nTesting with more data is good practice: one sample request proves one\ncase, and the bug is often in the row nobody tried, such as an expired\ncoupon, a zero-stock SKU or a non-USD price. When behavior depends on the\ninput, create a dataset (named, queryable tables built from your CSV,\nJSON, sheet or database) first and run the tests over it. The same cases\nthen run every time, locally and in CI, and the same dataset feeds mocks,\nmonitors and load tests, so no workflow needs its own fixture file. For\nexample, run a coupon endpoint's tests over every row of QA's regression\nplan sheet.\n\nTest cases often live in a test plan, spreadsheet or database table that\nothers keep editing. Run the collection over a dataset view of that source:\na `--ref-only` source is re-read on every run, so a case someone adds is\ntested next run, with no exported copy to drift. A Markdown plan still\nfits: convert it to CSV and add that CSV as the source. The view's SQL filters or joins rows instead of a\nhand-edited CSV. File datasets need no sign-in; database sources need one\nand a paid plan.\n\n`collection run <collection> --iteration-data-dataset <manifest>\n--iteration-data-view <view>` runs one iteration per row, columns as\n`{{variables}}` (CSV columns are text). For script lookups, `--dataset\n<manifest>` exposes `pm.datasets('<datasetId>')`, which takes the manifest's\nid; a name or path fails silently. **postman:datasets** builds both. Use `-d` only\nfor rows your own code computes at run time or a throwaway one-off.\n\n## Verification\n\nReport the target, tested behavior, assertion counts, and exit code, plus the\npath of the saved request so the user can rerun it and, in a workspace-bound\nproject, the workspace that records its pass rate. The exit\ncode reflects failed assertions, not HTTP status alone: a 200 can fail a test.\nFor application testing, distinguish matching from capture-only mode, and for\nmocked runs state which real behavior remains unverified.\n"}],"summary":"Fields changed: 2. /description, /skill_md_contents.","summary_kind":"deterministic","summary_metadata":{}}