-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathSWAGGER_API_TestSuite_PROD.postman_collection.json
1 lines (1 loc) · 25.6 KB
/
SWAGGER_API_TestSuite_PROD.postman_collection.json
1
{"info":{"_postman_id":"8680b1d9-579c-43d2-8035-991b269c31e0","name":"SWAGGER_API_TestSuite_PROD","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"},"item":[{"name":"001.authorizations","item":[{"name":"001.001.Token con ticket de autologin","event":[{"listen":"test","script":{"id":"709a51c0-5c91-46ae-a1da-daa22d948b92","exec":["pm.test(\"Status code is 200\", function () {"," pm.response.to.have.status(200);","});","","var jsonData = JSON.parse(responseBody);","","postman.setEnvironmentVariable(\"autologin_token\", jsonData.access_token);"],"type":"text/javascript"}}],"request":{"auth":{"type":"basic","basic":[{"key":"password","value":"{{client_secret}}","type":"string"},{"key":"username","value":"{{client_id}}","type":"string"}]},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"autologin-ticket","value":"{{autologin_ticket}}","type":"text"},{"key":"grant_type","value":"autologin","type":"text"}]},"url":{"raw":"{{host}}{{port}}/token","host":["{{host}}{{port}}"],"path":["token"]}},"response":[],"authType":true},{"name":"001.002.Token de usuario con scopes","event":[{"listen":"test","script":{"id":"709a51c0-5c91-46ae-a1da-daa22d948b92","exec":["pm.test(\"Status code is 200\", function () {"," pm.response.to.have.status(200);","});","","var jsonData = JSON.parse(responseBody);","","postman.setEnvironmentVariable(\"user_token\", jsonData.access_token);"],"type":"text/javascript"}}],"request":{"auth":{"type":"basic","basic":[{"key":"password","value":"{{client_secret}}","type":"string"},{"key":"username","value":"{{client_id}}","type":"string"}]},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"{{username_token}}","type":"text"},{"key":"password","value":"{{password_token}}","type":"text"},{"key":"grant_type","value":"password","type":"text"},{"key":"scope","value":"{{scope1}} {{scope2}} {{scope_n}}","type":"text"}]},"url":{"raw":"{{host}}{{port}}/token","host":["{{host}}{{port}}"],"path":["token"]}},"response":[],"authType":true},{"name":"001.003.Token de usuario","event":[{"listen":"test","script":{"id":"709a51c0-5c91-46ae-a1da-daa22d948b92","exec":["pm.test(\"Status code is 200\", function () {"," pm.response.to.have.status(200);","});","","var jsonData = JSON.parse(responseBody);","","postman.setEnvironmentVariable(\"user_token\", jsonData.access_token);"],"type":"text/javascript"}}],"request":{"auth":{"type":"basic","basic":[{"key":"password","value":"{{client_secret}}","type":"string"},{"key":"username","value":"{{client_id}}","type":"string"}]},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"{{username_token}}","type":"text"},{"key":"password","value":"{{password_token}}","type":"text"},{"key":"grant_type","value":"password","type":"text"}]},"url":{"raw":"{{host}}{{port}}/token","host":["{{host}}{{port}}"],"path":["token"]}},"response":[],"authType":true},{"name":"001.004.Token de aplicación con scopes","event":[{"listen":"test","script":{"id":"709a51c0-5c91-46ae-a1da-daa22d948b92","exec":["pm.test(\"Status code is 200\", function () {"," pm.response.to.have.status(200);","});","","var jsonData = JSON.parse(responseBody);","","postman.setEnvironmentVariable(\"application_token\", jsonData.access_token);"],"type":"text/javascript"}}],"request":{"auth":{"type":"basic","basic":[{"key":"password","value":"{{client_secret}}","type":"string"},{"key":"username","value":"{{client_id}}","type":"string"}]},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"client_credentials","type":"text"},{"key":"scope","value":"{{scope1}} {{scope2}} {{scope_n}} ","type":"text"}]},"url":{"raw":"{{host}}{{port}}/token","host":["{{host}}{{port}}"],"path":["token"]}},"response":[],"authType":true},{"name":"001.005.Token de aplicación","event":[{"listen":"test","script":{"id":"709a51c0-5c91-46ae-a1da-daa22d948b92","exec":["pm.test(\"Status code is 200\", function () {"," pm.response.to.have.status(200);","});","","var jsonData = JSON.parse(responseBody);","","postman.setEnvironmentVariable(\"application_token\", jsonData.access_token);"],"type":"text/javascript"}}],"request":{"auth":{"type":"basic","basic":[{"key":"password","value":"{{client_secret}}","type":"string"},{"key":"username","value":"{{client_id}}","type":"string"}]},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"client_credentials","type":"text"}]},"url":{"raw":"{{host}}{{port}}/token","host":["{{host}}{{port}}"],"path":["token"]}},"response":[],"authType":true}]},{"name":"002.pet","item":[{"name":"002.001.Finds Pets by status","item":[{"name":"TC.002.001.200 Finds Pets by status ","aux":{"status":"200","body":false,"consumes":false,"bodyResponse":{"200":{"type":"array","items":{"type":"object","required":["name","photoUrls"],"properties":{"id":{"type":"integer","format":"int64"},"category":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"}},"xml":{"name":"Category"}},"name":{"type":"string","example":"doggie"},"photoUrls":{"type":"array","xml":{"name":"photoUrl","wrapped":true},"items":{"type":"string"}},"tags":{"type":"array","xml":{"name":"tag","wrapped":true},"items":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"}},"xml":{"name":"Tag"}}},"status":{"type":"string","description":"pet status in the store","enum":[{"0":"a","1":"v","2":"a","3":"i","4":"l","5":"a","6":"b","7":"l","8":"e"},{"0":"p","1":"e","2":"n","3":"d","4":"i","5":"n","6":"g"},{"0":"s","1":"o","2":"l","3":"d"}]}},"xml":{"name":"Pet"}}}},"authorization":"oauth2_token","summary":"Finds Pets by status","queryParams":[{"prefix":"pet_get_","name":"status","type":"array","required":true}],"pathParameter":false},"response":[],"request":{"method":"GET","header":[{"key":"Authorization","value":"{{oauth2_token}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{host}}{{port}}{{basePath}}/pet/findByStatus","host":["{{host}}{{port}}{{basePath}}"],"path":["/pet/findByStatus?status={{pet_get_status}}"]}},"event":[{"listen":"test","script":{"id":"63142ff5-28a4-40b2-8314-dcbeeaa89325","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {"," pm.response.to.have.status(200);","});","","var json = JSON.parse(responseBody);","","var schema = {\"type\":\"array\",\"items\":{\"type\":\"object\",\"required\":[\"name\",\"photoUrls\"],\"properties\":{\"id\":{\"type\":\"integer\",\"format\":\"int64\"},\"category\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"integer\",\"format\":\"int64\"},\"name\":{\"type\":\"string\"}},\"xml\":{\"name\":\"Category\"}},\"name\":{\"type\":\"string\",\"example\":\"doggie\"},\"photoUrls\":{\"type\":\"array\",\"xml\":{\"name\":\"photoUrl\",\"wrapped\":true},\"items\":{\"type\":\"string\"}},\"tags\":{\"type\":\"array\",\"xml\":{\"name\":\"tag\",\"wrapped\":true},\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"integer\",\"format\":\"int64\"},\"name\":{\"type\":\"string\"}},\"xml\":{\"name\":\"Tag\"}}},\"status\":{\"type\":\"string\",\"description\":\"pet status in the store\",\"enum\":[{\"0\":\"a\",\"1\":\"v\",\"2\":\"a\",\"3\":\"i\",\"4\":\"l\",\"5\":\"a\",\"6\":\"b\",\"7\":\"l\",\"8\":\"e\"},{\"0\":\"p\",\"1\":\"e\",\"2\":\"n\",\"3\":\"d\",\"4\":\"i\",\"5\":\"n\",\"6\":\"g\"},{\"0\":\"s\",\"1\":\"o\",\"2\":\"l\",\"3\":\"d\"}]}},\"xml\":{\"name\":\"Pet\"}}};","","pm.test('Schema is valid', function() {"," pm.expect(tv4.validate(json, schema)).to.be.true;","});"]}}]},{"name":"TC.002.001.400 Finds Pets by status .without.status","aux":{"status":"400","body":false,"consumes":false,"bodyResponse":{"200":{"type":"array","items":{"type":"object","required":["name","photoUrls"],"properties":{"id":{"type":"integer","format":"int64"},"category":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"}},"xml":{"name":"Category"}},"name":{"type":"string","example":"doggie"},"photoUrls":{"type":"array","xml":{"name":"photoUrl","wrapped":true},"items":{"type":"string"}},"tags":{"type":"array","xml":{"name":"tag","wrapped":true},"items":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"}},"xml":{"name":"Tag"}}},"status":{"type":"string","description":"pet status in the store","enum":[{"0":"a","1":"v","2":"a","3":"i","4":"l","5":"a","6":"b","7":"l","8":"e"},{"0":"p","1":"e","2":"n","3":"d","4":"i","5":"n","6":"g"},{"0":"s","1":"o","2":"l","3":"d"}]}},"xml":{"name":"Pet"}}}},"authorization":"oauth2_token","summary":"Finds Pets by status","queryParams":[{"prefix":"pet_get_","name":"status","type":"array","required":true}],"pathParameter":false,"suffix":".without.status"},"response":[],"request":{"method":"GET","header":[{"key":"Authorization","value":"{{oauth2_token}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{host}}{{port}}{{basePath}}/pet/findByStatus","host":["{{host}}{{port}}{{basePath}}"],"path":["/pet/findByStatus"]}},"event":[{"listen":"test","script":{"id":"63142ff5-28a4-40b2-8314-dcbeeaa89325","type":"text/javascript","exec":["pm.test(\"Status code is 400\", function () {"," pm.response.to.have.status(400);","});"]}}]}],"auxName":"Finds Pets by status","auxOrder":"GET"},{"name":"002.002.Finds Pets by tags","item":[{"name":"TC.002.002.200 Finds Pets by tags ","aux":{"status":"200","body":false,"consumes":false,"bodyResponse":{"200":{"type":"array","items":{"type":"string","description":"Circular REF solved swagger2postman"}}},"authorization":"oauth2_token","summary":"Finds Pets by tags","queryParams":[{"prefix":"pet_get_","name":"tags","type":"array","required":true}],"pathParameter":false},"response":[],"request":{"method":"GET","header":[{"key":"Authorization","value":"{{oauth2_token}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{host}}{{port}}{{basePath}}/pet/findByTags","host":["{{host}}{{port}}{{basePath}}"],"path":["/pet/findByTags?tags={{pet_get_tags}}"]}},"event":[{"listen":"test","script":{"id":"63142ff5-28a4-40b2-8314-dcbeeaa89325","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {"," pm.response.to.have.status(200);","});","","var json = JSON.parse(responseBody);","","var schema = {\"type\":\"array\",\"items\":{\"type\":\"string\",\"description\":\"Circular REF solved swagger2postman\"}};","","pm.test('Schema is valid', function() {"," pm.expect(tv4.validate(json, schema)).to.be.true;","});"]}}]},{"name":"TC.002.002.400 Finds Pets by tags .without.tags","aux":{"status":"400","body":false,"consumes":false,"bodyResponse":{"200":{"type":"array","items":{"type":"string","description":"Circular REF solved swagger2postman"}}},"authorization":"oauth2_token","summary":"Finds Pets by tags","queryParams":[{"prefix":"pet_get_","name":"tags","type":"array","required":true}],"pathParameter":false,"suffix":".without.tags"},"response":[],"request":{"method":"GET","header":[{"key":"Authorization","value":"{{oauth2_token}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{host}}{{port}}{{basePath}}/pet/findByTags","host":["{{host}}{{port}}{{basePath}}"],"path":["/pet/findByTags"]}},"event":[{"listen":"test","script":{"id":"63142ff5-28a4-40b2-8314-dcbeeaa89325","type":"text/javascript","exec":["pm.test(\"Status code is 400\", function () {"," pm.response.to.have.status(400);","});"]}}]}],"auxName":"Finds Pets by tags","auxOrder":"GET"},{"name":"002.003.Find pet by ID","item":[{"name":"TC.002.003.200 Find pet by ID ","aux":{"status":"200","body":false,"consumes":false,"bodyResponse":{"200":{"type":"object","required":["name","photoUrls"],"properties":{"id":{"type":"integer","format":"int64"},"category":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"}},"xml":{"name":"Category"}},"name":{"type":"string","example":"doggie"},"photoUrls":{"type":"array","xml":{"name":"photoUrl","wrapped":true},"items":{"type":"string"}},"tags":{"type":"array","xml":{"name":"tag","wrapped":true},"items":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"}},"xml":{"name":"Tag"}}},"status":{"type":"string","description":"pet status in the store","enum":[{"0":"a","1":"v","2":"a","3":"i","4":"l","5":"a","6":"b","7":"l","8":"e"},{"0":"p","1":"e","2":"n","3":"d","4":"i","5":"n","6":"g"},{"0":"s","1":"o","2":"l","3":"d"}]}},"xml":{"name":"Pet"}}},"authorization":"apiKey_token","summary":"Find pet by ID","queryParams":[],"pathParameter":"petId"},"response":[],"request":{"method":"GET","header":[{"key":"Authorization","value":"{{apiKey_token}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{host}}{{port}}{{basePath}}/pet/{{pet_get_petId}}","host":["{{host}}{{port}}{{basePath}}"],"path":["/pet/{{pet_get_petId}}"]}},"event":[{"listen":"test","script":{"id":"63142ff5-28a4-40b2-8314-dcbeeaa89325","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {"," pm.response.to.have.status(200);","});","","var json = JSON.parse(responseBody);","","var schema = {\"type\":\"object\",\"required\":[\"name\",\"photoUrls\"],\"properties\":{\"id\":{\"type\":\"integer\",\"format\":\"int64\"},\"category\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"integer\",\"format\":\"int64\"},\"name\":{\"type\":\"string\"}},\"xml\":{\"name\":\"Category\"}},\"name\":{\"type\":\"string\",\"example\":\"doggie\"},\"photoUrls\":{\"type\":\"array\",\"xml\":{\"name\":\"photoUrl\",\"wrapped\":true},\"items\":{\"type\":\"string\"}},\"tags\":{\"type\":\"array\",\"xml\":{\"name\":\"tag\",\"wrapped\":true},\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"integer\",\"format\":\"int64\"},\"name\":{\"type\":\"string\"}},\"xml\":{\"name\":\"Tag\"}}},\"status\":{\"type\":\"string\",\"description\":\"pet status in the store\",\"enum\":[{\"0\":\"a\",\"1\":\"v\",\"2\":\"a\",\"3\":\"i\",\"4\":\"l\",\"5\":\"a\",\"6\":\"b\",\"7\":\"l\",\"8\":\"e\"},{\"0\":\"p\",\"1\":\"e\",\"2\":\"n\",\"3\":\"d\",\"4\":\"i\",\"5\":\"n\",\"6\":\"g\"},{\"0\":\"s\",\"1\":\"o\",\"2\":\"l\",\"3\":\"d\"}]}},\"xml\":{\"name\":\"Pet\"}};","","pm.test('Schema is valid', function() {"," pm.expect(tv4.validate(json, schema)).to.be.true;","});"]}}]},{"name":"TC.002.003.404 Find pet by ID ","aux":{"status":"404","body":false,"consumes":false,"bodyResponse":{"200":{"type":"object","required":["name","photoUrls"],"properties":{"id":{"type":"integer","format":"int64"},"category":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"}},"xml":{"name":"Category"}},"name":{"type":"string","example":"doggie"},"photoUrls":{"type":"array","xml":{"name":"photoUrl","wrapped":true},"items":{"type":"string"}},"tags":{"type":"array","xml":{"name":"tag","wrapped":true},"items":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"}},"xml":{"name":"Tag"}}},"status":{"type":"string","description":"pet status in the store","enum":[{"0":"a","1":"v","2":"a","3":"i","4":"l","5":"a","6":"b","7":"l","8":"e"},{"0":"p","1":"e","2":"n","3":"d","4":"i","5":"n","6":"g"},{"0":"s","1":"o","2":"l","3":"d"}]}},"xml":{"name":"Pet"}}},"authorization":"apiKey_token","summary":"Find pet by ID","queryParams":[],"pathParameter":"petId"},"response":[],"request":{"method":"GET","header":[{"key":"Authorization","value":"{{apiKey_token}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{host}}{{port}}{{basePath}}/pet/{{pet_get_petId_not_found}}","host":["{{host}}{{port}}{{basePath}}"],"path":["/pet/{{pet_get_petId_not_found}}"]}},"event":[{"listen":"test","script":{"id":"63142ff5-28a4-40b2-8314-dcbeeaa89325","type":"text/javascript","exec":["pm.test(\"Status code is 404\", function () {"," pm.response.to.have.status(404);","});"]}}]}],"auxName":"Find pet by ID","auxOrder":"GET"}]},{"name":"003.store","item":[{"name":"003.001.Returns pet inventories by status","item":[{"name":"TC.003.001.200 Returns pet inventories by status ","aux":{"status":"200","body":false,"consumes":false,"bodyResponse":{"200":{"type":"object","additionalProperties":{"type":"integer","format":"int32"}}},"authorization":"apiKey_token","summary":"Returns pet inventories by status","queryParams":[],"pathParameter":false},"response":[],"request":{"method":"GET","header":[{"key":"Authorization","value":"{{apiKey_token}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{host}}{{port}}{{basePath}}/store/inventory","host":["{{host}}{{port}}{{basePath}}"],"path":["/store/inventory"]}},"event":[{"listen":"test","script":{"id":"63142ff5-28a4-40b2-8314-dcbeeaa89325","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {"," pm.response.to.have.status(200);","});","","var json = JSON.parse(responseBody);","","var schema = {\"type\":\"object\",\"additionalProperties\":{\"type\":\"integer\",\"format\":\"int32\"}};","","pm.test('Schema is valid', function() {"," pm.expect(tv4.validate(json, schema)).to.be.true;","});"]}}]}],"auxName":"Returns pet inventories by status","auxOrder":"GET"},{"name":"003.002.Find purchase order by ID","item":[{"name":"TC.003.002.200 Find purchase order by ID ","aux":{"status":"200","body":false,"consumes":false,"bodyResponse":{"200":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"petId":{"type":"integer","format":"int64"},"quantity":{"type":"integer","format":"int32"},"shipDate":{"type":"string","format":"date-time"},"status":{"type":"string","description":"Order Status","enum":[{"0":"p","1":"l","2":"a","3":"c","4":"e","5":"d"},{"0":"a","1":"p","2":"p","3":"r","4":"o","5":"v","6":"e","7":"d"},{"0":"d","1":"e","2":"l","3":"i","4":"v","5":"e","6":"r","7":"e","8":"d"}]},"complete":{"type":"boolean","default":false}},"xml":{"name":"Order"}}},"authorization":false,"summary":"Find purchase order by ID","queryParams":[],"pathParameter":"orderId"},"response":[],"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"{{host}}{{port}}{{basePath}}/store/order/{{store_get_orderId}}","host":["{{host}}{{port}}{{basePath}}"],"path":["/store/order/{{store_get_orderId}}"]}},"event":[{"listen":"test","script":{"id":"63142ff5-28a4-40b2-8314-dcbeeaa89325","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {"," pm.response.to.have.status(200);","});","","var json = JSON.parse(responseBody);","","var schema = {\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"integer\",\"format\":\"int64\"},\"petId\":{\"type\":\"integer\",\"format\":\"int64\"},\"quantity\":{\"type\":\"integer\",\"format\":\"int32\"},\"shipDate\":{\"type\":\"string\",\"format\":\"date-time\"},\"status\":{\"type\":\"string\",\"description\":\"Order Status\",\"enum\":[{\"0\":\"p\",\"1\":\"l\",\"2\":\"a\",\"3\":\"c\",\"4\":\"e\",\"5\":\"d\"},{\"0\":\"a\",\"1\":\"p\",\"2\":\"p\",\"3\":\"r\",\"4\":\"o\",\"5\":\"v\",\"6\":\"e\",\"7\":\"d\"},{\"0\":\"d\",\"1\":\"e\",\"2\":\"l\",\"3\":\"i\",\"4\":\"v\",\"5\":\"e\",\"6\":\"r\",\"7\":\"e\",\"8\":\"d\"}]},\"complete\":{\"type\":\"boolean\",\"default\":false}},\"xml\":{\"name\":\"Order\"}};","","pm.test('Schema is valid', function() {"," pm.expect(tv4.validate(json, schema)).to.be.true;","});"]}}]},{"name":"TC.003.002.404 Find purchase order by ID ","aux":{"status":"404","body":false,"consumes":false,"bodyResponse":{"200":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"petId":{"type":"integer","format":"int64"},"quantity":{"type":"integer","format":"int32"},"shipDate":{"type":"string","format":"date-time"},"status":{"type":"string","description":"Order Status","enum":[{"0":"p","1":"l","2":"a","3":"c","4":"e","5":"d"},{"0":"a","1":"p","2":"p","3":"r","4":"o","5":"v","6":"e","7":"d"},{"0":"d","1":"e","2":"l","3":"i","4":"v","5":"e","6":"r","7":"e","8":"d"}]},"complete":{"type":"boolean","default":false}},"xml":{"name":"Order"}}},"authorization":false,"summary":"Find purchase order by ID","queryParams":[],"pathParameter":"orderId"},"response":[],"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"{{host}}{{port}}{{basePath}}/store/order/{{store_get_orderId_not_found}}","host":["{{host}}{{port}}{{basePath}}"],"path":["/store/order/{{store_get_orderId_not_found}}"]}},"event":[{"listen":"test","script":{"id":"63142ff5-28a4-40b2-8314-dcbeeaa89325","type":"text/javascript","exec":["pm.test(\"Status code is 404\", function () {"," pm.response.to.have.status(404);","});"]}}]}],"auxName":"Find purchase order by ID","auxOrder":"GET"}]},{"name":"004.user","item":[{"name":"004.001.Logs user into the system","item":[{"name":"TC.004.001.200 Logs user into the system ","aux":{"status":"200","body":false,"consumes":false,"bodyResponse":{"200":{"type":"string"}},"authorization":false,"summary":"Logs user into the system","queryParams":[{"prefix":"user_get_","name":"username","type":"string","required":true},{"prefix":"user_get_","name":"password","type":"string","required":true}],"pathParameter":false},"response":[],"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"{{host}}{{port}}{{basePath}}/user/login","host":["{{host}}{{port}}{{basePath}}"],"path":["/user/login?username={{user_get_username}}&password={{user_get_password}}"]}},"event":[{"listen":"test","script":{"id":"63142ff5-28a4-40b2-8314-dcbeeaa89325","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {"," pm.response.to.have.status(200);","});","","var json = JSON.parse(responseBody);","","var schema = {\"type\":\"string\"};","","pm.test('Schema is valid', function() {"," pm.expect(tv4.validate(json, schema)).to.be.true;","});"]}}]},{"name":"TC.004.001.400 Logs user into the system .without.username","aux":{"status":"400","body":false,"consumes":false,"bodyResponse":{"200":{"type":"string"}},"authorization":false,"summary":"Logs user into the system","queryParams":[{"prefix":"user_get_","name":"username","type":"string","required":true},{"prefix":"user_get_","name":"password","type":"string","required":true}],"pathParameter":false,"suffix":".without.username"},"response":[],"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"{{host}}{{port}}{{basePath}}/user/login","host":["{{host}}{{port}}{{basePath}}"],"path":["/user/login?password={{user_get_password}}"]}},"event":[{"listen":"test","script":{"id":"63142ff5-28a4-40b2-8314-dcbeeaa89325","type":"text/javascript","exec":["pm.test(\"Status code is 400\", function () {"," pm.response.to.have.status(400);","});"]}}]},{"name":"TC.004.001.400 Logs user into the system .without.password","aux":{"status":"400","body":false,"consumes":false,"bodyResponse":{"200":{"type":"string"}},"authorization":false,"summary":"Logs user into the system","queryParams":[{"prefix":"user_get_","name":"username","type":"string","required":true},{"prefix":"user_get_","name":"password","type":"string","required":true}],"pathParameter":false,"suffix":".without.password"},"response":[],"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"{{host}}{{port}}{{basePath}}/user/login","host":["{{host}}{{port}}{{basePath}}"],"path":["/user/login?username={{user_get_username}}"]}},"event":[{"listen":"test","script":{"id":"63142ff5-28a4-40b2-8314-dcbeeaa89325","type":"text/javascript","exec":["pm.test(\"Status code is 400\", function () {"," pm.response.to.have.status(400);","});"]}}]}],"auxName":"Logs user into the system","auxOrder":"GET"},{"name":"004.002.Get user by user name","item":[{"name":"TC.004.002.200 Get user by user name ","aux":{"status":"200","body":false,"consumes":false,"bodyResponse":{"200":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"username":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string"},"password":{"type":"string"},"phone":{"type":"string"},"userStatus":{"type":"integer","format":"int32","description":"User Status"}},"xml":{"name":"User"}}},"authorization":false,"summary":"Get user by user name","queryParams":[],"pathParameter":"username"},"response":[],"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"{{host}}{{port}}{{basePath}}/user/{{user_get_username}}","host":["{{host}}{{port}}{{basePath}}"],"path":["/user/{{user_get_username}}"]}},"event":[{"listen":"test","script":{"id":"63142ff5-28a4-40b2-8314-dcbeeaa89325","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {"," pm.response.to.have.status(200);","});","","var json = JSON.parse(responseBody);","","var schema = {\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"integer\",\"format\":\"int64\"},\"username\":{\"type\":\"string\"},\"firstName\":{\"type\":\"string\"},\"lastName\":{\"type\":\"string\"},\"email\":{\"type\":\"string\"},\"password\":{\"type\":\"string\"},\"phone\":{\"type\":\"string\"},\"userStatus\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"User Status\"}},\"xml\":{\"name\":\"User\"}};","","pm.test('Schema is valid', function() {"," pm.expect(tv4.validate(json, schema)).to.be.true;","});"]}}]},{"name":"TC.004.002.404 Get user by user name ","aux":{"status":"404","body":false,"consumes":false,"bodyResponse":{"200":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"username":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string"},"password":{"type":"string"},"phone":{"type":"string"},"userStatus":{"type":"integer","format":"int32","description":"User Status"}},"xml":{"name":"User"}}},"authorization":false,"summary":"Get user by user name","queryParams":[],"pathParameter":"username"},"response":[],"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"{{host}}{{port}}{{basePath}}/user/{{user_get_username_not_found}}","host":["{{host}}{{port}}{{basePath}}"],"path":["/user/{{user_get_username_not_found}}"]}},"event":[{"listen":"test","script":{"id":"63142ff5-28a4-40b2-8314-dcbeeaa89325","type":"text/javascript","exec":["pm.test(\"Status code is 404\", function () {"," pm.response.to.have.status(404);","});"]}}]}],"auxName":"Get user by user name","auxOrder":"GET"}]}]}