@apica-io/asm-pm-runner
Version:
Run a postman collection in Apica ASM.
77 lines • 1.41 kB
JSON
{
"info": {
"_postman_id": "9531818f-3cce-45e4-aebe-a516fad4f949",
"name": "HTTP-Bin-Requests",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Authenticate",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test('Check status code is 200', () => {",
" pm.expect(pm.response.code).to.equal(200)",
"})"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{username}}",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "https://httpbin.org/basic-auth/foo/bar",
"protocol": "https",
"host": [
"httpbin",
"org"
],
"path": [
"basic-auth",
"foo",
"bar"
]
}
},
"response": []
},
{
"name": "Get XML",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://httpbin.org/xml",
"protocol": "https",
"host": [
"httpbin",
"org"
],
"path": [
"xml"
]
}
},
"response": []
}
]
}