{"info":{"name":"nPVR_Convergence_Catchup_Transactional","_postman_id":"badc952a-5464-4c56-af44-e042940fb2d4","description":"","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"},"item":[{"name":"Library","description":"03/04/2017 10:00","item":[{"name":"Initialization library","event":[{"listen":"test","script":{"type":"text/javascript","exec":["try {","    eval(responseBody);","    pushGlobal(\"module:library\", responseBody, false);","}catch (err) { ","    console.log(\"Error init framework: \"+ err.message);","    postman.setNextRequest(null);","}","tests['Framework ready'] = (typeof checkCore === 'function');"]}}],"request":{"method":"GET","header":[{"key":"Cache-Control","value":"no-cache, no-store"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url_initialization_library}}","host":["{{url_initialization_library}}"]},"description":null},"response":[]},{"name":"Initialization script","event":[{"listen":"test","script":{"type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","try {","    eval(responseBody);","    pushGlobal(\"module:script\", responseBody, false);","}catch (err) { ","    console.log(\"Error init script: \"+ err.message);","    postman.setNextRequest(null);","}","tests['Script ready'] = (typeof checkScripts === 'function');",""]}}],"request":{"method":"GET","header":[{"key":"Cache-Control","value":"no-cache, no-store"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url_initialization_script}}","host":["{{url_initialization_script}}"]},"description":null},"response":[]},{"name":"Get CycleID","event":[{"listen":"test","script":{"type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","eval(postman.getGlobalVariable(\"module:script\"));","","getCycleID();"]}},{"listen":"prerequest","script":{"type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","eval(postman.getGlobalVariable(\"module:script\"));","","setJiraToken();"]}}],"request":{"method":"GET","header":[{"key":"Authorization","value":"{{jira_token}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url_zephyr_get_cycle_id}}","host":["{{url_zephyr_get_cycle_id}}"]},"description":null},"response":[]}]},{"name":"EIT-3995 - When user wants to purchases the transactional cutv event having PACKAGE, CHANNEL and EVENT level Solution offer associated","description":"*Scenario*:\r\nWhen an event is associated with CUTV_EVENT, CUTV_CHANNEL and CUTV_PACKAGE level, then if user wants to watch that content, system should ask the user to purchase the CUTV_EVENT's solution offer and price info also should be based on that.\r\n\r\n*Prerequisites*:\r\n1. Created a LIVE_SUB technical package, Subscription type Commercial Package (Subscription Creation)\r\n2. Creating a channel with above LIVE_SUB technical package association along with CUTV_CHANNEL solution offer assocaited\r\n3. EPG Ingestion with IsCatchUp enabled events, along with CUTV_EVENT solution offer associated.\r\n4. CUTV_PACKAGE ingestor with above channel associating\r\n\r\n\r\n*Steps*:\r\n1.Register a user\r\n2. Login to AVS Portal\r\n3. User navigates to Live Catalogue section\r\n4. User tries to watch the transactional cutv event\r\n5. User wants to purchase that content\r\n6. User tries to purchase the CUTV_EVENT subscription\r\n7. user watches the tranasactional cutv event\r\n\r\n**Expected Results:*\r\n*1. User is registered\r\n2. User should be successfully logged in\r\n3. CUTV Transactional Events should be available \r\n4. User should not able to watch transactional cutv event as he did not purchased that.\r\n5. Though PACKAGE, CHANNEL level subscriptions are associated, system should show CUTV_EVENT subscription details to purchase\r\n6.Now User should able to purchase the transactional cutv event's CUTV_EVENT solution offer\r\n7. User should be able to watch the content\r\n\r\n||priceCateforyFor||priceCategoryName||priceCategoryDescription||price||frequency||currencyType||\r\n|LIVESUBSCRIPTION|Rec Action Movies usd|Rec Action Movies usd|4.99|Monthly|USD|\r\n|CUTV_CHANNEL|NR_42102504|NR_42102504|5.00|NoFrequency|EUR|\r\n|CUTV_EVENT|Basic eur|Basic eur|6.00|NoFrequency|EUR|\r\n|CUTV_PACKAGE|Smart rub|Smart rub|9.00|NoFrequency|RUB|\r\n\r\n||paymentMethod||\r\n|INVOICE|\r\n|PAYPAL|\r\n|BRAINTREE|\r\n\r\n||SolutionOfferFor||Sol_Offer_Name||Sol_Offer_Id||\r\n|LIVE_SUB|LIVE CHANNEL_TranCUTV_All_Levels|12703|\r\n|CUTV_CHANNEL|CUTV_CHANNEL_All_Level_342018|12705|\r\n|CUTV_EVENT|will be captured at run time|will be captured at run time|\r\n|CUTV_PACKAGE|SOL_CUTV_PK_10897|12707|\r\n\r\n||ChannelId||\r\n|342018|","item":[{"name":"EIT-3995 - Load TC","event":[{"listen":"test","script":{"type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","tests[\"Load TC\"] = loadTestCase();"]}},{"listen":"prerequest","script":{"type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","pushGlobal(ZEPHYR_KEY, getZephyrKey());"]}}],"request":{"method":"GET","header":[{"key":"Authorization","value":"{{jira_token}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url_zephyr_tc}}","host":["{{url_zephyr_tc}}"]},"description":"Zephyr API integration on Postman"},"response":[]},{"name":"EIT-3995 - Load Execution","event":[{"listen":"test","script":{"type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","tests[\"Start execution\"] = loadExecutionId();"]}}],"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{jira_token}}"}],"body":{"mode":"raw","raw":"{\r\n  \"cycleId\": \"{{cycleID}}\",\r\n  \"issueId\": \"{{issueId}}\",\r\n  \"projectId\": \"{{Jira_projectId}}\",\r\n  \"versionId\": \"{{versionId}}\"\r\n}"},"url":{"raw":"{{url_zephyr_execution}}","host":["{{url_zephyr_execution}}"]},"description":"Zephyr API integration on Postman"},"response":[]},{"name":"EIT-3995 - Load Steps","event":[{"listen":"test","script":{"type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","","var dati = getTCData();","tests[\"Load steps\"] = loadTestCaseSteps(dati.num_of_steps);"]}}],"request":{"method":"GET","header":[{"key":"Authorization","value":"{{jira_token}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url_zephyr_steps}}","host":["{{url_zephyr_steps}}"]},"description":null},"response":[]},{"name":"EIT-3995 - Header","event":[{"listen":"test","script":{"type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","eval(postman.getGlobalVariable(\"module:script\"));","","startHeader(function(regs, iCount) {","    var nanoParams = regs[iCount].object.nanoParams;","    if (!isUndefined(nanoParams)) {","        pushGlobal(\"tenant\", nanoParams.tenant);","        pushGlobal(\"appversion\", nanoParams.appversion);","        pushGlobal(\"cluster\", nanoParams.cluster);","        pushGlobal(\"locale\", nanoParams.locale);","        pushGlobal(\"propertyName\", nanoParams.propertyName);","    }","});"]}}],"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url_dummy}}","host":["{{url_dummy}}"]},"description":"Header of TC"},"response":[]},{"name":"EIT-3995 - POST CRMAccountListMgmt","event":[{"listen":"test","script":{"id":"b60fbeb9-907c-4403-9c6a-6d250800b516","type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","eval(postman.getGlobalVariable(\"module:script\"));","","testShell(function(dati, i, expected) {","    setTests(\"checkReg\", checkRegistrationAMS(expected));","    var resp = JSON.parse(responseBody);","    if (getLastTests()) {","        var userId = resp.subscriber[0].userId;","        pushGlobal(\"partyId\", userId);","        var USERNAME = resp.subscriber[0].crmAccountId;","        pushGlobal(\"USERNAME\", USERNAME);","    }","}, false);"]}},{"listen":"prerequest","script":{"id":"c16a2e81-9359-4ece-a291-40949978ac47","type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","eval(postman.getGlobalVariable(\"module:script\"));","","preRequestShell(function(dati, n) {","    var userData = dati.scenarios[n];","    var dm = getLoginDMParams();","    pushGlobal(\"username\", userData.username);","    pushGlobal(\"password\", userData.password);","    pushGlobal(\"optional_params\", dm);","});"]}}],"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"operationType\": \"CREATE\",\r\n    \"tenantName\": \"tenant_1\",\r\n    \r\n    \"subscriberList\": [{\r\n        \"crmAccountId\": \"{{username}}\",\r\n        \"userType\": \"R\",\r\n        \"qualitySetting\": \"1\",\r\n        \"userPaymentMethod\":\"5\",\r\n        \"userPinPurchase\": \"0000\",\r\n        \"userPinParentalControl\": \"0000\",\r\n        \"crmAccountRetailerDomain\": \"0001\",\r\n        \"newsLetters\": \"Y\",\r\n        \"blackList\": \"N\",\r\n        \"fiscalCode\": \"AS99DD87D92HJ\",\r\n        \"address\": \"str1234\",\r\n        \"addressNumber\": \"str1234\",\r\n        \"marketingFlag\": \"Y\",\r\n        \"personalizedServicesFlag\": \"Y\",\r\n        \"thirdPartiesFlag\": \"Y\",\r\n\r\n        \"serviceStartDate\": \"2017-12-13\",\r\n        \"geoCountry\": { \"geoCountryId\": \"1\" },\r\n\t\t\"geoState\": { \"geoStateId\": \"4\" },\r\n\t\t\"geoProvince\": { \"geoProvinceId\": \"214\" },\r\n\t\t\"geoCity\": { \"geoCityId\": \"2059\" },\r\n        \"geoZipCode\": {\r\n\t\t\t\"geoZipCodeId\": \"12087\",\r\n\t\t\t\"geoZipCodeValue\": \"500059\"\r\n\t\t\t},\r\n\r\n        \"serviceEndDate\": \"2030-12-13\",\r\n        \"maxBWOverride\": \"100\",\r\n        \"maxHDStreams\": \"100\",\r\n        \"accessBWProfile\": \"100\",\r\n        \"maxHDSetTopBoxes\": \"99\",\r\n        \"accountList\": [{\r\n        \r\n            \"isMaster\": \"Y\",\r\n            \"userStatus\": \"1\",\r\n            \"username\": \"{{username}}\",\r\n            \"password\": \"{{password}}\",\r\n            \"firstname\": \"Avs\",\r\n            \"surname\": \"Pt\",\r\n            \"birthDate\": \"1980-03-30\",\r\n            \"gender\": \"M\",\r\n            \"email\": \"21mar6@mailinator.com\",\r\n            \"crmAccountMobileNumber\": \"43434343434343\",\r\n            \"userLanguage\": \"ENG\",\r\n            \"userPcLevelVod\": \"9\",\r\n            \"userPcLevelEpg\": \"0\",\r\n            \"isAdmin\": \"true\",\r\n            \"lockUnratedShows\": \"Y\",\r\n            \"showAllTitles\": \"Y\",\r\n            \"showGuideInformation\": \"Y\",\r\n            \"audioLanguageType\": \"ENG\",\r\n            \"uiLanguageType\": \"ENG\",\r\n            \"nickName\": \"ap\",\r\n            \"advTags\": \"str1234\",\r\n            \"purchaseEnabled\": \"true\"\r\n        }],\r\n        \"userRememberPinFlag\": \"N\",\r\n        \"userRememberPurchasePinflag\": \"N\",\r\n        \"pcFlag\": \"N\"\r\n    }]\r\n}"},"url":{"raw":"{{url_registration}}","host":["{{url_registration}}"]},"description":null},"response":[]},{"name":"EIT-3995 - POST USER/SESSIONS","event":[{"listen":"test","script":{"id":"dd8711ec-003d-49b7-9ce3-f38fba58fd81","type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","eval(postman.getGlobalVariable(\"module:script\"));","","testShell(function(dati, i, expected) {","    setTests(\"NanoLogin\", baseCheckResponse());","});"]}},{"listen":"prerequest","script":{"id":"3d8e2e1e-36bc-4860-9c62-6c2654a207f0","type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","eval(postman.getGlobalVariable(\"module:script\"));","","preRequestShell(function(dati, n) {","    var userData = dati.scenarios[n];","    var dm = getLoginDMParams();","    //pushGlobal(\"username\", userData.user);","    pushGlobal(\"password\", userData.password);","    pushGlobal(\"optional_params\", dm);","});"]}}],"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n        \"credentialStdAuth\":{\r\n        \"username\" : \"{{USERNAME}}\",\r\n        \"password\" : \"{{password}}\"\r\n        }\r\n} "},"url":{"raw":"{{url_USER_SESSIONS}}","host":["{{url_USER_SESSIONS}}"]},"description":null},"response":[]},{"name":"EIT-3995 - GET TRAY/EPG","event":[{"listen":"test","script":{"id":"574717a5-fc03-4c65-a90d-7b51373c4272","type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","eval(postman.getGlobalVariable(\"module:script\"));","","testShell(function(dati, i, expected) {","    setTests(\"TRAY/EPG\", baseCheckResponse());","    if (getLastTests()) {","        //check hits not empty","        var json = JSON.parse(responseBody);","        var hits = json.resultObj.containers;","        setTests(\"Container filled\", !isEmptyList(hits));","        if (getLastTests()) {","            //get a channel ID","            var channelId = dati.scenarios[i].channelId;","            //var channelFound = \"TRUE\";","             //setTests(\"ChannelId present\", (isInList(channelId, hits, channelId)) === true);","             console.log(\"channel id is \"+json.resultObj.containers[0].metadata.channelId);","             console.log(\"channel id from data file \"+ channelId);","             setTests(\"ChannelId present\", ((json.resultObj.containers[0].metadata.channelId) == channelId));","        //Add further checks","        if (getLastTests())","        {","            var contentId =json.resultObj.containers[0].containers[0].metadata.contentId;","            var contentType = json.resultObj.containers[0].containers[0].metadata.contentType;","            pushGlobal(\"contentId\", contentId);","            pushGlobal(\"contentType\", contentType);","            ","        }","        }","    }","})"]}},{"listen":"prerequest","script":{"id":"8590313b-26e1-4e78-9fbc-6b931c6305be","type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","eval(postman.getGlobalVariable(\"module:script\"));","","preRequestShell(function(dati, n) {","    var scenario = dati.scenarios[n];","   /* pushGlobal(\"lang\", scenario.lang);","    pushGlobal(\"tenant\", scenario.tenant);","    pushGlobal(\"appversion\", scenario.appversion);","    pushGlobal(\"cluster\", scenario.cluster);","    pushGlobal(\"propertyName\", scenario.propertyName);*/","    pushGlobal(\"channelId\", scenario.channelId);","     pushGlobal(\"filter_query\", scenario.filter_query);","});"]}}],"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url_TRAY_EPG}}","host":["{{url_TRAY_EPG}}"]},"description":null},"response":[]},{"name":"EIT-3995 - POST USER/PURCHASES","event":[{"listen":"test","script":{"id":"601b5d3a-1325-48b4-99c5-002e72eca1f3","type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","eval(postman.getGlobalVariable(\"module:script\"));","","testShell(function(dati, i, expected) {","    setTests(\"USER/PURCHASES OK\", baseCheckResponse());","    ","});"]}},{"listen":"prerequest","script":{"id":"865b63a2-245b-4c4a-bd89-3f97e736be66","type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","eval(postman.getGlobalVariable(\"module:script\"));","","preRequestShell(function(dati, n) {","","    //solutionOfferId should be a global variable","        var   solutionOfferId = dati.scenarios[n].LIVESUBSCRIPTIONID;","    pushGlobal(\"liveSolutionOfferId\", solutionOfferId);","});"]}}],"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\"commercialPackageId\": \"{{liveSolutionOfferId}}\",\n\"pin\":\"0000\"\n}"},"url":{"raw":"{{url_USER_PURCHASES}}","host":["{{url_USER_PURCHASES}}"]},"description":null},"response":[]},{"name":"EIT-3995 - GET CONTENT/USERDATA","event":[{"listen":"test","script":{"id":"47e42c5d-c7e4-47ca-b353-404eaaa65a08","type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","eval(postman.getGlobalVariable(\"module:script\"));","","testShell(function(dati, i, expected) {","    setTests(\"CONTENT/USERDATA\", baseCheckResponse());","    if (getLastTests()) {","        var json = JSON.parse(responseBody);","        var rights = json.resultObj.containers[0].entitlement.assets[0].rights;","        var solutionOfferId = json.resultObj.containers[0].entitlement.assets[0].commercialPackages[0].id;","        var solutionOfferType = json.resultObj.containers[0].entitlement.assets[0].commercialPackages[0].type;","        pushGlobal(\"solutionOfferId\", solutionOfferId);","        setTests(\"User should get rights as BUY\", rights === expected.rights);","       if (getLastTests()) {","           ","            setTests(\"Solution offer Type should be CUTV_EVENT\", solutionOfferType === \"CUTV_EVENT\");","           ","       }","        ","    }","});"]}},{"listen":"prerequest","script":{"id":"9b4400f2-d3da-4ead-bb27-5bcb0e3ab307","type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","eval(postman.getGlobalVariable(\"module:script\"));","","preRequestShell(function(dati, n) {","    var scenario = dati.scenarios[n];","    /*pushGlobal(\"locale\", scenario.locale);","    pushGlobal(\"tenant\", scenario.tenant);","    pushGlobal(\"appversion\", scenario.appversion);","    pushGlobal(\"cluster\", scenario.cluster_R);","    pushGlobal(\"propertyName\", scenario.propertyName);","    pushGlobal(\"contentType\", scenario.contentType);","    pushGlobal(\"contentId\", scenario.channelId_A);*/","});"]}}],"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url_CONTENT_USERDATA}}","host":["{{url_CONTENT_USERDATA}}"]},"description":null},"response":[]},{"name":"EIT-3995 - POST USER/PURCHASES","event":[{"listen":"test","script":{"type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","eval(postman.getGlobalVariable(\"module:script\"));","","testShell(function(dati, i, expected) {","    setTests(\"USER/PURCHASES OK\", baseCheckResponse());","    ","});"]}},{"listen":"prerequest","script":{"type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","eval(postman.getGlobalVariable(\"module:script\"));","","preRequestShell(function(dati, n) {","","    //solutionOfferId should be a global variable","});"]}}],"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\"commercialPackageId\": \"{{solutionOfferId}}\",\n\"pin\":\"0000\",\n\"programId\":\"{{contentId}}\"\n}"},"url":{"raw":"{{url_USER_PURCHASES}}","host":["{{url_USER_PURCHASES}}"]},"description":null},"response":[]},{"name":"EIT-3995 - GET CONTENT/USERDATA/ENTITLEMENT","event":[{"listen":"prerequest","script":{"id":"4d7a5654-ff10-4471-ba91-1bb5ca145be2","type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","eval(postman.getGlobalVariable(\"module:script\"));","","","preRequestShell(function(dati, n) {","    //contentId should be a global variable","/*    var contentType = dati.scenarios[n].contentType;","    pushGlobal(\"contentType\", contentType);*/","    pushGlobal(\"optional_params\", \"\");","});"]}},{"listen":"test","script":{"id":"ba417924-78ac-4948-9c61-666fea313e62","type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","eval(postman.getGlobalVariable(\"module:script\"));","","testShell(function(dati, i, expected) {","    setTests(\"CONTENT/USERDATA\", baseCheckResponse());","    if (getLastTests()) {","        var json = JSON.parse(responseBody);","        var assetId= json.resultObj.containers[0].entitlement.assets[0].assetId;","        pushGlobal(\"assetId\", assetId);","        var rights = json.resultObj.containers[0].entitlement.assets[0].rights;","        setTests(\"User should get rights as WATCH\", rights === expected.rights);","    }","});"]}}],"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url_CONTENT_USERDATA}}","host":["{{url_CONTENT_USERDATA}}"]},"description":null},"response":[]},{"name":"EIT-3995 - GET CONTENT/VIDEOURL","event":[{"listen":"test","script":{"id":"2b5c4135-cfcc-4663-a4b2-3d540914a079","type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","eval(postman.getGlobalVariable(\"module:script\"));","","testShell(function(dati, i, expected) {","    setTests(\"CONTENT/VIDEOURL\", baseCheckResponse());","});"]}},{"listen":"prerequest","script":{"id":"48d5a6f0-41a2-4f7b-a4f9-660dca0e49b8","type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","eval(postman.getGlobalVariable(\"module:script\"));","","preRequestShell(function(dati, n) {","    var scenario = dati.scenarios[n];","   /* pushGlobal(\"locale\", scenario.locale);","    pushGlobal(\"tenant\", scenario.tenant);","    pushGlobal(\"appversion\", scenario.appversion);","    pushGlobal(\"cluster\", scenario.cluster);","    pushGlobal(\"propertyName\", scenario.propertyName);","    pushGlobal(\"contentId\", scenario.channel);*/","    //var user = scenario.userData;","    //pushGlobal(\"optional_params\", user.gps ? \"?geoZipCode=\"+user.zipCode : \"\");","});"]}}],"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url_CONTENT_VIDEOURL}}","host":["{{url_CONTENT_VIDEOURL}}"]},"description":null},"response":[]},{"name":"EIT-3995 - DELETE USER/SESSIONS","event":[{"listen":"test","script":{"type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","eval(postman.getGlobalVariable(\"module:script\"));","","testShell(function(dati, i, expected) {","    setTests(\"Logout\", baseCheckResponse());","});"]}}],"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url_USER_SESSIONS}}","host":["{{url_USER_SESSIONS}}"]},"description":null},"response":[]},{"name":"EIT-3995 - Catch Exception","event":[{"listen":"test","script":{"type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","checkUpdateStep();"]}},{"listen":"prerequest","script":{"type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","prepareUpdateStep();"]}}],"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{jira_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"{{zephyr_status_step}}\",\n  \"comment\": \"{{comment}}\"\n}"},"url":{"raw":"{{url_zephyr_update_step}}","host":["{{url_zephyr_update_step}}"]},"description":null},"response":[]},{"name":"EIT-3995 - Footer","event":[{"listen":"test","script":{"type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","eval(postman.getGlobalVariable(\"module:script\"));","setIteration();"]}},{"listen":"prerequest","script":{"type":"text/javascript","exec":["eval(postman.getGlobalVariable(\"module:library\"));","prepareFooter();"]}}],"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{jira_token}}"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"{{zephyr_status_tc}}\",\n  \"comment\": \"{{comment_tc}}\"\n}"},"url":{"raw":"{{url_zephyr_update_execution_status}}","host":["{{url_zephyr_update_execution_status}}"]},"description":"Footer of TC"},"response":[]}]}]}