{"info":{"_postman_id":"5bab38c6-d107-4c85-8d38-ca7a14dc83f5","name":"Assignment on - Dmoney","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"28551494","collectionId":"5bab38c6-d107-4c85-8d38-ca7a14dc83f5","publishedId":"2sAYBXBqaE","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-11-28T18:07:55.000Z"},"item":[{"name":"Login","item":[{"name":"Admin Login with Wrong Password","event":[{"listen":"test","script":{"id":"82051c39-3f85-4666-a27b-9ac8432f03db","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation\r","pm.test(\"Check if user can't login Wrong Password\", ()=>{\r","    pm.expect(jsonResponse.message).contains(\"incorrect\")\r","});\r","\r","pm.test(\"Status code is 401 Unauthorized\", function () {\r","    pm.response.to.have.status(401);\r","});\r",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"a01a60f7-6230-4d7d-a1ad-0e5a3c19a35d","exec":[""],"type":"text/javascript","packages":{}}}],"id":"1ef966fd-bb9f-4cbe-8fb9-cf5075736015","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"admin@roadtocareer.net\",\r\n  \"password\": \"12334\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/user/login","urlObject":{"path":["user","login"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"1ef966fd-bb9f-4cbe-8fb9-cf5075736015"},{"name":"Admin Login with Wrong Email","event":[{"listen":"test","script":{"id":"82051c39-3f85-4666-a27b-9ac8432f03db","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation\r","pm.test(\"Check if user can't login invalid Email\", ()=>{\r","    pm.expect(jsonResponse.message).contains(\"User not found\")\r","});\r","\r","pm.test(\"Status code is 404 Not Found\", function () {\r","    pm.response.to.have.status(404);\r","});"],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"a01a60f7-6230-4d7d-a1ad-0e5a3c19a35d","exec":[""],"type":"text/javascript","packages":{}}}],"id":"f57861e8-2edd-4a83-be1a-4d4bd8b1cbcf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"admifn@roadtocareer.net\",\r\n  \"password\": \"1234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/user/login","urlObject":{"path":["user","login"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"f57861e8-2edd-4a83-be1a-4d4bd8b1cbcf"},{"name":"Admin Login with valid Credentials","event":[{"listen":"test","script":{"id":"82051c39-3f85-4666-a27b-9ac8432f03db","exec":["const jsonResponse = pm.response.json();\r","const token = jsonResponse.token;\r","\r","pm.collectionVariables.set(\"token\",token)\r","\r","//test automation\r","pm.test(\"Check if user can login successfully\", ()=>{\r","    pm.expect(jsonResponse.message).contains(\"Login successful\")\r","});\r","\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"a01a60f7-6230-4d7d-a1ad-0e5a3c19a35d","exec":[""],"type":"text/javascript","packages":{}}}],"id":"15876fc2-d077-4fba-bf13-cc34fc65dcd6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"admin@dmoney.com\",\r\n  \"password\": \"1234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/user/login","urlObject":{"path":["user","login"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"15876fc2-d077-4fba-bf13-cc34fc65dcd6"}],"id":"695deedc-a8de-408c-a5c0-3eb26091b661","_postman_id":"695deedc-a8de-408c-a5c0-3eb26091b661","description":""},{"name":"User Create","item":[{"name":"Create Agent","item":[{"name":"Create a Agent","event":[{"listen":"prerequest","script":{"id":"b8293454-5c31-493a-8dfb-00f2a87be6db","exec":["const lodash = require('lodash');\r","const randomId = lodash.random(1000000, 9000000);\r","const prefix = \"0190\";\r","\r","const agentPhoneNumber = prefix+randomId;\r","console.log(agentPhoneNumber);\r","\r","//storing in collection variables\r","pm.collectionVariables.set(\"agentPhoneNumber\",agentPhoneNumber)"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"ca5ea2aa-133c-402e-903e-4afa56c0d62e","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if user is created\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"User created\")\r","});\r","\r","pm.test(\"Status code is 201 Created\", function () {\r","    pm.response.to.have.status(201);\r","});"],"type":"text/javascript","packages":{}}}],"id":"e473ec45-4b53-46c5-979e-2d05c347c7c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Nils\",\r\n  \"email\": \"Ozella88@hotmail.com\",\r\n  \"password\": \"1234\",\r\n  \"phone_number\": \"01904142806\",\r\n  \"nid\": \"123456789\",\r\n  \"role\": \"Agent\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/user/create","urlObject":{"path":["user","create"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"e473ec45-4b53-46c5-979e-2d05c347c7c3"},{"name":"Creating Agent with existing Email","event":[{"listen":"prerequest","script":{"id":"b8293454-5c31-493a-8dfb-00f2a87be6db","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"ca5ea2aa-133c-402e-903e-4afa56c0d62e","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if user already exits\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"User already exists\")\r","});\r","\r","pm.test(\"Status code is 208 Already Reported\", function () {\r","    pm.response.to.have.status(208);\r","});"],"type":"text/javascript","packages":{}}}],"id":"e776bfba-c9fb-4697-abda-54142be24821","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Anjali\",\r\n  \"email\": \"Kirk_Morar@yahoo.com\", //Email already used in Another Agent\r\n  \"password\": \"1234\",\r\n  \"phone_number\": \"01904142806\",\r\n  \"nid\": \"123456789\",\r\n  \"role\": \"Agent\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/user/create","urlObject":{"path":["user","create"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"e776bfba-c9fb-4697-abda-54142be24821"},{"name":"Creating Agent with existing Phone Number","event":[{"listen":"prerequest","script":{"id":"b8293454-5c31-493a-8dfb-00f2a87be6db","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"ca5ea2aa-133c-402e-903e-4afa56c0d62e","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if user already exits\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"User already exists\")\r","});\r","\r","pm.test(\"Status code is 208 Already Reported\", function () {\r","    pm.response.to.have.status(208);\r","});"],"type":"text/javascript","packages":{}}}],"id":"55e30d85-83d6-40f8-abf5-0d6d2fac0dc7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Christop\",\r\n  \"email\": \"Marie.Johnson@hotmail.com\", \r\n  \"password\": \"1234\",\r\n  \"phone_number\": \"01901610671\", //Phone Number already used in Another Agent\r\n  \"nid\": \"123456789\",\r\n  \"role\": \"Agent\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/user/create","urlObject":{"path":["user","create"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"55e30d85-83d6-40f8-abf5-0d6d2fac0dc7"}],"id":"0a89fb02-9a8c-41af-8fb6-cc868035403d","_postman_id":"0a89fb02-9a8c-41af-8fb6-cc868035403d","description":""},{"name":"Create Customer's","item":[{"name":"Customer 01","item":[{"name":"Create a Customer_01","event":[{"listen":"prerequest","script":{"id":"b8293454-5c31-493a-8dfb-00f2a87be6db","exec":["const lodash = require('lodash');\r","const randomId = lodash.random(1000000, 9000000);\r","const prefix = \"0130\";\r","\r","const customerPhoneNumber_01 = prefix+randomId;\r","console.log(customerPhoneNumber_01);\r","\r","//storing in collection variables\r","pm.collectionVariables.set(\"customerPhoneNumber_01\",customerPhoneNumber_01)"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"ca5ea2aa-133c-402e-903e-4afa56c0d62e","exec":["const jsonResponse = pm.response.json();\r","\r","\r","//test automation \r","pm.test(\"Check if user is created\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"User created\")\r","});\r","\r","pm.test(\"Status code is 201 Created\", function () {\r","    pm.response.to.have.status(201);\r","});"],"type":"text/javascript","packages":{}}}],"id":"131100f0-5411-43d3-b5d8-164a921d20b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Emery\",\r\n  \"email\": \"Willard.Cremin@hotmail.com\",\r\n  \"password\": \"1234\",\r\n  \"phone_number\": \"01306026358\",\r\n  \"nid\": \"123456789\",\r\n  \"role\": \"Customer\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/user/create","urlObject":{"path":["user","create"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"131100f0-5411-43d3-b5d8-164a921d20b3"},{"name":"Creating Customer_01 with exisiting Email","event":[{"listen":"prerequest","script":{"id":"b8293454-5c31-493a-8dfb-00f2a87be6db","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"ca5ea2aa-133c-402e-903e-4afa56c0d62e","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if user already exits\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"User already exists\")\r","});\r","\r","pm.test(\"Status code is 208 Already Reported\", function () {\r","    pm.response.to.have.status(208);\r","});"],"type":"text/javascript","packages":{}}}],"id":"43387c26-936b-45b8-8761-33e36c7252ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Elsie\",\r\n  \"email\": \"Ciara_Mueller48@gmail.com\",\r\n  \"password\": \"1234\",\r\n  \"phone_number\": \"01306026358\",\r\n  \"nid\": \"123456789\",\r\n  \"role\": \"Customer\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/user/create","urlObject":{"path":["user","create"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"43387c26-936b-45b8-8761-33e36c7252ef"},{"name":"Creating Customer_01 with existing Phone Number","event":[{"listen":"prerequest","script":{"id":"b8293454-5c31-493a-8dfb-00f2a87be6db","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"ca5ea2aa-133c-402e-903e-4afa56c0d62e","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if user already exits\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"User already exists\")\r","});\r","\r","pm.test(\"Status code is 208 Already Reported\", function () {\r","    pm.response.to.have.status(208);\r","});"],"type":"text/javascript","packages":{}}}],"id":"f4478172-2ce6-4aa8-896b-51c6045449c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Emile\",\r\n  \"email\": \"Dorothea.Von@yahoo.com\",\r\n  \"password\": \"1234\",\r\n  \"phone_number\": \"01306329067\",\r\n  \"nid\": \"123456789\",\r\n  \"role\": \"Customer\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/user/create","urlObject":{"path":["user","create"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"f4478172-2ce6-4aa8-896b-51c6045449c8"}],"id":"5fb9d1cb-2acf-4b04-8613-887ff46a6f63","_postman_id":"5fb9d1cb-2acf-4b04-8613-887ff46a6f63","description":""},{"name":"Customer 02","item":[{"name":"Create a Customer_02","event":[{"listen":"prerequest","script":{"id":"b8293454-5c31-493a-8dfb-00f2a87be6db","exec":["const lodash = require('lodash');\r","const randomId = lodash.random(1000000, 9000000);\r","const prefix = \"0140\";\r","\r","const customerPhoneNumber_02 = prefix+randomId;\r","console.log(customerPhoneNumber_02);\r","\r","//storing in collection variables\r","pm.collectionVariables.set(\"customerPhoneNumber_02\",customerPhoneNumber_02)"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"ca5ea2aa-133c-402e-903e-4afa56c0d62e","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if user is created\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"User created\")\r","});\r","\r","pm.test(\"Status code is 201 Created\", function () {\r","    pm.response.to.have.status(201);\r","});"],"type":"text/javascript","packages":{}}}],"id":"18e285e0-02e7-4a72-893f-48ef3b25a69f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Donnell\",\r\n  \"email\": \"Loma97@hotmail.com\",\r\n  \"password\": \"1234\",\r\n  \"phone_number\": \"01406486334\",\r\n  \"nid\": \"123456789\",\r\n  \"role\": \"Customer\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/user/create","urlObject":{"path":["user","create"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"18e285e0-02e7-4a72-893f-48ef3b25a69f"},{"name":"Creating Customer_02 with exisiting Email","event":[{"listen":"prerequest","script":{"id":"b8293454-5c31-493a-8dfb-00f2a87be6db","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"ca5ea2aa-133c-402e-903e-4afa56c0d62e","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if user already exits\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"User already exists\")\r","});\r","\r","pm.test(\"Status code is 208 Already Reported\", function () {\r","    pm.response.to.have.status(208);\r","});"],"type":"text/javascript","packages":{}}}],"id":"a5e1c285-867c-49f2-adf6-0cdec071d29c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Jason\",\r\n  \"email\": \"Reymundo85@hotmail.com\",\r\n  \"password\": \"1234\",\r\n  \"phone_number\": \"01306026358\",\r\n  \"nid\": \"123456789\",\r\n  \"role\": \"Customer\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/user/create","urlObject":{"path":["user","create"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"a5e1c285-867c-49f2-adf6-0cdec071d29c"},{"name":"Creating Customer_02 with existing Phone Number","event":[{"listen":"prerequest","script":{"id":"b8293454-5c31-493a-8dfb-00f2a87be6db","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"ca5ea2aa-133c-402e-903e-4afa56c0d62e","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if user already exits\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"User already exists\")\r","});\r","\r","pm.test(\"Status code is 208 Already Reported\", function () {\r","    pm.response.to.have.status(208);\r","});"],"type":"text/javascript","packages":{}}}],"id":"aa2cd2ea-ad0a-4884-92f3-e6cd89d8496c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Barbara\",\r\n  \"email\": \"Aracely27@hotmail.com\",\r\n  \"password\": \"1234\",\r\n  \"phone_number\": \"01407624192\",\r\n  \"nid\": \"123456789\",\r\n  \"role\": \"Customer\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/user/create","urlObject":{"path":["user","create"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"aa2cd2ea-ad0a-4884-92f3-e6cd89d8496c"}],"id":"fa901de2-75d6-4b30-808b-ed97c7323990","_postman_id":"fa901de2-75d6-4b30-808b-ed97c7323990","description":""}],"id":"4d934873-03d6-4e4a-aa8d-2a393d6561b2","_postman_id":"4d934873-03d6-4e4a-aa8d-2a393d6561b2","description":""},{"name":"Create Merchant","item":[{"name":"Create a Merchant","event":[{"listen":"prerequest","script":{"id":"b8293454-5c31-493a-8dfb-00f2a87be6db","exec":["const lodash = require('lodash');\r","const randomId = lodash.random(1000000, 9000000);\r","const prefix = \"0190\";\r","\r","const merchantPhoneNumber = prefix+randomId;\r","console.log(merchantPhoneNumber);\r","\r","//storing in collection variables\r","pm.collectionVariables.set(\"merchantPhoneNumber\",merchantPhoneNumber)"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"ca5ea2aa-133c-402e-903e-4afa56c0d62e","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if user is created\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"User created\")\r","});\r","\r","pm.test(\"Status code is 201 Created\", function () {\r","    pm.response.to.have.status(201);\r","});"],"type":"text/javascript","packages":{}}}],"id":"c16ebf43-96b1-4e91-a498-aabdee949d7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Maximillian\",\r\n  \"email\": \"Wallace.Kirlin63@hotmail.com\",\r\n  \"password\": \"1234\",\r\n  \"phone_number\": \"01902630203\",\r\n  \"nid\": \"123456789\",\r\n  \"role\": \"Merchant\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/user/create","urlObject":{"path":["user","create"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"c16ebf43-96b1-4e91-a498-aabdee949d7f"},{"name":"Creating Merchant with existing Email","event":[{"listen":"prerequest","script":{"id":"b8293454-5c31-493a-8dfb-00f2a87be6db","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"ca5ea2aa-133c-402e-903e-4afa56c0d62e","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if user already exits\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"User already exists\")\r","});\r","\r","pm.test(\"Status code is 208 Already Reported\", function () {\r","    pm.response.to.have.status(208);\r","});"],"type":"text/javascript","packages":{}}}],"id":"0ae18364-8a1d-49e5-8f74-0af11280426c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Laron\",\r\n  \"email\": \"Celia68@gmail.com\",\r\n  \"password\": \"1234\",\r\n  \"phone_number\": \"01902630203\",\r\n  \"nid\": \"123456789\",\r\n  \"role\": \"Merchant\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/user/create","urlObject":{"path":["user","create"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"0ae18364-8a1d-49e5-8f74-0af11280426c"},{"name":"Creating Merchant with existing Phone Number","event":[{"listen":"prerequest","script":{"id":"b8293454-5c31-493a-8dfb-00f2a87be6db","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"ca5ea2aa-133c-402e-903e-4afa56c0d62e","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if user already exits\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"User already exists\")\r","});\r","\r","pm.test(\"Status code is 208 Already Reported\", function () {\r","    pm.response.to.have.status(208);\r","});"],"type":"text/javascript","packages":{}}}],"id":"092da062-a4e1-4d83-8b9d-6120d47c4e61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Alek\",\r\n  \"email\": \"Frank40@hotmail.com\",\r\n  \"password\": \"1234\",\r\n  \"phone_number\": \"01906790625\",\r\n  \"nid\": \"123456789\",\r\n  \"role\": \"Merchant\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/user/create","urlObject":{"path":["user","create"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"092da062-a4e1-4d83-8b9d-6120d47c4e61"}],"id":"18636ec7-acfa-4c02-b435-749261f7b7a8","_postman_id":"18636ec7-acfa-4c02-b435-749261f7b7a8","description":""}],"id":"573b58df-cb26-4fa6-8a2a-e93f4538c136","_postman_id":"573b58df-cb26-4fa6-8a2a-e93f4538c136","description":""},{"name":"Deposit Money","item":[{"name":"System to Agent","item":[{"name":"Deposit Money Below Minimum limit","event":[{"listen":"test","script":{"id":"f53c2392-8e20-4a17-b0b6-b0140bd424f6","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if a deposit below the minimum limit is not successful\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"Minimum deposit amount is 10 tk\")\r","});\r","\r","pm.test(\"Status code is 208 Already Reported\", function () {\r","    pm.response.to.have.status(208);\r","});"],"type":"text/javascript","packages":{}}}],"id":"9a3abcec-004e-402e-bd33-1de134f69d53","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"from_account\": \"SYSTEM\",\r\n  \"to_account\": \"01904142806\",\r\n  \"amount\": 9 //minimum limit 10\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/transaction/deposit","urlObject":{"path":["transaction","deposit"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"9a3abcec-004e-402e-bd33-1de134f69d53"},{"name":"Deposit Money Above Maximum limit","event":[{"listen":"test","script":{"id":"e16ba94f-424a-4a66-bb8d-91cdc10d4a4c","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if a deposit limit exceeded\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"Limit exceeded\")\r","});\r","\r","pm.test(\"Status code is 208 Already Reported\", function () {\r","    pm.response.to.have.status(208);\r","});"],"type":"text/javascript","packages":{}}}],"id":"6cde2366-8d8e-4c14-a773-d4c099560e99","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"from_account\": \"SYSTEM\",\r\n  \"to_account\": \"01904142806\",\r\n  \"amount\": 15000\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/transaction/deposit","urlObject":{"path":["transaction","deposit"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"6cde2366-8d8e-4c14-a773-d4c099560e99"},{"name":"System Deposits to a invalid account","event":[{"listen":"test","script":{"id":"ac997bc2-fe0d-435d-b8de-ad797642a267","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if a deposit has not done to invalid account\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"To Account does not exist\")\r","});\r","\r","pm.test(\"Status code is 404 Not Found\", function () {\r","    pm.response.to.have.status(404);\r","});"],"type":"text/javascript","packages":{}}}],"id":"536f66ed-473c-4591-aba8-ad2aac5fa674","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"from_account\": \"SYSTEM\",\r\n  \"to_account\": \"01500000000\",\r\n  \"amount\": 2187\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/transaction/deposit","urlObject":{"path":["transaction","deposit"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"536f66ed-473c-4591-aba8-ad2aac5fa674"},{"name":"System Deposits Agent","event":[{"listen":"test","script":{"id":"ac997bc2-fe0d-435d-b8de-ad797642a267","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if a deposit has done successfully\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"Deposit successful\")\r","});\r","\r","pm.test(\"Status code is 201 Created\", function () {\r","    pm.response.to.have.status(201);\r","});"],"type":"text/javascript","packages":{}}}],"id":"a9ba4891-8803-4093-a17e-225a279636ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"from_account\": \"SYSTEM\",\r\n  \"to_account\": \"01904142806\",\r\n  \"amount\": 2187\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/transaction/deposit","urlObject":{"path":["transaction","deposit"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"a9ba4891-8803-4093-a17e-225a279636ac"}],"id":"c181b589-63b5-4e2c-bb45-60e73c1dba00","_postman_id":"c181b589-63b5-4e2c-bb45-60e73c1dba00","description":""},{"name":"Agent to Customer","item":[{"name":"Agent Deposits Customer_02 Below Minimum limit","event":[{"listen":"test","script":{"id":"5b5c69c2-d45e-4446-9d6b-8ce2c13ee3f7","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if a deposit below the minimum limit is not successful\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"Minimum deposit amount is 10 tk\")\r","});\r","\r","pm.test(\"Status code is 208 Already Reported\", function () {\r","    pm.response.to.have.status(208);\r","});"],"type":"text/javascript","packages":{}}}],"id":"af1efe7a-167d-4018-abef-a234cd95c816","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n// So this case - Agent deposits money to customer_02\r\n\r\n  \"from_account\": \"01904142806\",\r\n  \"to_account\": \"01406486334\",\r\n  \"amount\": 9 ////minimum limit 10\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/transaction/deposit","urlObject":{"path":["transaction","deposit"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"af1efe7a-167d-4018-abef-a234cd95c816"},{"name":"Agent Deposits Customer_02  with Insufficient Balance","event":[{"listen":"test","script":{"id":"3b1bd07e-31d0-4151-926e-302587de1a23","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if a deposit is not sucess with insufficient balance\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"Insufficient balance\")\r","});\r","\r","pm.test(\"Status code is 208 Already Reported\", function () {\r","    pm.response.to.have.status(208);\r","});"],"type":"text/javascript","packages":{}}}],"id":"f38342b7-75c8-4397-84e3-ee7625d74fc8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n// So this case - Agent deposits money to customer_02\r\n\r\n  \"from_account\": \"01904142806\",\r\n  \"to_account\": \"01406486334\",\r\n  \"amount\": 15000\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/transaction/deposit","urlObject":{"path":["transaction","deposit"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"f38342b7-75c8-4397-84e3-ee7625d74fc8"},{"name":"Agent Deposits to a invalid account","event":[{"listen":"test","script":{"id":"ac997bc2-fe0d-435d-b8de-ad797642a267","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if a deposit has not done to invalid account\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"To Account does not exist\")\r","});\r","\r","pm.test(\"Status code is 404 Not Found\", function () {\r","    pm.response.to.have.status(404);\r","});"],"type":"text/javascript","packages":{}}}],"id":"7dfd260d-2d3b-4b1a-b1cf-7a91fab6378c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"from_account\": \"01904142806\",\r\n  \"to_account\": \"01300000000\",\r\n  \"amount\": 300\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/transaction/deposit","urlObject":{"path":["transaction","deposit"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"7dfd260d-2d3b-4b1a-b1cf-7a91fab6378c"},{"name":"Agent Deposits Customer_02","event":[{"listen":"test","script":{"id":"50a935a6-c4fc-4146-9422-a29bd36d87a7","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if a deposit has done successfully\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"Deposit successful\")\r","});\r","\r","pm.test(\"Status code is 201 Created\", function () {\r","    pm.response.to.have.status(201);\r","});"],"type":"text/javascript","packages":{}}}],"id":"67f3d16c-d329-4736-8421-64bafea0d8fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n// So this case - Agent deposits money to customer_02\r\n\r\n  \"from_account\": \"01904142806\",\r\n  \"to_account\": \"01406486334\",\r\n  \"amount\": 300\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/transaction/deposit","urlObject":{"path":["transaction","deposit"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"67f3d16c-d329-4736-8421-64bafea0d8fb"}],"id":"6938e30e-1851-432f-93b5-fc66181ac501","_postman_id":"6938e30e-1851-432f-93b5-fc66181ac501","description":""}],"id":"25c53528-f86e-42ae-bed9-27d57fa682fe","_postman_id":"25c53528-f86e-42ae-bed9-27d57fa682fe","description":""},{"name":"Agent Balance Check","item":[{"name":"Agent Balance with invalid number","event":[{"listen":"test","script":{"id":"85c3eb6e-5123-43b7-83bf-18a645868831","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if a Agent balance is not shown\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"User not found\")\r","});\r","\r","pm.test(\"Status code is 404 Not Found\", function () {\r","    pm.response.to.have.status(404);\r","});"],"type":"text/javascript","packages":{}}}],"id":"7c5f786b-6e3f-45d2-9711-0a85eaacaa16","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/transaction/balance/01959981909","urlObject":{"path":["transaction","balance","01959981909"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"7c5f786b-6e3f-45d2-9711-0a85eaacaa16"},{"name":"Agent Balance Check","event":[{"listen":"test","script":{"id":"85c3eb6e-5123-43b7-83bf-18a645868831","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if a Agent balance shown successfully\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"User balance\")\r","});\r","\r","pm.test(\"Status code is 200 Ok\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript","packages":{}}}],"id":"cf34fce7-3081-4950-bc8d-50d1ea57c71d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/transaction/balance/01904142806","urlObject":{"path":["transaction","balance","01904142806"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"cf34fce7-3081-4950-bc8d-50d1ea57c71d"}],"id":"b238ef7a-26ae-4d9b-b94e-b564342bd653","_postman_id":"b238ef7a-26ae-4d9b-b94e-b564342bd653","description":""},{"name":"Send Money - C2C","item":[{"name":"C2C to an invalid account","event":[{"listen":"test","script":{"id":"76ba39a1-aa93-42ca-b193-5214744a59e5","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if send money is unsuccessfull\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"To Account does not exist\")\r","});\r","\r","pm.test(\"Status code is 404 Not Found\", function () {\r","    pm.response.to.have.status(404);\r","});"],"type":"text/javascript","packages":{}}}],"id":"9452ae4d-9cc4-498a-a474-fc22e6327ff5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"from_account\": \"01406486334\",\r\n  \"to_account\": \"01959981909\",\r\n  \"amount\": 15\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/transaction/sendmoney","urlObject":{"path":["transaction","sendmoney"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"9452ae4d-9cc4-498a-a474-fc22e6327ff5"},{"name":"C2C with below minimum amount","event":[{"listen":"test","script":{"id":"76ba39a1-aa93-42ca-b193-5214744a59e5","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if send money below the minimum limit is unsuccessful\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"Minimum amount is 10 tk\")\r","});\r","\r","pm.test(\"Status code is 208 Already Reported\", function () {\r","    pm.response.to.have.status(208);\r","});"],"type":"text/javascript","packages":{}}}],"id":"b224cd90-5601-4d65-9525-cb2a6fc5fbb8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"from_account\": \"01406486334\",\r\n  \"to_account\": \"01306026358\",\r\n  \"amount\": 9 //minimum limit 10\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/transaction/sendmoney","urlObject":{"path":["transaction","sendmoney"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"b224cd90-5601-4d65-9525-cb2a6fc5fbb8"},{"name":"C2C with Insufficient amount","event":[{"listen":"test","script":{"id":"76ba39a1-aa93-42ca-b193-5214744a59e5","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if a send money is unsuccessful with insufficiant balance\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"Insufficient balance\")\r","});\r","\r","pm.test(\"Status code is 208 Already Reported\", function () {\r","    pm.response.to.have.status(208);\r","});"],"type":"text/javascript","packages":{}}}],"id":"a87bb803-b3b2-4df7-813f-195a459c433d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"from_account\": \"01406486334\",\r\n  \"to_account\": \"01306026358\",\r\n  \"amount\": 15000 \r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/transaction/sendmoney","urlObject":{"path":["transaction","sendmoney"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"a87bb803-b3b2-4df7-813f-195a459c433d"},{"name":"C2C Send Money","event":[{"listen":"test","script":{"id":"36686e8c-1ebb-4a00-830b-da510f13c096","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if send money successfull\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"Send money successful\")\r","});\r","\r","pm.test(\"Status code is 201 Created\", function () {\r","    pm.response.to.have.status(201);\r","});"],"type":"text/javascript","packages":{}}}],"id":"976df2a3-f7e1-4593-9dc9-66425c42988a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"from_account\": \"01406486334\",\r\n  \"to_account\": \"01306026358\",\r\n  \"amount\": 30\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/transaction/sendmoney","urlObject":{"path":["transaction","sendmoney"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"976df2a3-f7e1-4593-9dc9-66425c42988a"}],"id":"1f5ea0d6-33fc-46a7-a0c6-1c06e1cbaf9e","_postman_id":"1f5ea0d6-33fc-46a7-a0c6-1c06e1cbaf9e","description":""},{"name":"Withdraw - C2A","item":[{"name":"Withdraw from Customer to Agent with invalid account","event":[{"listen":"test","script":{"id":"47097b42-fa26-46f6-8749-7c41ebad0379","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if withdraw is unsuccessful with an invalid account\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"To Account does not exist\")\r","});\r","\r","pm.test(\"Status code is 404 Not Found\", function () {\r","    pm.response.to.have.status(404);\r","});\r","\r",""],"type":"text/javascript","packages":{}}}],"id":"d18226b8-bd91-4fa0-baf6-4c1dfcd3fe8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"from_account\": \"01306026358\",\r\n  \"to_account\": \"01959981909\",\r\n  \"amount\": 10\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/transaction/withdraw","urlObject":{"path":["transaction","withdraw"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"d18226b8-bd91-4fa0-baf6-4c1dfcd3fe8e"},{"name":"Withdraw from Customer to Agent with insufficient balance","event":[{"listen":"test","script":{"id":"47097b42-fa26-46f6-8749-7c41ebad0379","exec":["const jsonResponse = pm.response.json();\r","\r","\r","//test automation \r","pm.test(\"Check if withdraw is unsuccessful having insufficient balance in account\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"Insufficient balance\")\r","});\r","\r","pm.test(\"Status code is 208 already reported\", function () {\r","    pm.response.to.have.status(208);\r","});\r","\r",""],"type":"text/javascript","packages":{}}}],"id":"ab2b6d13-7b8b-46c6-8f23-9ff7122b4b65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"from_account\": \"01306026358\",\r\n  \"to_account\": \"01904142806\",\r\n  \"amount\": 15000\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/transaction/withdraw","urlObject":{"path":["transaction","withdraw"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"ab2b6d13-7b8b-46c6-8f23-9ff7122b4b65"},{"name":"Withdraw from Customer to Agent below minimum limit","event":[{"listen":"test","script":{"id":"47097b42-fa26-46f6-8749-7c41ebad0379","exec":["const jsonResponse = pm.response.json();\r","\r","\r","//test automation \r","pm.test(\"Check if withdraw below the minimum limit is unsuccessful\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"Minimum withdraw amount is 10 tk\")\r","});\r","\r","pm.test(\"Status code is 208 already reported\", function () {\r","    pm.response.to.have.status(208);\r","});\r","\r",""],"type":"text/javascript","packages":{}}}],"id":"17e9a5fe-e971-4223-b14a-bcf9dc08b661","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"from_account\": \"01306026358\",\r\n  \"to_account\": \"01904142806\",\r\n  \"amount\": 8\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/transaction/withdraw","urlObject":{"path":["transaction","withdraw"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"17e9a5fe-e971-4223-b14a-bcf9dc08b661"},{"name":"Withdraw from Customer to Agent","event":[{"listen":"test","script":{"id":"47097b42-fa26-46f6-8749-7c41ebad0379","exec":["const jsonResponse = pm.response.json();\r","const trnsactionId = jsonResponse.trnxId;\r","\r","//storing transaction id in collection variables\r","pm.collectionVariables.set(\"trnsactionId\", trnsactionId);\r","\r","\r","//test automation \r","pm.test(\"Check if withdraw is successful\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"Withdraw successful\")\r","});\r","\r","pm.test(\"Status code is 201 Created\", function () {\r","    pm.response.to.have.status(201);\r","});\r","\r",""],"type":"text/javascript","packages":{}}}],"id":"0fa0ee62-d00f-40a4-99fa-ae332767e4df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"from_account\": \"01306026358\",\r\n  \"to_account\": \"01904142806\",\r\n  \"amount\": 10\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/transaction/withdraw","urlObject":{"path":["transaction","withdraw"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"0fa0ee62-d00f-40a4-99fa-ae332767e4df"}],"id":"e64a8047-e949-43d5-98a2-4ed0fa1ae038","_postman_id":"e64a8047-e949-43d5-98a2-4ed0fa1ae038","description":""},{"name":"Check Balance & Trans. Statement by TranxID","item":[{"name":"1st Customer Balance Check with invalid account","event":[{"listen":"test","script":{"id":"a518a77a-7315-4fc0-b1ee-2362ccf7a176","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if customer balance is not shown\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"User not found\")\r","});\r","\r","pm.test(\"Status code is 404 Not Found\", function () {\r","    pm.response.to.have.status(404);\r","});"],"type":"text/javascript","packages":{}}}],"id":"b70eb768-d3f7-4d32-8f34-b752650a1975","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/transaction/balance/01959181905","urlObject":{"path":["transaction","balance","01959181905"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"b70eb768-d3f7-4d32-8f34-b752650a1975"},{"name":"1st Customer Transaction Statement with invalid tranxId","event":[{"listen":"test","script":{"id":"bdc81c24-d8d1-40d8-96a3-9bbd86df50aa","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if customer transaction statement is not show\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"Transaction not found\")\r","});\r","\r","pm.test(\"Status code is 404 Not Found\", function () {\r","    pm.response.to.have.status(404);\r","});"],"type":"text/javascript","packages":{}}}],"id":"83f3a363-c74b-43d9-91ab-329c4f9ba92e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"url":"https://dmoney.roadtocareer.net/transaction/search/trx1234","urlObject":{"path":["transaction","search","trx1234"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"83f3a363-c74b-43d9-91ab-329c4f9ba92e"},{"name":"1st Customer Transaction Statement by TranxId","event":[{"listen":"test","script":{"id":"b94505b5-25ae-434f-86c3-e0718276b946","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if customer transaction statement shown successfully\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"Transaction list\")\r","});\r","\r","pm.test(\"Status code is 200 Ok\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript","packages":{}}}],"id":"068653aa-3c54-41fe-baf6-6522159c2da2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"url":"https://dmoney.roadtocareer.net/transaction/search/TXN966807","urlObject":{"path":["transaction","search","TXN966807"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"068653aa-3c54-41fe-baf6-6522159c2da2"},{"name":"1st Customer Balance Check","event":[{"listen":"test","script":{"id":"9b07e31d-6f55-4bee-9aca-b67eeb099c6d","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if customer balance is shown successfully\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"User balance\")\r","});\r","\r","pm.test(\"Status code is 200 Ok\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript","packages":{}}}],"id":"64774561-b619-4d6e-9298-1717bd5ca6e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"url":"https://dmoney.roadtocareer.net/transaction/balance/01306026358","urlObject":{"path":["transaction","balance","01306026358"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"64774561-b619-4d6e-9298-1717bd5ca6e2"}],"id":"a5141a1f-9e14-4eb8-b844-351d2345cf77","_postman_id":"a5141a1f-9e14-4eb8-b844-351d2345cf77","description":""},{"name":"Payment - C2M","item":[{"name":"2nd C2M Payment with invalid Phone Number","event":[{"listen":"test","script":{"id":"83e605aa-cfda-4e25-ac0a-04d6a8c826fb","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if payment is not successfully with invalid account\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"To Account does not exist\")\r","});\r","\r","pm.test(\"Status code is 404 Not Found\", function () {\r","    pm.response.to.have.status(404);\r","});"],"type":"text/javascript","packages":{}}}],"id":"5b590c0a-9cb2-475d-bb66-b3b738f343f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"from_account\": \"01406486334\",\r\n  \"to_account\": \"01959981909\",\r\n  \"amount\": 300\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/transaction/payment","urlObject":{"path":["transaction","payment"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"5b590c0a-9cb2-475d-bb66-b3b738f343f5"},{"name":"2nd C2M Payment having insufficient balance","event":[{"listen":"test","script":{"id":"af50005b-6302-4ecd-ba32-9af0b3945a55","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if payment is not successfully because of insufficient balance\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"Insufficient balance\")\r","});\r","\r","pm.test(\"Status code is 208 Already Reported\", function () {\r","    pm.response.to.have.status(208);\r","});"],"type":"text/javascript","packages":{}}}],"id":"204bb46e-34c0-4641-a0cd-a4896d621ec1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"from_account\": \"01406486334\",\r\n  \"to_account\": \"01902630203\",\r\n  \"amount\": 350\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/transaction/payment","urlObject":{"path":["transaction","payment"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"204bb46e-34c0-4641-a0cd-a4896d621ec1"},{"name":"2nd C2M Payment","event":[{"listen":"test","script":{"id":"909a09ca-0e1c-46e5-ac52-8aafcccb0a77","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if payment done successfully\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"Payment successful\")\r","});\r","\r","pm.test(\"Status code is 201 Created\", function () {\r","    pm.response.to.have.status(201);\r","});"],"type":"text/javascript","packages":{}}}],"id":"a2cbb30b-e77e-4543-aa7b-051746294727","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"from_account\": \"01406486334\",\r\n  \"to_account\": \"01902630203\",\r\n  \"amount\": 20\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmoney.roadtocareer.net/transaction/payment","urlObject":{"path":["transaction","payment"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"a2cbb30b-e77e-4543-aa7b-051746294727"}],"id":"a596acac-8859-48f0-b916-80ed0d44990d","_postman_id":"a596acac-8859-48f0-b916-80ed0d44990d","description":""},{"name":"Check Balance & Transaction Statement - 2nd Customer","item":[{"name":"2nd Customer Balance Check with invalid account","event":[{"listen":"test","script":{"id":"08610c18-6832-43bd-b4e8-5dd315c6bdc2","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if customer balance is not shown with invalid account\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"User not found\")\r","});\r","\r","pm.test(\"Status code is 404 Not Found\", function () {\r","    pm.response.to.have.status(404);\r","});"],"type":"text/javascript","packages":{}}}],"id":"abd56aeb-360f-4d2f-93cc-cc970f6f8679","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"url":"https://dmoney.roadtocareer.net/transaction/balance/01598102547","urlObject":{"path":["transaction","balance","01598102547"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"abd56aeb-360f-4d2f-93cc-cc970f6f8679"},{"name":"2nd Customer Transaction Statement with invalid account","event":[{"listen":"test","script":{"id":"73ae3e39-7d90-4dce-a9f8-51a907000310","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if transaction statement is not shown with invalid account\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"User not found\")\r","});\r","\r","pm.test(\"Status code is 404 Not Found\", function () {\r","    pm.response.to.have.status(404);\r","});"],"type":"text/javascript","packages":{}}}],"id":"880d2141-b114-4447-aed5-6a25f07e2c2f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"url":"https://dmoney.roadtocareer.net/transaction/statement/01958736475","urlObject":{"path":["transaction","statement","01958736475"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"880d2141-b114-4447-aed5-6a25f07e2c2f"},{"name":"2nd Customer Balance Check","event":[{"listen":"test","script":{"id":"ca01d989-6f11-41ad-801e-3d3733e28998","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if customer balance shown successfully\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"User balance\")\r","});\r","\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript","packages":{}}}],"id":"22645b59-b080-4eb3-b05b-05229d44a1b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"url":"https://dmoney.roadtocareer.net/transaction/balance/01406486334","urlObject":{"path":["transaction","balance","01406486334"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"22645b59-b080-4eb3-b05b-05229d44a1b6"},{"name":"2nd Customer Transaction Statement","event":[{"listen":"test","script":{"id":"0b3380d4-3371-4b61-a90b-9b4028a59903","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if customer transaction is shown successful\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"Transaction list\")\r","});\r","\r","pm.test(\"Status code is 200 Ok\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript","packages":{}}}],"id":"6b679857-25f8-4649-aa78-68b552be6303","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"url":"https://dmoney.roadtocareer.net/transaction/statement/01406486334","urlObject":{"path":["transaction","statement","01406486334"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"6b679857-25f8-4649-aa78-68b552be6303"}],"id":"2e7e0f18-06ac-4233-b289-d6ca94f03548","_postman_id":"2e7e0f18-06ac-4233-b289-d6ca94f03548","description":""},{"name":"Merchant Balance Check","item":[{"name":"Merchant Balance Check with invalid account","event":[{"listen":"test","script":{"id":"c4e21dfc-f2c2-4499-bb99-4bbdd4796f03","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if Merchant balance shown is not successful with invalid account\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"User not found\")\r","});\r","\r","pm.test(\"Status code is 404 Not Found\", function () {\r","    pm.response.to.have.status(404);\r","});"],"type":"text/javascript","packages":{}}}],"id":"0b50f21a-c6f9-4cbc-9774-c8215753e05c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"url":"https://dmoney.roadtocareer.net/transaction/balance/01959981909","urlObject":{"path":["transaction","balance","01959981909"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"0b50f21a-c6f9-4cbc-9774-c8215753e05c"},{"name":"Merchant Balance Check","event":[{"listen":"test","script":{"id":"c4e21dfc-f2c2-4499-bb99-4bbdd4796f03","exec":["const jsonResponse = pm.response.json();\r","\r","//test automation \r","pm.test(\"Check if Merchant balance shown successfully\",function(){\r","    pm.expect(jsonResponse.message).to.contains(\"User balance\")\r","});\r","\r","pm.test(\"Status code is 200 Ok\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript","packages":{}}}],"id":"7f6504c4-c245-4ffe-8f31-e697dfe12efb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw","type":"text"},{"key":"X-AUTH-SECRET-KEY","value":"ROADTOSDET","type":"text"}],"url":"https://dmoney.roadtocareer.net/transaction/balance/01902630203","urlObject":{"path":["transaction","balance","01902630203"],"host":["https://dmoney.roadtocareer.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"7f6504c4-c245-4ffe-8f31-e697dfe12efb"}],"id":"f20ef1c7-8946-4fa3-9319-fdc98fd0794f","_postman_id":"f20ef1c7-8946-4fa3-9319-fdc98fd0794f","description":""}],"event":[{"listen":"prerequest","script":{"id":"aafc2029-1f40-46c9-b86a-0855182cfe6d","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"96f9dc84-4a71-42d2-809f-d8d4ab71b893","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"base url","value":"https://dmoney.roadtocareer.net","type":"string"},{"key":"secretkey","value":"ROADTOSDET","type":"string"},{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiYWRtaW5Acm9hZHRvY2FyZWVyLm5ldCIsInJvbGUiOiJBZG1pbiIsImlhdCI6MTczMjc5OTk0NiwiZXhwIjoxNzMyODAzNTQ2fQ.8RpgTAWGDZ1i3xaIp84cwq2S3CJ0OU-AVeK7JoXWvRw"},{"key":"agentPhoneNumber","value":"01904142806"},{"key":"customerPhoneNumber_01","value":"01306026358"},{"key":"customerPhoneNumber_02","value":"01406486334"},{"key":"merchantPhoneNumber","value":"01902630203"},{"key":"trnsactionId","value":"TXN966807"}]}