[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D98F2EYA62EQYX20R74GWS":3,"skill-same:01M7D98F2EYA62EQYX20R74GWS":72},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":14,"repositoryHtmlUrl":53,"repositoryHomepageUrl":6,"ownerHtmlUrl":54,"ownerBlogUrl":55,"ownerDescription":56,"updatedAt":57,"install":58,"resources":71},"01M7D98F2EYA62EQYX20R74GWS","Postman API Testing",null,"API testing skill using Postman and Newman, covering collections, environments, pre-request scripts, test scripts, and CI\u002FCD integration with Newman.","GrupoANDevelopment-m\u002Falberto-ai","GrupoANDevelopment-m","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F257455179?v=4","01M7D69X2N2KEVN0SJF6WGM6SH","Antônio  Ndombe","01M7D69X3P5JTT8H8S904N3888",0,"MIT","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fskills\u002Fqa\u002Fpostman-api\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: Postman API Testing\ndescription: API testing skill using Postman and Newman, covering collections, environments, pre-request scripts, test scripts, and CI\u002FCD integration with Newman.\nversion: 1.0.0\nauthor: thetestingacademy\nlicense: MIT\ntags: [postman, newman, api-testing, rest, collections, ci-cd]\ntestingTypes: [api]\nframeworks: [postman]\nlanguages: [javascript]\ndomains: [api]\nagents: [claude-code, cursor, github-copilot, windsurf, codex, aider, continue, cline, zed, bolt]\n---\n\n# Postman API Testing Skill\n\nYou are an expert QA engineer specializing in API testing with Postman and Newman. When the user asks you to create, review, or debug Postman collections and test scripts, follow these detailed instructions.\n\n## Core Principles\n\n1. **Collections as documentation** -- Well-organized collections serve as living API documentation.\n2. **Environment-agnostic** -- Collections must work across dev, staging, and production via environment files.\n3. **Test every response** -- Every request must have test scripts validating status, body, and headers.\n4. **Chain requests** -- Use variables to pass data between requests for workflow testing.\n5. **CI-ready** -- Collections must run via Newman in CI\u002FCD pipelines.\n\n## Project Structure\n\n```\npostman\u002F\n  collections\u002F\n    users-api.postman_collection.json\n    products-api.postman_collection.json\n    auth-api.postman_collection.json\n    e2e-workflows.postman_collection.json\n  environments\u002F\n    local.postman_environment.json\n    staging.postman_environment.json\n    production.postman_environment.json\n  globals\u002F\n    global-variables.postman_globals.json\n  data\u002F\n    users.csv\n    products.json\n  scripts\u002F\n    run-tests.sh\n    newman-config.js\n```\n\n## Collection Organization\n\n### Folder Structure\n\n```\nAPI Collection\n  ├── Auth\n  │     ├── Login\n  │     ├── Register\n  │     ├── Refresh Token\n  │     └── Logout\n  ├── Users\n  │     ├── Create User\n  │     ├── Get User by ID\n  │     ├── Update User\n  │     ├── Delete User\n  │     └── List Users\n  ├── Products\n  │     ├── Create Product\n  │     ├── Get Product\n  │     ├── Search Products\n  │     └── Delete Product\n  └── Workflows\n        ├── User Registration Flow\n        └── Complete Purchase Flow\n```\n\n## Environment Variables\n\n```json\n{\n  \"name\": \"Staging\",\n  \"values\": [\n    { \"key\": \"baseUrl\", \"value\": \"https:\u002F\u002Fstaging-api.example.com\", \"enabled\": true },\n    { \"key\": \"apiVersion\", \"value\": \"v1\", \"enabled\": true },\n    { \"key\": \"adminEmail\", \"value\": \"admin@example.com\", \"enabled\": true },\n    { \"key\": \"adminPassword\", \"value\": \"AdminPass123!\", \"enabled\": true },\n    { \"key\": \"authToken\", \"value\": \"\", \"enabled\": true },\n    { \"key\": \"userId\", \"value\": \"\", \"enabled\": true },\n    { \"key\": \"productId\", \"value\": \"\", \"enabled\": true }\n  ]\n}\n```\n\n## Pre-Request Scripts\n\n### Dynamic Data Generation\n\n```javascript\n\u002F\u002F Generate unique email for user creation\nconst timestamp = Date.now();\npm.variables.set(\"uniqueEmail\", `test-${timestamp}@example.com`);\npm.variables.set(\"uniqueName\", `TestUser_${timestamp}`);\npm.variables.set(\"requestId\", pm.variables.replaceIn(\"{{$guid}}\"));\n\n\u002F\u002F Generate random data\npm.variables.set(\"randomPrice\", (Math.random() * 100 + 1).toFixed(2));\npm.variables.set(\"randomQuantity\", Math.floor(Math.random() * 10) + 1);\n```\n\n### Authentication Token Management\n\n```javascript\n\u002F\u002F Pre-request script to ensure we have a valid token\nconst tokenExpiry = pm.environment.get(\"tokenExpiry\");\nconst currentTime = Date.now();\n\nif (!tokenExpiry || currentTime > parseInt(tokenExpiry)) {\n    \u002F\u002F Token is expired or missing, get a new one\n    const loginRequest = {\n        url: `${pm.environment.get(\"baseUrl\")}\u002Fapi\u002Fauth\u002Flogin`,\n        method: \"POST\",\n        header: {\n            \"Content-Type\": \"application\u002Fjson\",\n        },\n        body: {\n            mode: \"raw\",\n            raw: JSON.stringify({\n                email: pm.environment.get(\"adminEmail\"),\n                password: pm.environment.get(\"adminPassword\"),\n            }),\n        },\n    };\n\n    pm.sendRequest(loginRequest, (error, response) => {\n        if (error) {\n            console.error(\"Login failed:\", error);\n            return;\n        }\n\n        const jsonResponse = response.json();\n        pm.environment.set(\"authToken\", jsonResponse.token);\n        \u002F\u002F Set expiry to 55 minutes from now (assuming 1-hour token)\n        pm.environment.set(\"tokenExpiry\", String(Date.now() + 55 * 60 * 1000));\n        console.log(\"Token refreshed successfully\");\n    });\n}\n```\n\n### Request Signing\n\n```javascript\n\u002F\u002F HMAC signature for API requests\nconst crypto = require(\"crypto-js\");\nconst apiSecret = pm.environment.get(\"apiSecret\");\nconst timestamp = new Date().toISOString();\nconst body = pm.request.body ? pm.request.body.raw : \"\";\n\nconst signature = crypto.HmacSHA256(\n    `${pm.request.method}${pm.request.url}${timestamp}${body}`,\n    apiSecret\n).toString(crypto.enc.Hex);\n\npm.request.headers.add({\n    key: \"X-Timestamp\",\n    value: timestamp,\n});\npm.request.headers.add({\n    key: \"X-Signature\",\n    value: signature,\n});\n```\n\n## Test Scripts\n\n### Status Code Validation\n\n```javascript\n\u002F\u002F Basic status code check\npm.test(\"Status code is 200\", () => {\n    pm.response.to.have.status(200);\n});\n\n\u002F\u002F Status code in range\npm.test(\"Status code is success\", () => {\n    pm.expect(pm.response.code).to.be.oneOf([200, 201]);\n});\n\n\u002F\u002F Specific status for specific operations\npm.test(\"Resource created successfully\", () => {\n    pm.response.to.have.status(201);\n});\n```\n\n### Response Body Validation\n\n```javascript\nconst jsonData = pm.response.json();\n\npm.test(\"Response has required fields\", () => {\n    pm.expect(jsonData).to.have.property(\"id\");\n    pm.expect(jsonData).to.have.property(\"email\");\n    pm.expect(jsonData).to.have.property(\"name\");\n    pm.expect(jsonData).to.have.property(\"createdAt\");\n});\n\npm.test(\"Email matches request\", () => {\n    pm.expect(jsonData.email).to.eql(pm.variables.get(\"uniqueEmail\"));\n});\n\npm.test(\"Data types are correct\", () => {\n    pm.expect(jsonData.id).to.be.a(\"string\");\n    pm.expect(jsonData.email).to.be.a(\"string\");\n    pm.expect(jsonData.active).to.be.a(\"boolean\");\n    pm.expect(jsonData.createdAt).to.match(\u002F^\\d{4}-\\d{2}-\\d{2}\u002F);\n});\n\npm.test(\"Nested object validation\", () => {\n    pm.expect(jsonData.address).to.be.an(\"object\");\n    pm.expect(jsonData.address.city).to.be.a(\"string\");\n    pm.expect(jsonData.address.zip).to.match(\u002F^\\d{5}\u002F);\n});\n\npm.test(\"Array validation\", () => {\n    pm.expect(jsonData.items).to.be.an(\"array\");\n    pm.expect(jsonData.items).to.have.lengthOf.at.least(1);\n    jsonData.items.forEach((item) => {\n        pm.expect(item).to.have.property(\"id\");\n        pm.expect(item).to.have.property(\"name\");\n        pm.expect(item.price).to.be.above(0);\n    });\n});\n```\n\n### Header Validation\n\n```javascript\npm.test(\"Response has correct content type\", () => {\n    pm.response.to.have.header(\"Content-Type\", \"application\u002Fjson; charset=utf-8\");\n});\n\npm.test(\"Security headers are present\", () => {\n    pm.response.to.have.header(\"X-Content-Type-Options\");\n    pm.response.to.have.header(\"X-Frame-Options\");\n    pm.expect(pm.response.headers.get(\"X-Content-Type-Options\")).to.eql(\"nosniff\");\n});\n\npm.test(\"Response has request ID for tracing\", () => {\n    pm.response.to.have.header(\"X-Request-Id\");\n    pm.expect(pm.response.headers.get(\"X-Request-Id\")).to.not.be.empty;\n});\n```\n\n### Response Time Validation\n\n```javascript\npm.test(\"Response time is under 500ms\", () => {\n    pm.expect(pm.response.responseTime).to.be.below(500);\n});\n\npm.test(\"Response time is acceptable\", () => {\n    const threshold = pm.variables.get(\"responseTimeThreshold\") || 2000;\n    pm.expect(pm.response.responseTime).to.be.below(parseInt(threshold));\n});\n```\n\n### JSON Schema Validation\n\n```javascript\nconst schema = {\n    type: \"object\",\n    required: [\"id\", \"email\", \"name\", \"role\", \"createdAt\"],\n    properties: {\n        id: { type: \"string\", format: \"uuid\" },\n        email: { type: \"string\", format: \"email\" },\n        name: { type: \"string\", minLength: 1 },\n        role: { type: \"string\", enum: [\"admin\", \"user\", \"viewer\"] },\n        active: { type: \"boolean\" },\n        createdAt: { type: \"string\" },\n    },\n    additionalProperties: false,\n};\n\npm.test(\"Response matches JSON schema\", () => {\n    const jsonData = pm.response.json();\n    const valid = tv4.validate(jsonData, schema);\n    pm.expect(valid).to.be.true;\n    if (!valid) {\n        console.log(\"Schema validation error:\", tv4.error);\n    }\n});\n```\n\n### Variable Chaining Between Requests\n\n```javascript\n\u002F\u002F In \"Create User\" test script -- save the ID for subsequent requests\nconst jsonData = pm.response.json();\n\npm.test(\"Save user ID for next request\", () => {\n    pm.expect(jsonData.id).to.not.be.undefined;\n    pm.environment.set(\"userId\", jsonData.id);\n    console.log(\"Saved userId:\", jsonData.id);\n});\n\n\u002F\u002F In \"Get User\" test script -- verify the retrieved user matches\npm.test(\"Retrieved user matches created user\", () => {\n    const jsonData = pm.response.json();\n    pm.expect(jsonData.id).to.eql(pm.environment.get(\"userId\"));\n});\n```\n\n## Data-Driven Testing\n\n### CSV Data File\n\n```csv\nemail,name,role,expectedStatus\nvalid@example.com,Valid User,user,201\nadmin@example.com,Admin User,admin,201\n,Missing Email,user,400\ninvalid-email,Bad Format,user,400\n```\n\n### Using Data in Request\n\nIn the request body:\n```json\n{\n    \"email\": \"{{email}}\",\n    \"name\": \"{{name}}\",\n    \"role\": \"{{role}}\"\n}\n```\n\nIn the test script:\n```javascript\nconst expectedStatus = parseInt(pm.iterationData.get(\"expectedStatus\"));\n\npm.test(`Should return status ${expectedStatus}`, () => {\n    pm.response.to.have.status(expectedStatus);\n});\n\nif (expectedStatus === 201) {\n    pm.test(\"User created with correct data\", () => {\n        const jsonData = pm.response.json();\n        pm.expect(jsonData.email).to.eql(pm.iterationData.get(\"email\"));\n        pm.expect(jsonData.name).to.eql(pm.iterationData.get(\"name\"));\n    });\n}\n```\n\n## Newman CLI\n\n### Basic Execution\n\n```bash\n# Run a collection\nnewman run collections\u002Fusers-api.postman_collection.json \\\n  -e environments\u002Fstaging.postman_environment.json\n\n# Run with data file\nnewman run collections\u002Fusers-api.postman_collection.json \\\n  -e environments\u002Fstaging.postman_environment.json \\\n  -d data\u002Fusers.csv \\\n  -n 5  # iterations\n\n# Run specific folder\nnewman run collections\u002Fusers-api.postman_collection.json \\\n  --folder \"Users\" \\\n  -e environments\u002Fstaging.postman_environment.json\n\n# Run with reporters\nnewman run collections\u002Fusers-api.postman_collection.json \\\n  -e environments\u002Fstaging.postman_environment.json \\\n  -r cli,json,htmlextra \\\n  --reporter-json-export results\u002Freport.json \\\n  --reporter-htmlextra-export results\u002Freport.html\n\n# Run with timeout\nnewman run collections\u002Fusers-api.postman_collection.json \\\n  -e environments\u002Fstaging.postman_environment.json \\\n  --timeout-request 10000 \\\n  --timeout-script 5000\n```\n\n### Newman in CI\u002FCD (GitHub Actions)\n\n```yaml\nname: API Tests\non: [push, pull_request]\n\njobs:\n  api-tests:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n\n      - uses: actions\u002Fsetup-node@v4\n        with:\n          node-version: '20'\n\n      - name: Install Newman\n        run: |\n          npm install -g newman\n          npm install -g newman-reporter-htmlextra\n\n      - name: Run API Tests\n        run: |\n          newman run postman\u002Fcollections\u002Fusers-api.postman_collection.json \\\n            -e postman\u002Fenvironments\u002Fstaging.postman_environment.json \\\n            -r cli,htmlextra,json \\\n            --reporter-htmlextra-export reports\u002Fapi-report.html \\\n            --reporter-json-export reports\u002Fapi-results.json\n\n      - name: Upload Test Results\n        if: always()\n        uses: actions\u002Fupload-artifact@v4\n        with:\n          name: api-test-results\n          path: reports\u002F\n```\n\n## Best Practices\n\n1. **Use environment variables** -- Never hardcode URLs, credentials, or dynamic values.\n2. **Test every request** -- Every request should have at least status code and body validation.\n3. **Chain requests via variables** -- Use `pm.environment.set()` to pass data between requests.\n4. **Document in request descriptions** -- Explain what each request tests and expects.\n5. **Use folders for organization** -- Group related requests into logical folders.\n6. **Auto-refresh tokens** -- Use pre-request scripts to handle token expiry automatically.\n7. **Validate schemas** -- Use JSON schema validation for response structure verification.\n8. **Use collection-level scripts** -- Set up common variables and auth in collection pre-request scripts.\n9. **Export and version control** -- Always export collections and environments to source control.\n10. **Use Newman for CI** -- Never rely on manual Postman runs for test verification.\n\n## Anti-Patterns to Avoid\n\n1. **Hardcoded URLs** -- Always use `{{baseUrl}}` variable.\n2. **No test scripts** -- Requests without tests are just API calls, not tests.\n3. **Console.log as testing** -- Use `pm.test()` for proper assertions.\n4. **Sharing environments** -- Each developer should have their own environment file.\n5. **Ignoring cleanup** -- Requests that create data should have corresponding cleanup.\n6. **Order-dependent collections** -- While workflow tests need order, individual tests should not.\n7. **Not testing error cases** -- Include 400, 401, 404, and 500 scenarios.\n8. **Binary files in source control** -- Export as JSON, not Postman backup format.\n9. **Stale environments** -- Keep environment files synchronized with actual API configuration.\n10. **Not using data files** -- Repeating the same test with different data is what data files are for.\n","# Postman API Testing Skill\n\nYou are an expert QA engineer specializing in API testing with Postman and Newman. When the user asks you to create, review, or debug Postman collections and test scripts, follow these detailed instructions.\n\n## Core Principles\n\n1. **Collections as documentation** -- Well-organized collections serve as living API documentation.\n2. **Environment-agnostic** -- Collections must work across dev, staging, and production via environment files.\n3. **Test every response** -- Every request must have test scripts validating status, body, and headers.\n4. **Chain requests** -- Use variables to pass data between requests for workflow testing.\n5. **CI-ready** -- Collections must run via Newman in CI\u002FCD pipelines.\n\n## Project Structure\n\n```\npostman\u002F\n  collections\u002F\n    users-api.postman_collection.json\n    products-api.postman_collection.json\n    auth-api.postman_collection.json\n    e2e-workflows.postman_collection.json\n  environments\u002F\n    local.postman_environment.json\n    staging.postman_environment.json\n    production.postman_environment.json\n  globals\u002F\n    global-variables.postman_globals.json\n  data\u002F\n    users.csv\n    products.json\n  scripts\u002F\n    run-tests.sh\n    newman-config.js\n```\n\n## Collection Organization\n\n### Folder Structure\n\n```\nAPI Collection\n  ├── Auth\n  │     ├── Login\n  │     ├── Register\n  │     ├── Refresh Token\n  │     └── Logout\n  ├── Users\n  │     ├── Create User\n  │     ├── Get User by ID\n  │     ├── Update User\n  │     ├── Delete User\n  │     └── List Users\n  ├── Products\n  │     ├── Create Product\n  │     ├── Get Product\n  │     ├── Search Products\n  │     └── Delete Product\n  └── Workflows\n        ├── User Registration Flow\n        └── Complete Purchase Flow\n```\n\n## Environment Variables\n\n```json\n{\n  \"name\": \"Staging\",\n  \"values\": [\n    { \"key\": \"baseUrl\", \"value\": \"https:\u002F\u002Fstaging-api.example.com\", \"enabled\": true },\n    { \"key\": \"apiVersion\", \"value\": \"v1\", \"enabled\": true },\n    { \"key\": \"adminEmail\", \"value\": \"admin@example.com\", \"enabled\": true },\n    { \"key\": \"adminPassword\", \"value\": \"AdminPass123!\", \"enabled\": true },\n    { \"key\": \"authToken\", \"value\": \"\", \"enabled\": true },\n    { \"key\": \"userId\", \"value\": \"\", \"enabled\": true },\n    { \"key\": \"productId\", \"value\": \"\", \"enabled\": true }\n  ]\n}\n```\n\n## Pre-Request Scripts\n\n### Dynamic Data Generation\n\n```javascript\n\u002F\u002F Generate unique email for user creation\nconst timestamp = Date.now();\npm.variables.set(\"uniqueEmail\", `test-${timestamp}@example.com`);\npm.variables.set(\"uniqueName\", `TestUser_${timestamp}`);\npm.variables.set(\"requestId\", pm.variables.replaceIn(\"{{$guid}}\"));\n\n\u002F\u002F Generate random data\npm.variables.set(\"randomPrice\", (Math.random() * 100 + 1).toFixed(2));\npm.variables.set(\"randomQuantity\", Math.floor(Math.random() * 10) + 1);\n```\n\n### Authentication Token Management\n\n```javascript\n\u002F\u002F Pre-request script to ensure we have a valid token\nconst tokenExpiry = pm.environment.get(\"tokenExpiry\");\nconst currentTime = Date.now();\n\nif (!tokenExpiry || currentTime > parseInt(tokenExpiry)) {\n    \u002F\u002F Token is expired or missing, get a new one\n    const loginRequest = {\n        url: `${pm.environment.get(\"baseUrl\")}\u002Fapi\u002Fauth\u002Flogin`,\n        method: \"POST\",\n        header: {\n            \"Content-Type\": \"application\u002Fjson\",\n        },\n        body: {\n            mode: \"raw\",\n            raw: JSON.stringify({\n                email: pm.environment.get(\"adminEmail\"),\n                password: pm.environment.get(\"adminPassword\"),\n            }),\n        },\n    };\n\n    pm.sendRequest(loginRequest, (error, response) => {\n        if (error) {\n            console.error(\"Login failed:\", error);\n            return;\n        }\n\n        const jsonResponse = response.json();\n        pm.environment.set(\"authToken\", jsonResponse.token);\n        \u002F\u002F Set expiry to 55 minutes from now (assuming 1-hour token)\n        pm.environment.set(\"tokenExpiry\", String(Date.now() + 55 * 60 * 1000));\n        console.log(\"Token refreshed successfully\");\n    });\n}\n```\n\n### Request Signing\n\n```javascript\n\u002F\u002F HMAC signature for API requests\nconst crypto = require(\"crypto-js\");\nconst apiSecret = pm.environment.get(\"apiSecret\");\nconst timestamp = new Date().toISOString();\nconst body = pm.request.body ? pm.request.body.raw : \"\";\n\nconst signature = crypto.HmacSHA256(\n    `${pm.request.method}${pm.request.url}${timestamp}${body}`,\n    apiSecret\n).toString(crypto.enc.Hex);\n\npm.request.headers.add({\n    key: \"X-Timestamp\",\n    value: timestamp,\n});\npm.request.headers.add({\n    key: \"X-Signature\",\n    value: signature,\n});\n```\n\n## Test Scripts\n\n### Status Code Validation\n\n```javascript\n\u002F\u002F Basic status code check\npm.test(\"Status code is 200\", () => {\n    pm.response.to.have.status(200);\n});\n\n\u002F\u002F Status code in range\npm.test(\"Status code is success\", () => {\n    pm.expect(pm.response.code).to.be.oneOf([200, 201]);\n});\n\n\u002F\u002F Specific status for specific operations\npm.test(\"Resource created successfully\", () => {\n    pm.response.to.have.status(201);\n});\n```\n\n### Response Body Validation\n\n```javascript\nconst jsonData = pm.response.json();\n\npm.test(\"Response has required fields\", () => {\n    pm.expect(jsonData).to.have.property(\"id\");\n    pm.expect(jsonData).to.have.property(\"email\");\n    pm.expect(jsonData).to.have.property(\"name\");\n    pm.expect(jsonData).to.have.property(\"createdAt\");\n});\n\npm.test(\"Email matches request\", () => {\n    pm.expect(jsonData.email).to.eql(pm.variables.get(\"uniqueEmail\"));\n});\n\npm.test(\"Data types are correct\", () => {\n    pm.expect(jsonData.id).to.be.a(\"string\");\n    pm.expect(jsonData.email).to.be.a(\"string\");\n    pm.expect(jsonData.active).to.be.a(\"boolean\");\n    pm.expect(jsonData.createdAt).to.match(\u002F^\\d{4}-\\d{2}-\\d{2}\u002F);\n});\n\npm.test(\"Nested object validation\", () => {\n    pm.expect(jsonData.address).to.be.an(\"object\");\n    pm.expect(jsonData.address.city).to.be.a(\"string\");\n    pm.expect(jsonData.address.zip).to.match(\u002F^\\d{5}\u002F);\n});\n\npm.test(\"Array validation\", () => {\n    pm.expect(jsonData.items).to.be.an(\"array\");\n    pm.expect(jsonData.items).to.have.lengthOf.at.least(1);\n    jsonData.items.forEach((item) => {\n        pm.expect(item).to.have.property(\"id\");\n        pm.expect(item).to.have.property(\"name\");\n        pm.expect(item.price).to.be.above(0);\n    });\n});\n```\n\n### Header Validation\n\n```javascript\npm.test(\"Response has correct content type\", () => {\n    pm.response.to.have.header(\"Content-Type\", \"application\u002Fjson; charset=utf-8\");\n});\n\npm.test(\"Security headers are present\", () => {\n    pm.response.to.have.header(\"X-Content-Type-Options\");\n    pm.response.to.have.header(\"X-Frame-Options\");\n    pm.expect(pm.response.headers.get(\"X-Content-Type-Options\")).to.eql(\"nosniff\");\n});\n\npm.test(\"Response has request ID for tracing\", () => {\n    pm.response.to.have.header(\"X-Request-Id\");\n    pm.expect(pm.response.headers.get(\"X-Request-Id\")).to.not.be.empty;\n});\n```\n\n### Response Time Validation\n\n```javascript\npm.test(\"Response time is under 500ms\", () => {\n    pm.expect(pm.response.responseTime).to.be.below(500);\n});\n\npm.test(\"Response time is acceptable\", () => {\n    const threshold = pm.variables.get(\"responseTimeThreshold\") || 2000;\n    pm.expect(pm.response.responseTime).to.be.below(parseInt(threshold));\n});\n```\n\n### JSON Schema Validation\n\n```javascript\nconst schema = {\n    type: \"object\",\n    required: [\"id\", \"email\", \"name\", \"role\", \"createdAt\"],\n    properties: {\n        id: { type: \"string\", format: \"uuid\" },\n        email: { type: \"string\", format: \"email\" },\n        name: { type: \"string\", minLength: 1 },\n        role: { type: \"string\", enum: [\"admin\", \"user\", \"viewer\"] },\n        active: { type: \"boolean\" },\n        createdAt: { type: \"string\" },\n    },\n    additionalProperties: false,\n};\n\npm.test(\"Response matches JSON schema\", () => {\n    const jsonData = pm.response.json();\n    const valid = tv4.validate(jsonData, schema);\n    pm.expect(valid).to.be.true;\n    if (!valid) {\n        console.log(\"Schema validation error:\", tv4.error);\n    }\n});\n```\n\n### Variable Chaining Between Requests\n\n```javascript\n\u002F\u002F In \"Create User\" test script -- save the ID for subsequent requests\nconst jsonData = pm.response.json();\n\npm.test(\"Save user ID for next request\", () => {\n    pm.expect(jsonData.id).to.not.be.undefined;\n    pm.environment.set(\"userId\", jsonData.id);\n    console.log(\"Saved userId:\", jsonData.id);\n});\n\n\u002F\u002F In \"Get User\" test script -- verify the retrieved user matches\npm.test(\"Retrieved user matches created user\", () => {\n    const jsonData = pm.response.json();\n    pm.expect(jsonData.id).to.eql(pm.environment.get(\"userId\"));\n});\n```\n\n## Data-Driven Testing\n\n### CSV Data File\n\n```csv\nemail,name,role,expectedStatus\nvalid@example.com,Valid User,user,201\nadmin@example.com,Admin User,admin,201\n,Missing Email,user,400\ninvalid-email,Bad Format,user,400\n```\n\n### Using Data in Request\n\nIn the request body:\n```json\n{\n    \"email\": \"{{email}}\",\n    \"name\": \"{{name}}\",\n    \"role\": \"{{role}}\"\n}\n```\n\nIn the test script:\n```javascript\nconst expectedStatus = parseInt(pm.iterationData.get(\"expectedStatus\"));\n\npm.test(`Should return status ${expectedStatus}`, () => {\n    pm.response.to.have.status(expectedStatus);\n});\n\nif (expectedStatus === 201) {\n    pm.test(\"User created with correct data\", () => {\n        const jsonData = pm.response.json();\n        pm.expect(jsonData.email).to.eql(pm.iterationData.get(\"email\"));\n        pm.expect(jsonData.name).to.eql(pm.iterationData.get(\"name\"));\n    });\n}\n```\n\n## Newman CLI\n\n### Basic Execution\n\n```bash\n# Run a collection\nnewman run collections\u002Fusers-api.postman_collection.json \\\n  -e environments\u002Fstaging.postman_environment.json\n\n# Run with data file\nnewman run collections\u002Fusers-api.postman_collection.json \\\n  -e environments\u002Fstaging.postman_environment.json \\\n  -d data\u002Fusers.csv \\\n  -n 5  # iterations\n\n# Run specific folder\nnewman run collections\u002Fusers-api.postman_collection.json \\\n  --folder \"Users\" \\\n  -e environments\u002Fstaging.postman_environment.json\n\n# Run with reporters\nnewman run collections\u002Fusers-api.postman_collection.json \\\n  -e environments\u002Fstaging.postman_environment.json \\\n  -r cli,json,htmlextra \\\n  --reporter-json-export results\u002Freport.json \\\n  --reporter-htmlextra-export results\u002Freport.html\n\n# Run with timeout\nnewman run collections\u002Fusers-api.postman_collection.json \\\n  -e environments\u002Fstaging.postman_environment.json \\\n  --timeout-request 10000 \\\n  --timeout-script 5000\n```\n\n### Newman in CI\u002FCD (GitHub Actions)\n\n```yaml\nname: API Tests\non: [push, pull_request]\n\njobs:\n  api-tests:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n\n      - uses: actions\u002Fsetup-node@v4\n        with:\n          node-version: '20'\n\n      - name: Install Newman\n        run: |\n          npm install -g newman\n          npm install -g newman-reporter-htmlextra\n\n      - name: Run API Tests\n        run: |\n          newman run postman\u002Fcollections\u002Fusers-api.postman_collection.json \\\n            -e postman\u002Fenvironments\u002Fstaging.postman_environment.json \\\n            -r cli,htmlextra,json \\\n            --reporter-htmlextra-export reports\u002Fapi-report.html \\\n            --reporter-json-export reports\u002Fapi-results.json\n\n      - name: Upload Test Results\n        if: always()\n        uses: actions\u002Fupload-artifact@v4\n        with:\n          name: api-test-results\n          path: reports\u002F\n```\n\n## Best Practices\n\n1. **Use environment variables** -- Never hardcode URLs, credentials, or dynamic values.\n2. **Test every request** -- Every request should have at least status code and body validation.\n3. **Chain requests via variables** -- Use `pm.environment.set()` to pass data between requests.\n4. **Document in request descriptions** -- Explain what each request tests and expects.\n5. **Use folders for organization** -- Group related requests into logical folders.\n6. **Auto-refresh tokens** -- Use pre-request scripts to handle token expiry automatically.\n7. **Validate schemas** -- Use JSON schema validation for response structure verification.\n8. **Use collection-level scripts** -- Set up common variables and auth in collection pre-request scripts.\n9. **Export and version control** -- Always export collections and environments to source control.\n10. **Use Newman for CI** -- Never rely on manual Postman runs for test verification.\n\n## Anti-Patterns to Avoid\n\n1. **Hardcoded URLs** -- Always use `{{baseUrl}}` variable.\n2. **No test scripts** -- Requests without tests are just API calls, not tests.\n3. **Console.log as testing** -- Use `pm.test()` for proper assertions.\n4. **Sharing environments** -- Each developer should have their own environment file.\n5. **Ignoring cleanup** -- Requests that create data should have corresponding cleanup.\n6. **Order-dependent collections** -- While workflow tests need order, individual tests should not.\n7. **Not testing error cases** -- Include 400, 401, 404, and 500 scenarios.\n8. **Binary files in source control** -- Export as JSON, not Postman backup format.\n9. **Stale environments** -- Keep environment files synchronized with actual API configuration.\n10. **Not using data files** -- Repeating the same test with different data is what data files are for.\n",{"name":5,"tags":24,"agents":31,"author":42,"domains":43,"license":15,"version":45,"languages":46,"frameworks":48,"description":7,"testingTypes":49},[25,26,27,28,29,30],"postman","newman","api-testing","rest","collections","ci-cd",[32,33,34,35,36,37,38,39,40,41],"claude-code","cursor","github-copilot","windsurf","codex","aider","continue","cline","zed","bolt","thetestingacademy",[44],"api","1.0.0",[47],"javascript",[25],[44],"main","eac438ea9216a7cb8a570cab803eb01eeafc6793","skills\u002Fqa\u002Fpostman-api","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m","https:\u002F\u002Fid-preview--d5bef06d-6c9e-4563-a3d4-a855b9d61610.lovable.app\u002F","Eu sou Antonio B. B. Ndombe \r\nEu sou um Pesquisador e desenvolvedor de sistema autonomia cognitivos, fundador de sistemas ODCs ( organismos digital conscientes)","2026-11-04 06:53:39",{"source":8,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add GrupoANDevelopment-m\u002Falberto-ai --skill \"Postman API Testing\"",{"tool":64,"command":65},"bunx","bunx skills add GrupoANDevelopment-m\u002Falberto-ai --skill \"Postman API Testing\"",{"tool":67,"command":68},"pnpm","pnpm dlx skills add GrupoANDevelopment-m\u002Falberto-ai --skill \"Postman API Testing\"","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fskills\u002Fqa\u002Fpostman-api\u002FSKILL.md",true,[],[73,81,88,95,102,109],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":77,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7DASC6FSCJP49JZBSK0NY1Z","nemoclaw-user-reference","Describes the NemoClaw integration layer and blueprint architecture and how they orchestrate compatible agent sandboxes. Use when looking up architecture, agent integration, plugin structure, or blueprint design. Trigger keywords - nemoclaw architecture, nemoclaw agent architecture, nemoclaw plugin blueprint structure, nemoclaw vs openshell, which cli, nemoclaw cli, openshell cli, sandbox commands, nemoclaw cli commands, nemoclaw command reference, nemoclaw network policy, sandbox egress control operator approval, nemoclaw troubleshooting, nemoclaw debug sandbox issues.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-reference\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":77,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7DAS5S79VK33XFGVAM2TFWF","nemoclaw-user-overview","Explains how OpenClaw, OpenShell, and NemoClaw form the ecosystem, NemoClaw's position in the stack, what NemoClaw adds beyond the community sandbox, and when to prefer NemoClaw versus integrating OpenShell and OpenClaw directly. Use when users ask about the relationship between OpenClaw, OpenShell, and NemoClaw, or when to use NemoClaw versus OpenShell. Trigger keywords - nemoclaw ecosystem, openclaw openshell, nemoclaw vs openshell, sandboxed openclaw, how nemoclaw works, nemoclaw sandbox lifecycle blueprint, nemoclaw overview, openclaw always-on assistants, nvidia openshell, nvidia nemotron, nemoclaw release notes, nemoclaw changelog.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-overview\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":77,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7DAS0PQEMET5MNGZ1ABSZVS","nemoclaw-user-monitor-sandbox","Inspects sandbox health, traces agent behavior, and diagnoses problems. Use when monitoring a running sandbox, debugging agent issues, or checking sandbox logs. Trigger keywords - monitor nemoclaw sandbox, debug nemoclaw agent issues.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-monitor-sandbox\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":77,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M7DARQYGF7E9A69VH6S3CGN9","nemoclaw-user-manage-sandboxes","Explains operational tasks after the quickstart: listing sandboxes, status and health checks, logs, diagnostics, port forwards, multiple sandboxes, credential reset, rebuilds, network presets, upgrades, and uninstall. Trigger keywords - manage nemoclaw sandboxes, nemoclaw status, nemoclaw list, nemoclaw dashboard port, nemoclaw rebuild, nemoclaw upgrade sandboxes, nemoclaw uninstall, sandbox mutability, sandbox runtime configuration, sandbox rebuild, nemoclaw backup, nemoclaw restore, workspace backup, openshell sandbox download upload, nemoclaw messaging channels, nemoclaw telegram, nemoclaw discord, nemoclaw slack, nemoclaw wechat, nemoclaw whatsapp, openshell channel messaging, nemoclaw workspace files, soul.md, user.md, identity.md, agents.md, sandbox persistence.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-manage-sandboxes\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":77,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M7DARH8BRTG51TRCAB7YWDJ4","nemoclaw-user-manage-policy","Adds, removes, or modifies allowed endpoints in the sandbox policy. Use when customizing network policy, changing egress rules, or configuring sandbox endpoint access. Trigger keywords - customize nemoclaw network policy, sandbox egress policy configuration, nemoclaw integration policy examples, post-install policy setup, openshell approval workflow, policy preset, nemoclaw approve network requests, sandbox egress approval tui.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-manage-policy\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":77,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":19},"01M7DARAT62M2VR37590VCZ5NS","nemoclaw-user-get-started","Installs NemoClaw, launches a sandbox, and runs the first agent prompt. Use when onboarding, installing, or launching a NemoClaw sandbox for the first time. Trigger keywords - nemoclaw quickstart, install nemoclaw openclaw sandbox, nemohermes quickstart, hermes agent nemoclaw, run hermes openshell sandbox, nemoclaw prerequisites, nemoclaw supported platforms, nemoclaw hardware software, nemoclaw windows wsl2 setup, nemoclaw install windows docker desktop.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-get-started\u002FSKILL.md",[],[]]