{"collection":{"info":{"_postman_id":"bb56b847-a4a4-4f43-9d46-c482d58befd6","name":"PQM Service Update API -PlantOp","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json","createdAt":"2023-11-22T15:00:56.000Z","updatedAt":"2023-11-24T08:41:46.000Z","lastUpdatedBy":"29681440","uid":"29681440-bb56b847-a4a4-4f43-9d46-c482d58befd6"},"item":[{"name":"1.Verify that data is not updated with content type other than application/json.","item":[{"name":"TEST CREATE WITH WORKFLOW UNIFIED-QA Copy","event":[{"listen":"test","script":{"id":"8f8f2644-27e8-4921-9e9a-ac96d1197d9d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"update workflow step 1 data\", function () {","    var jsonData = pm.response.json();","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"SUBMIT_SAMPLE\";","    }","    pm.environment.set('create_response_1', JSON.stringify(jsonData.tests));","    console.info(jsonData.tests)","});"],"type":"text/javascript"}}],"id":"9804390e-23d6-42cd-9de9-bb6cc2045db1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\":\"{{access_token}}\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"FECAL_SLUDGE_MANAGEMENT\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n             \n                   {\n                    \"criteriaCode\": \"ARSENIC_GTR_70\",\n                    \"resultValue\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB_SCHEDULED\",\n            \"scheduledDate\": 1700888886872,\n            \"isActive\": true,\n            \"documents\": [\n                // {\n                //     \"id\": \"string\",\n                //     \"documentType\": \"string\",\n                //     \"fileStore\": \"string\",\n                //     \"documentUid\": \"string\",\n                //     \"additionalDetails\": {}\n                // }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_createWithWorkflow","host":["{{url}}"],"path":["pqm-service","v1","_createWithWorkflow"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-25T16:24:20.000Z","uid":"29681440-9804390e-23d6-42cd-9de9-bb6cc2045db1"},{"name":"submit_sample_to_lab","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","})"],"type":"text/javascript"}}],"id":"21deaa88-75a2-4d66-9acf-17d0765c63d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/jsonp"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_1}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-21deaa88-75a2-4d66-9acf-17d0765c63d5"},{"name":"upload_test_results","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"e602fc68-8ca6-4f89-b8a3-ba054a60cf8a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/jsonp"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_2}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[{"id":"f2eb2e7c-66b3-4563-a8e9-199799112602","name":"TEST UPDATE 2nd STEP WF","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"c2ff2191-e5fd-426f-b6f1-4376f5c6c246\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\":[\n        {\n            \"id\": \"1013-PQM-2023-10-19-000320\",\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"WATER_FILTERING\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"deviceCode\": null,\n            \"testCriteria\": [\n                {\n                    \"id\": \"2ded9fa9-857d-4cf8-9fb8-e64c0d54803d\",\n                    \"testId\": \"1013-PQM-2023-10-19-000320\",\n                    \"criteriaCode\": \"ARSENIC_NEQ_75\",\n                    \"resultValue\": 63,\n                    \"allowedDeviation\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true,\n                    \"auditDetails\": {\n                        \"createdBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                        \"lastModifiedBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                        \"createdTime\": 1697709700892,\n                        \"lastModifiedTime\": 1697709700892\n                    }\n                }\n            ],\n            \"status\": \"PENDING\",\n            \"wfStatus\": \"SCHEDULED\",\n            \"testType\": \"LAB\",\n            \"scheduledDate\": 1698237626000,\n            \"isActive\": true,\n            \"documents\": [\n                {\n                    \"id\": \"474e66e0-9c9c-4b2b-acf3-22f71ab16cb3\",\n                    \"testId\": \"1013-PQM-2023-10-19-000320\",\n                    \"documentType\": \"string\",\n                    \"documentUid\": \"string\",\n                    \"documentUri\": null,\n                    \"additionalDetails\": {},\n                    \"tenantId\": null,\n                    \"fileStoreId\": null,\n                    \"isActive\": false,\n                    \"auditDetails\": null\n                }\n            ],\n            \"additionalDetails\": {},\n            \"auditDetails\": {\n                \"createdBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                \"lastModifiedBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                \"createdTime\": 1697709700892,\n                \"lastModifiedTime\": 1697709700892\n            },\n            \"workflow\": {\n                \"action\": \"SUBMIT_SAMPLE\",\n                \"assignes\": null,\n                \"comments\": null,\n                \"verificationDocuments\": null,\n                \"rating\": null\n            }\n        }\n    ]\n}"},"url":{"raw":"https://unified-qa.digit.org/pqm-service/v1/_update","protocol":"https","host":["unified-qa","digit","org"],"path":["pqm-service","v1","_update"]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 25 Oct 2023 10:09:18 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-correlation-id","value":"112e85e1-8e74-4355-8db5-6d40ee57b8d9"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"ResponseInfo\": null,\n    \"Errors\": [\n        {\n            \"code\": \"TEST_NOT_PRESENT_IN_DB\",\n            \"message\": \"test not present in database which we want to update \",\n            \"description\": null,\n            \"params\": null\n        }\n    ]\n}","createdAt":"2023-11-22T15:00:59.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-f2eb2e7c-66b3-4563-a8e9-199799112602"}],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-e602fc68-8ca6-4f89-b8a3-ba054a60cf8a"}],"id":"3c1e8bfc-dd7e-4787-800d-6d16136be302","createdAt":"2023-11-22T15:00:56.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-3c1e8bfc-dd7e-4787-800d-6d16136be302"},{"name":"2.Verify that data cannot be updated with unauthorized access","item":[{"name":"TEST CREATE WITH WORKFLOW UNIFIED-QA Copy","event":[{"listen":"test","script":{"id":"8f8f2644-27e8-4921-9e9a-ac96d1197d9d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"update workflow step 1 data\", function () {","    var jsonData = pm.response.json();","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"SUBMIT_SAMPLE\";","    }","    pm.environment.set('create_response_1', JSON.stringify(jsonData.tests));","    console.info(jsonData.tests)","});"],"type":"text/javascript"}}],"id":"bfd4b386-46e9-41f0-ab81-5a5e197e1f9c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\":\"{{access_token}}\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"FECAL_SLUDGE_MANAGEMENT\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n             \n                   {\n                    \"criteriaCode\": \"ARSENIC_GTR_70\",\n                    \"resultValue\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB_SCHEDULED\",\n            \"scheduledDate\": 1700888886872,\n            \"isActive\": true,\n            \"documents\": [\n                // {\n                //     \"id\": \"string\",\n                //     \"documentType\": \"string\",\n                //     \"fileStore\": \"string\",\n                //     \"documentUid\": \"string\",\n                //     \"additionalDetails\": {}\n                // }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_createWithWorkflow","host":["{{url}}"],"path":["pqm-service","v1","_createWithWorkflow"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-25T16:24:38.000Z","uid":"29681440-bfd4b386-46e9-41f0-ab81-5a5e197e1f9c"},{"name":"submit_sample_to_lab","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 500\", function () {","    pm.response.to.have.status(500);","})"],"type":"text/javascript"}}],"id":"e4a77f83-8a80-43bd-bfe2-9977130364fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_1}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-e4a77f83-8a80-43bd-bfe2-9977130364fc"},{"name":"upload_test_results","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 500\", function () {","    pm.response.to.have.status(500);","});"],"type":"text/javascript"}}],"id":"473924cd-234a-492c-bbfd-b9e1fc45f363","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_2}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[{"id":"fc563b38-64d5-4b0d-bd16-2e7dcf3e469a","name":"TEST UPDATE 2nd STEP WF","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"c2ff2191-e5fd-426f-b6f1-4376f5c6c246\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\":[\n        {\n            \"id\": \"1013-PQM-2023-10-19-000320\",\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"WATER_FILTERING\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"deviceCode\": null,\n            \"testCriteria\": [\n                {\n                    \"id\": \"2ded9fa9-857d-4cf8-9fb8-e64c0d54803d\",\n                    \"testId\": \"1013-PQM-2023-10-19-000320\",\n                    \"criteriaCode\": \"ARSENIC_NEQ_75\",\n                    \"resultValue\": 63,\n                    \"allowedDeviation\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true,\n                    \"auditDetails\": {\n                        \"createdBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                        \"lastModifiedBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                        \"createdTime\": 1697709700892,\n                        \"lastModifiedTime\": 1697709700892\n                    }\n                }\n            ],\n            \"status\": \"PENDING\",\n            \"wfStatus\": \"SCHEDULED\",\n            \"testType\": \"LAB\",\n            \"scheduledDate\": 1698237626000,\n            \"isActive\": true,\n            \"documents\": [\n                {\n                    \"id\": \"474e66e0-9c9c-4b2b-acf3-22f71ab16cb3\",\n                    \"testId\": \"1013-PQM-2023-10-19-000320\",\n                    \"documentType\": \"string\",\n                    \"documentUid\": \"string\",\n                    \"documentUri\": null,\n                    \"additionalDetails\": {},\n                    \"tenantId\": null,\n                    \"fileStoreId\": null,\n                    \"isActive\": false,\n                    \"auditDetails\": null\n                }\n            ],\n            \"additionalDetails\": {},\n            \"auditDetails\": {\n                \"createdBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                \"lastModifiedBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                \"createdTime\": 1697709700892,\n                \"lastModifiedTime\": 1697709700892\n            },\n            \"workflow\": {\n                \"action\": \"SUBMIT_SAMPLE\",\n                \"assignes\": null,\n                \"comments\": null,\n                \"verificationDocuments\": null,\n                \"rating\": null\n            }\n        }\n    ]\n}"},"url":{"raw":"https://unified-qa.digit.org/pqm-service/v1/_update","protocol":"https","host":["unified-qa","digit","org"],"path":["pqm-service","v1","_update"]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 25 Oct 2023 10:09:18 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-correlation-id","value":"112e85e1-8e74-4355-8db5-6d40ee57b8d9"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"ResponseInfo\": null,\n    \"Errors\": [\n        {\n            \"code\": \"TEST_NOT_PRESENT_IN_DB\",\n            \"message\": \"test not present in database which we want to update \",\n            \"description\": null,\n            \"params\": null\n        }\n    ]\n}","createdAt":"2023-11-22T15:00:59.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-fc563b38-64d5-4b0d-bd16-2e7dcf3e469a"}],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-473924cd-234a-492c-bbfd-b9e1fc45f363"}],"id":"9afd705c-7858-4d50-bd57-adbfcd88b17b","createdAt":"2023-11-22T15:00:56.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-9afd705c-7858-4d50-bd57-adbfcd88b17b"},{"name":"3.Verify that data is updated with valid tenantId.","item":[{"name":"TEST CREATE WITH WORKFLOW UNIFIED-QA Copy","event":[{"listen":"test","script":{"id":"8f8f2644-27e8-4921-9e9a-ac96d1197d9d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"update workflow step 1 data\", function () {","    var jsonData = pm.response.json();","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"SUBMIT_SAMPLE\";","    }","    pm.environment.set('create_response_1', JSON.stringify(jsonData.tests));","    console.info(pm.environment.get(\"create_response_1\"));","});"],"type":"text/javascript"}}],"id":"156f7256-9a67-494e-bf29-5eefa8ab1cf6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\":\"{{access_token}}\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"FECAL_SLUDGE_MANAGEMENT\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n             \n                   {\n                    \"criteriaCode\": \"ARSENIC_GTR_70\",\n                    \"resultValue\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB_SCHEDULED\",\n            \"scheduledDate\": 1700888886872,\n            \"isActive\": true,\n            \"documents\": [\n                // {\n                //     \"id\": \"string\",\n                //     \"documentType\": \"string\",\n                //     \"fileStore\": \"string\",\n                //     \"documentUid\": \"string\",\n                //     \"additionalDetails\": {}\n                // }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_createWithWorkflow","host":["{{url}}"],"path":["pqm-service","v1","_createWithWorkflow"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-25T16:24:53.000Z","uid":"29681440-156f7256-9a67-494e-bf29-5eefa8ab1cf6"},{"name":"submit_sample_to_lab","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 202\", function () {","    pm.response.to.have.status(202);","});","pm.test(\"create submit test results request body\", function () {","    var jsonData = pm.response.json();","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"UPDATE_RESULT\";","        for (let j = 0; j < jsonData.tests[i].testCriteria.length; j++){","            jsonData.tests[i].testCriteria[j].resultValue = 69;","        }","    }","    pm.environment.set('create_response_2', JSON.stringify(jsonData.tests));","    console.info(jsonData.tests)","});"],"type":"text/javascript"}}],"id":"15b201c4-f188-4e19-b748-35c4b5b1aa15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\": {{create_response_1}},\n    \"labAssignedTo\": \"IN_HOUSE\"\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-15b201c4-f188-4e19-b748-35c4b5b1aa15"},{"name":"upload_test_results","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 202\", function () {","    pm.response.to.have.status(202);","});"],"type":"text/javascript"}}],"id":"8c4de9b6-3284-48e0-97f5-d0271a4b6f1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_2}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[{"id":"a0ea20a4-2d53-465e-b9a7-93a461c0f794","name":"TEST UPDATE 2nd STEP WF","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"c2ff2191-e5fd-426f-b6f1-4376f5c6c246\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\":[\n        {\n            \"id\": \"1013-PQM-2023-10-19-000320\",\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"WATER_FILTERING\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"deviceCode\": null,\n            \"testCriteria\": [\n                {\n                    \"id\": \"2ded9fa9-857d-4cf8-9fb8-e64c0d54803d\",\n                    \"testId\": \"1013-PQM-2023-10-19-000320\",\n                    \"criteriaCode\": \"ARSENIC_NEQ_75\",\n                    \"resultValue\": 63,\n                    \"allowedDeviation\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true,\n                    \"auditDetails\": {\n                        \"createdBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                        \"lastModifiedBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                        \"createdTime\": 1697709700892,\n                        \"lastModifiedTime\": 1697709700892\n                    }\n                }\n            ],\n            \"status\": \"PENDING\",\n            \"wfStatus\": \"SCHEDULED\",\n            \"testType\": \"LAB\",\n            \"scheduledDate\": 1698237626000,\n            \"isActive\": true,\n            \"documents\": [\n                {\n                    \"id\": \"474e66e0-9c9c-4b2b-acf3-22f71ab16cb3\",\n                    \"testId\": \"1013-PQM-2023-10-19-000320\",\n                    \"documentType\": \"string\",\n                    \"documentUid\": \"string\",\n                    \"documentUri\": null,\n                    \"additionalDetails\": {},\n                    \"tenantId\": null,\n                    \"fileStoreId\": null,\n                    \"isActive\": false,\n                    \"auditDetails\": null\n                }\n            ],\n            \"additionalDetails\": {},\n            \"auditDetails\": {\n                \"createdBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                \"lastModifiedBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                \"createdTime\": 1697709700892,\n                \"lastModifiedTime\": 1697709700892\n            },\n            \"workflow\": {\n                \"action\": \"SUBMIT_SAMPLE\",\n                \"assignes\": null,\n                \"comments\": null,\n                \"verificationDocuments\": null,\n                \"rating\": null\n            }\n        }\n    ]\n}"},"url":{"raw":"https://unified-qa.digit.org/pqm-service/v1/_update","protocol":"https","host":["unified-qa","digit","org"],"path":["pqm-service","v1","_update"]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 25 Oct 2023 10:09:18 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-correlation-id","value":"112e85e1-8e74-4355-8db5-6d40ee57b8d9"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"ResponseInfo\": null,\n    \"Errors\": [\n        {\n            \"code\": \"TEST_NOT_PRESENT_IN_DB\",\n            \"message\": \"test not present in database which we want to update \",\n            \"description\": null,\n            \"params\": null\n        }\n    ]\n}","createdAt":"2023-11-22T15:00:59.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-a0ea20a4-2d53-465e-b9a7-93a461c0f794"}],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-8c4de9b6-3284-48e0-97f5-d0271a4b6f1f"}],"id":"be74fb3f-8646-49c6-9de1-09c36dcb1c5b","createdAt":"2023-11-22T15:00:56.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-be74fb3f-8646-49c6-9de1-09c36dcb1c5b"},{"name":"4.Verify that data cannot be updated with invalid tenantId.","item":[{"name":"create_test_with_workflow","event":[{"listen":"test","script":{"id":"8f8f2644-27e8-4921-9e9a-ac96d1197d9d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"update workflow step 1 data\", function () {","    var jsonData = pm.response.json();","    jsonData.tests[0].tenantId = \"pg\";","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"SUBMIT_SAMPLE\";","   ","    }","    pm.environment.set('create_response_1', JSON.stringify(jsonData.tests));","    console.info(jsonData.tests)","});"],"type":"text/javascript"}}],"id":"ae3f3914-90d7-48a3-b641-ce1e032c4770","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\":\"{{access_token}}\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"FECAL_SLUDGE_MANAGEMENT\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n             \n                   {\n                    \"criteriaCode\": \"ARSENIC_GTR_70\",\n                    \"resultValue\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB_SCHEDULED\",\n            \"scheduledDate\": 1700888886872,\n            \"isActive\": true,\n            \"documents\": [\n                // {\n                //     \"id\": \"string\",\n                //     \"documentType\": \"string\",\n                //     \"fileStore\": \"string\",\n                //     \"documentUid\": \"string\",\n                //     \"additionalDetails\": {}\n                // }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_createWithWorkflow","host":["{{url}}"],"path":["pqm-service","v1","_createWithWorkflow"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-25T16:25:07.000Z","uid":"29681440-ae3f3914-90d7-48a3-b641-ce1e032c4770"},{"name":"submit_sample_to_lab","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 403\", function () {","    pm.response.to.have.status(403);","});",""],"type":"text/javascript"}}],"id":"356578b4-867f-4565-a960-cdfdc583451b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\": {{create_response_1}},\n    \"labAssignedTo\": \"IN_HOUSE\"\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-356578b4-867f-4565-a960-cdfdc583451b"}],"id":"b51ba53b-014f-4f53-8b57-e163fc66c396","createdAt":"2023-11-22T15:00:56.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-b51ba53b-014f-4f53-8b57-e163fc66c396"},{"name":"5.Verify that data cannot be updated with null tenantId.","item":[{"name":"create_test_with_workflow","event":[{"listen":"test","script":{"id":"8f8f2644-27e8-4921-9e9a-ac96d1197d9d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"update workflow step 1 data\", function () {","    var jsonData = pm.response.json();","    jsonData.tests[0].tenantId = \"\";","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"SUBMIT_SAMPLE\";","   ","    }","    pm.environment.set('create_response_1', JSON.stringify(jsonData.tests));","    console.info(jsonData.tests)","});"],"type":"text/javascript"}}],"id":"19fde6f4-36a6-4936-bad3-ecc4503532c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\":\"{{access_token}}\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"FECAL_SLUDGE_MANAGEMENT\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n             \n                   {\n                    \"criteriaCode\": \"ARSENIC_GTR_70\",\n                    \"resultValue\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB_SCHEDULED\",\n            \"scheduledDate\": 1700888886872,\n            \"isActive\": true,\n            \"documents\": [\n                // {\n                //     \"id\": \"string\",\n                //     \"documentType\": \"string\",\n                //     \"fileStore\": \"string\",\n                //     \"documentUid\": \"string\",\n                //     \"additionalDetails\": {}\n                // }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_createWithWorkflow","host":["{{url}}"],"path":["pqm-service","v1","_createWithWorkflow"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-25T16:25:19.000Z","uid":"29681440-19fde6f4-36a6-4936-bad3-ecc4503532c1"},{"name":"submit_sample_to_lab","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 403\", function () {","    pm.response.to.have.status(403);","});",""],"type":"text/javascript"}}],"id":"391972e6-f313-4aee-a2cd-cfde08943d70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_1}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-391972e6-f313-4aee-a2cd-cfde08943d70"},{"name":"upload_test_results","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"793ecd18-f5e4-4f4b-bff4-88775ce69d9d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_2}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-793ecd18-f5e4-4f4b-bff4-88775ce69d9d"}],"id":"7330c0c5-d6b6-4c09-948b-5a40a77c2a47","createdAt":"2023-11-22T15:00:56.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-7330c0c5-d6b6-4c09-948b-5a40a77c2a47"},{"name":"6.Verify that data cannot be updated with null plantcode only.","item":[{"name":"create_test_with_workflow","event":[{"listen":"test","script":{"id":"8f8f2644-27e8-4921-9e9a-ac96d1197d9d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"update workflow step 1 data\", function () {","    var jsonData = pm.response.json();","    jsonData.tests[0].plantCode = \"\";","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"SUBMIT_SAMPLE\";","   ","    }","    pm.environment.set('create_response_1', JSON.stringify(jsonData.tests));","    console.info(jsonData.tests)","});"],"type":"text/javascript"}}],"id":"254ce223-5956-4e25-b0b9-6b88437af485","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\":\"{{access_token}}\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"FECAL_SLUDGE_MANAGEMENT\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n             \n                   {\n                    \"criteriaCode\": \"ARSENIC_GTR_70\",\n                    \"resultValue\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB_SCHEDULED\",\n            \"scheduledDate\": 1700888886872,\n            \"isActive\": true,\n            \"documents\": [\n                // {\n                //     \"id\": \"string\",\n                //     \"documentType\": \"string\",\n                //     \"fileStore\": \"string\",\n                //     \"documentUid\": \"string\",\n                //     \"additionalDetails\": {}\n                // }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_createWithWorkflow","host":["{{url}}"],"path":["pqm-service","v1","_createWithWorkflow"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-25T16:25:36.000Z","uid":"29681440-254ce223-5956-4e25-b0b9-6b88437af485"},{"name":"submit_sample_to_lab","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});",""],"type":"text/javascript"}}],"id":"c2b0b808-b403-4504-96d0-0c7154be6faa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_1}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-c2b0b808-b403-4504-96d0-0c7154be6faa"},{"name":"upload_test_results","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"e368a878-77f0-4d55-a486-cd76d50f6d4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_2}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-e368a878-77f0-4d55-a486-cd76d50f6d4c"}],"id":"c0670ed4-4e0a-49c4-b818-926a0a8ba720","createdAt":"2023-11-22T15:00:56.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-c0670ed4-4e0a-49c4-b818-926a0a8ba720"},{"name":"7.Verify that data cannot be updated with invalid plantcode.","item":[{"name":"create_test_with_workflow","event":[{"listen":"test","script":{"id":"8f8f2644-27e8-4921-9e9a-ac96d1197d9d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"update workflow step 1 data\", function () {","    var jsonData = pm.response.json();","    jsonData.tests[0].plantCode = \"PURI\";","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"SUBMIT_SAMPLE\";","   ","    }","    pm.environment.set('create_response_1', JSON.stringify(jsonData.tests));","    console.info(jsonData.tests)","});"],"type":"text/javascript"}}],"id":"d4bd4340-b5f5-4d8a-a066-2d4b66049e92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\":\"{{access_token}}\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"FECAL_SLUDGE_MANAGEMENT\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n             \n                   {\n                    \"criteriaCode\": \"ARSENIC_GTR_70\",\n                    \"resultValue\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB_SCHEDULED\",\n            \"scheduledDate\": 1700888886872,\n            \"isActive\": true,\n            \"documents\": [\n                // {\n                //     \"id\": \"string\",\n                //     \"documentType\": \"string\",\n                //     \"fileStore\": \"string\",\n                //     \"documentUid\": \"string\",\n                //     \"additionalDetails\": {}\n                // }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_createWithWorkflow","host":["{{url}}"],"path":["pqm-service","v1","_createWithWorkflow"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-25T16:25:54.000Z","uid":"29681440-d4bd4340-b5f5-4d8a-a066-2d4b66049e92"},{"name":"submit_sample_to_lab","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});",""],"type":"text/javascript"}}],"id":"6f2969be-2838-4f12-bdd3-a360978094b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_1}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-6f2969be-2838-4f12-bdd3-a360978094b9"},{"name":"upload_test_results","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"b29b3ee8-12e0-4bbf-8452-d4999378bab3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_2}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-b29b3ee8-12e0-4bbf-8452-d4999378bab3"}],"id":"7375bc6b-6cd2-4f1e-8620-4ea58af17d1b","createdAt":"2023-11-22T15:00:56.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-7375bc6b-6cd2-4f1e-8620-4ea58af17d1b"},{"name":"8.Verify that data cannot be updated with null processcode.","item":[{"name":"create_test_with_workflow","event":[{"listen":"test","script":{"id":"8f8f2644-27e8-4921-9e9a-ac96d1197d9d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"update workflow step 1 data\", function () {","    var jsonData = pm.response.json();","    jsonData.tests[0].processCode = \"\";","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"SUBMIT_SAMPLE\";","   ","    }","    pm.environment.set('create_response_1', JSON.stringify(jsonData.tests));","    console.info(jsonData.tests)","});"],"type":"text/javascript"}}],"id":"34193417-fba3-41d6-835d-f8a42f1b5517","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\":\"{{access_token}}\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"FECAL_SLUDGE_MANAGEMENT\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n             \n                   {\n                    \"criteriaCode\": \"ARSENIC_GTR_70\",\n                    \"resultValue\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB_SCHEDULED\",\n            \"scheduledDate\": 1700888886872,\n            \"isActive\": true,\n            \"documents\": [\n                // {\n                //     \"id\": \"string\",\n                //     \"documentType\": \"string\",\n                //     \"fileStore\": \"string\",\n                //     \"documentUid\": \"string\",\n                //     \"additionalDetails\": {}\n                // }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_createWithWorkflow","host":["{{url}}"],"path":["pqm-service","v1","_createWithWorkflow"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-25T16:26:07.000Z","uid":"29681440-34193417-fba3-41d6-835d-f8a42f1b5517"},{"name":"submit_sample_to_lab","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});",""],"type":"text/javascript"}}],"id":"e5322333-5a58-4058-8755-c1b575403ab7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_1}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-e5322333-5a58-4058-8755-c1b575403ab7"},{"name":"upload_test_results","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"7395ab91-e7eb-47f3-9dd0-431e742e0d9e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_2}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-7395ab91-e7eb-47f3-9dd0-431e742e0d9e"}],"id":"3e124391-0321-4cf8-b851-7ac231a54923","createdAt":"2023-11-22T15:00:56.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-3e124391-0321-4cf8-b851-7ac231a54923"},{"name":"9.Verify that data cannot be updated with invalid processcode.","item":[{"name":"create_test_with_workflow","event":[{"listen":"test","script":{"id":"8f8f2644-27e8-4921-9e9a-ac96d1197d9d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"update workflow step 1 data\", function () {","    var jsonData = pm.response.json();","    jsonData.tests[0].processCode = \"COAG\";","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"SUBMIT_SAMPLE\";","   ","    }","    pm.environment.set('create_response_1', JSON.stringify(jsonData.tests));","    console.info(jsonData.tests)","});"],"type":"text/javascript"}}],"id":"45ea1876-61d5-4b68-8770-3e2fc721f590","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\":\"{{access_token}}\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"FECAL_SLUDGE_MANAGEMENT\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n             \n                   {\n                    \"criteriaCode\": \"ARSENIC_GTR_70\",\n                    \"resultValue\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB_SCHEDULED\",\n            \"scheduledDate\": 1700888886872,\n            \"isActive\": true,\n            \"documents\": [\n                // {\n                //     \"id\": \"string\",\n                //     \"documentType\": \"string\",\n                //     \"fileStore\": \"string\",\n                //     \"documentUid\": \"string\",\n                //     \"additionalDetails\": {}\n                // }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_createWithWorkflow","host":["{{url}}"],"path":["pqm-service","v1","_createWithWorkflow"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-25T16:26:24.000Z","uid":"29681440-45ea1876-61d5-4b68-8770-3e2fc721f590"},{"name":"submit_sample_to_lab","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});",""],"type":"text/javascript"}}],"id":"6c6271ad-83ea-426c-aa7c-868e6284a16a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_1}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-6c6271ad-83ea-426c-aa7c-868e6284a16a"},{"name":"upload_test_results","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"f428473a-0c98-43f1-bf80-c2e64de5b29a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_2}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-f428473a-0c98-43f1-bf80-c2e64de5b29a"}],"id":"23a148b2-ec0c-40eb-9b26-7e6b2c1e0812","createdAt":"2023-11-22T15:00:56.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-23a148b2-ec0c-40eb-9b26-7e6b2c1e0812"},{"name":"10.Verify that data cannot be updated with null stageCode.","item":[{"name":"create_test_with_workflow","event":[{"listen":"test","script":{"id":"8f8f2644-27e8-4921-9e9a-ac96d1197d9d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"update workflow step 1 data\", function () {","    var jsonData = pm.response.json();","    jsonData.tests[0].stageCode = \"COAG\";","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"SUBMIT_SAMPLE\";","   ","    }","    pm.environment.set('create_response_1', JSON.stringify(jsonData.tests));","    console.info(jsonData.tests)","});"],"type":"text/javascript"}}],"id":"1b89515c-1c5e-4ec1-9441-c687076c8308","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\":\"{{access_token}}\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"FECAL_SLUDGE_MANAGEMENT\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n             \n                   {\n                    \"criteriaCode\": \"ARSENIC_GTR_70\",\n                    \"resultValue\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB_SCHEDULED\",\n            \"scheduledDate\": 1700888886872,\n            \"isActive\": true,\n            \"documents\": [\n                // {\n                //     \"id\": \"string\",\n                //     \"documentType\": \"string\",\n                //     \"fileStore\": \"string\",\n                //     \"documentUid\": \"string\",\n                //     \"additionalDetails\": {}\n                // }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_createWithWorkflow","host":["{{url}}"],"path":["pqm-service","v1","_createWithWorkflow"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-25T16:26:38.000Z","uid":"29681440-1b89515c-1c5e-4ec1-9441-c687076c8308"},{"name":"submit_sample_to_lab","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});",""],"type":"text/javascript"}}],"id":"d2bd646b-beda-4be3-a396-9ebbed51f2fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_1}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-d2bd646b-beda-4be3-a396-9ebbed51f2fd"},{"name":"upload_test_results","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"04fe6bc0-99d5-47a8-b52d-e8f29dc296e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_2}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-04fe6bc0-99d5-47a8-b52d-e8f29dc296e1"}],"id":"377f19bd-1cad-454d-9a8b-761e8232f758","createdAt":"2023-11-22T15:00:56.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-377f19bd-1cad-454d-9a8b-761e8232f758"},{"name":"11.Verify that data cannot be updated with invalid stageCode.","item":[{"name":"create_test_with_workflow","event":[{"listen":"test","script":{"id":"8f8f2644-27e8-4921-9e9a-ac96d1197d9d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"update workflow step 1 data\", function () {","    var jsonData = pm.response.json();","    jsonData.tests[0].stageCode = \"COAG\";","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"SUBMIT_SAMPLE\";","   ","    }","    pm.environment.set('create_response_1', JSON.stringify(jsonData.tests));","    console.info(jsonData.tests)","});"],"type":"text/javascript"}}],"id":"da351ffa-9ed0-4c75-a618-492639e3ba9d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\":\"{{access_token}}\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"FECAL_SLUDGE_MANAGEMENT\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n             \n                   {\n                    \"criteriaCode\": \"ARSENIC_GTR_70\",\n                    \"resultValue\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB_SCHEDULED\",\n            \"scheduledDate\": 1700888886872,\n            \"isActive\": true,\n            \"documents\": [\n                // {\n                //     \"id\": \"string\",\n                //     \"documentType\": \"string\",\n                //     \"fileStore\": \"string\",\n                //     \"documentUid\": \"string\",\n                //     \"additionalDetails\": {}\n                // }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_createWithWorkflow","host":["{{url}}"],"path":["pqm-service","v1","_createWithWorkflow"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-25T16:26:50.000Z","uid":"29681440-da351ffa-9ed0-4c75-a618-492639e3ba9d"},{"name":"submit_sample_to_lab","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});",""],"type":"text/javascript"}}],"id":"39574a80-6679-44bf-baab-c5afaf839026","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_1}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-39574a80-6679-44bf-baab-c5afaf839026"},{"name":"upload_test_results","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"2a504e73-73e4-441b-8e3b-17c54ac2aa44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_2}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-2a504e73-73e4-441b-8e3b-17c54ac2aa44"}],"id":"5ff5f225-5a0e-4bae-b786-b450b32340ae","createdAt":"2023-11-22T15:00:56.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-5ff5f225-5a0e-4bae-b786-b450b32340ae"},{"name":"12.Verify that data cannot be updated with null materialCode.","item":[{"name":"create_test_with_workflow","event":[{"listen":"test","script":{"id":"8f8f2644-27e8-4921-9e9a-ac96d1197d9d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"update workflow step 1 data\", function () {","    var jsonData = pm.response.json();","    jsonData.tests[0].materialCode = \"\";","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"SUBMIT_SAMPLE\";","   ","    }","    pm.environment.set('create_response_1', JSON.stringify(jsonData.tests));","    console.info(jsonData.tests)","});"],"type":"text/javascript"}}],"id":"a6bb0f31-0423-4175-a9f2-c2cb3f9dee0e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\":\"{{access_token}}\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"FECAL_SLUDGE_MANAGEMENT\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n             \n                   {\n                    \"criteriaCode\": \"ARSENIC_GTR_70\",\n                    \"resultValue\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB_SCHEDULED\",\n            \"scheduledDate\": 1700888886872,\n            \"isActive\": true,\n            \"documents\": [\n                // {\n                //     \"id\": \"string\",\n                //     \"documentType\": \"string\",\n                //     \"fileStore\": \"string\",\n                //     \"documentUid\": \"string\",\n                //     \"additionalDetails\": {}\n                // }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_createWithWorkflow","host":["{{url}}"],"path":["pqm-service","v1","_createWithWorkflow"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-25T16:27:03.000Z","uid":"29681440-a6bb0f31-0423-4175-a9f2-c2cb3f9dee0e"},{"name":"submit_sample_to_lab","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});",""],"type":"text/javascript"}}],"id":"75672d77-6821-4a80-ae5e-3b6c3c4090b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_1}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T16:22:20.000Z","uid":"29681440-75672d77-6821-4a80-ae5e-3b6c3c4090b4"},{"name":"upload_test_results","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"de7bb2fb-a41c-472f-acf0-cf48bcaf473a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_2}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-de7bb2fb-a41c-472f-acf0-cf48bcaf473a"}],"id":"0c6b6959-8b82-4df6-8300-a33d9330578e","createdAt":"2023-11-22T15:00:56.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-0c6b6959-8b82-4df6-8300-a33d9330578e"},{"name":"13.Verify that data cannot be updated with invalid materialCode.","item":[{"name":"create_test_with_workflow","event":[{"listen":"test","script":{"id":"8f8f2644-27e8-4921-9e9a-ac96d1197d9d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"update workflow step 1 data\", function () {","    var jsonData = pm.response.json();","    jsonData.tests[0].materialCode = \"1\";","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"SUBMIT_SAMPLE\";","   ","    }","    pm.environment.set('create_response_1', JSON.stringify(jsonData.tests));","    console.info(jsonData.tests)","});"],"type":"text/javascript"}}],"id":"92735094-59bf-4347-a8f0-1df1c5df4385","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\":\"{{access_token}}\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"FECAL_SLUDGE_MANAGEMENT\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n             \n                   {\n                    \"criteriaCode\": \"ARSENIC_GTR_70\",\n                    \"resultValue\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB_SCHEDULED\",\n            \"scheduledDate\": 1700888886872,\n            \"isActive\": true,\n            \"documents\": [\n                // {\n                //     \"id\": \"string\",\n                //     \"documentType\": \"string\",\n                //     \"fileStore\": \"string\",\n                //     \"documentUid\": \"string\",\n                //     \"additionalDetails\": {}\n                // }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_createWithWorkflow","host":["{{url}}"],"path":["pqm-service","v1","_createWithWorkflow"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-25T16:27:46.000Z","uid":"29681440-92735094-59bf-4347-a8f0-1df1c5df4385"},{"name":"submit_sample_to_lab","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});",""],"type":"text/javascript"}}],"id":"ccf51fe1-5a0a-4392-834e-c9b55fe92e5d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_1}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-ccf51fe1-5a0a-4392-834e-c9b55fe92e5d"},{"name":"upload_test_results","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"c47a7773-6af6-4242-9aa5-80e7fb35abb0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_2}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-c47a7773-6af6-4242-9aa5-80e7fb35abb0"}],"id":"e9e3558b-6062-4a72-8c82-4b8bada0bad2","createdAt":"2023-11-22T15:00:56.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-e9e3558b-6062-4a72-8c82-4b8bada0bad2"},{"name":"14.Verify that data cannot be updated with null testCriteria.","item":[{"name":"create_test_with_workflow","event":[{"listen":"test","script":{"id":"8f8f2644-27e8-4921-9e9a-ac96d1197d9d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"update workflow step 1 data\", function () {","    var jsonData = pm.response.json();","    jsonData.tests[0].testCriteria = [];","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"SUBMIT_SAMPLE\";","   ","    }","    pm.environment.set('create_response_1', JSON.stringify(jsonData.tests));","    console.info(jsonData.tests)","});"],"type":"text/javascript"}}],"id":"6f95c98f-bc44-46a3-bbb9-f135d774212a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\":\"{{access_token}}\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"FECAL_SLUDGE_MANAGEMENT\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n             \n                   {\n                    \"criteriaCode\": \"ARSENIC_GTR_70\",\n                    \"resultValue\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB_SCHEDULED\",\n            \"scheduledDate\": 1700888886872,\n            \"isActive\": true,\n            \"documents\": [\n                // {\n                //     \"id\": \"string\",\n                //     \"documentType\": \"string\",\n                //     \"fileStore\": \"string\",\n                //     \"documentUid\": \"string\",\n                //     \"additionalDetails\": {}\n                // }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_createWithWorkflow","host":["{{url}}"],"path":["pqm-service","v1","_createWithWorkflow"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-25T16:50:20.000Z","uid":"29681440-6f95c98f-bc44-46a3-bbb9-f135d774212a"},{"name":"submit_sample_to_lab","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});",""],"type":"text/javascript"}}],"id":"f3fda29c-f6e6-4eda-b3ab-383e152bf9c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_1}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-f3fda29c-f6e6-4eda-b3ab-383e152bf9c6"},{"name":"upload_test_results","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"92bdd4da-1e8c-4db6-9b1d-e7bac35eed9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_2}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-92bdd4da-1e8c-4db6-9b1d-e7bac35eed9f"}],"id":"141825b8-b24b-4863-b98f-971601674807","createdAt":"2023-11-22T15:00:56.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-141825b8-b24b-4863-b98f-971601674807"},{"name":"15.Verify that data cannot be updated with null criteriaCode in testCriteria.","item":[{"name":"create_test_with_workflow","event":[{"listen":"test","script":{"id":"8f8f2644-27e8-4921-9e9a-ac96d1197d9d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"update workflow step 1 data\", function () {","    var jsonData = pm.response.json();","    jsonData.tests[0].testCriteria[0].criteriaCode = \"\";","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"SUBMIT_SAMPLE\";","   ","    }","    pm.environment.set('create_response_1', JSON.stringify(jsonData.tests));","    console.info(jsonData.tests)","});"],"type":"text/javascript"}}],"id":"d61e0328-f8be-4289-80d9-65a8900b0ff9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\":\"{{access_token}}\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"FECAL_SLUDGE_MANAGEMENT\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n             \n                   {\n                    \"criteriaCode\": \"ARSENIC_GTR_70\",\n                    \"resultValue\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB_SCHEDULED\",\n            \"scheduledDate\": 1700888886872,\n            \"isActive\": true,\n            \"documents\": [\n                // {\n                //     \"id\": \"string\",\n                //     \"documentType\": \"string\",\n                //     \"fileStore\": \"string\",\n                //     \"documentUid\": \"string\",\n                //     \"additionalDetails\": {}\n                // }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_createWithWorkflow","host":["{{url}}"],"path":["pqm-service","v1","_createWithWorkflow"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-25T16:50:18.000Z","uid":"29681440-d61e0328-f8be-4289-80d9-65a8900b0ff9"},{"name":"submit_sample_to_lab","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});",""],"type":"text/javascript"}}],"id":"c3a608d2-26e8-4907-b371-8312d125d158","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_1}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-c3a608d2-26e8-4907-b371-8312d125d158"},{"name":"upload_test_results","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"d8b621aa-b4ee-4c47-96b3-86257f582b24","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_2}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-d8b621aa-b4ee-4c47-96b3-86257f582b24"}],"id":"c969b4a8-3748-4983-87e3-fd5726a36df1","createdAt":"2023-11-22T15:00:56.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-c969b4a8-3748-4983-87e3-fd5726a36df1"},{"name":"16.Verify that data cannot be updated with new criteriaCode in testCriteria.","item":[{"name":"create_test_with_workflow","event":[{"listen":"test","script":{"id":"8f8f2644-27e8-4921-9e9a-ac96d1197d9d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"update workflow step 1 data\", function () {","    var jsonData = pm.response.json();","    jsonData.tests[0].testCriteria[0].criteriaCode = \"ARSENIC_NEQ_75\";","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"SUBMIT_SAMPLE\";","   ","    }","    pm.environment.set('create_response_1', JSON.stringify(jsonData.tests));","    console.info(jsonData.tests)","});"],"type":"text/javascript"}}],"id":"9ae34823-216f-4982-88d2-73796e7ccf96","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\":\"{{access_token}}\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"FECAL_SLUDGE_MANAGEMENT\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n             \n                   {\n                    \"criteriaCode\": \"ARSENIC_GTR_70\",\n                    \"resultValue\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB_SCHEDULED\",\n            \"scheduledDate\": 1700888886872,\n            \"isActive\": true,\n            \"documents\": [\n                // {\n                //     \"id\": \"string\",\n                //     \"documentType\": \"string\",\n                //     \"fileStore\": \"string\",\n                //     \"documentUid\": \"string\",\n                //     \"additionalDetails\": {}\n                // }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_createWithWorkflow","host":["{{url}}"],"path":["pqm-service","v1","_createWithWorkflow"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-25T16:50:15.000Z","uid":"29681440-9ae34823-216f-4982-88d2-73796e7ccf96"},{"name":"submit_sample_to_lab","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});",""],"type":"text/javascript"}}],"id":"adcf5535-6031-454e-9239-c37b0f71e131","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_1}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-adcf5535-6031-454e-9239-c37b0f71e131"},{"name":"upload_test_results","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"58e2b068-81a9-430f-a8bc-d93d9959a971","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_2}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-58e2b068-81a9-430f-a8bc-d93d9959a971"}],"id":"39d9c08e-cc82-49fb-b910-59b3a53c818e","createdAt":"2023-11-22T15:00:56.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-39d9c08e-cc82-49fb-b910-59b3a53c818e"},{"name":"17.Verify that data cannot be updated with invalid criteriaCode in testCriteria.","item":[{"name":"create_test_with_workflow","event":[{"listen":"test","script":{"id":"8f8f2644-27e8-4921-9e9a-ac96d1197d9d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"update workflow step 1 data\", function () {","    var jsonData = pm.response.json();","    jsonData.tests[0].testCriteria[0].criteriaCode = \"PH\";","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"SUBMIT_SAMPLE\";","   ","    }","    pm.environment.set('create_response_1', JSON.stringify(jsonData.tests));","    console.info(jsonData.tests)","});"],"type":"text/javascript"}}],"id":"c211bd86-a649-45e7-a293-dba2df7f05fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\":\"{{access_token}}\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"FECAL_SLUDGE_MANAGEMENT\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n             \n                   {\n                    \"criteriaCode\": \"ARSENIC_GTR_70\",\n                    \"resultValue\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB_SCHEDULED\",\n            \"scheduledDate\": 1700888886872,\n            \"isActive\": true,\n            \"documents\": [\n                // {\n                //     \"id\": \"string\",\n                //     \"documentType\": \"string\",\n                //     \"fileStore\": \"string\",\n                //     \"documentUid\": \"string\",\n                //     \"additionalDetails\": {}\n                // }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_createWithWorkflow","host":["{{url}}"],"path":["pqm-service","v1","_createWithWorkflow"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-25T16:50:14.000Z","uid":"29681440-c211bd86-a649-45e7-a293-dba2df7f05fc"},{"name":"submit_sample_to_lab","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});",""],"type":"text/javascript"}}],"id":"7e5b4a86-8989-4616-adbf-a905fb7b3e8d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_1}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-7e5b4a86-8989-4616-adbf-a905fb7b3e8d"},{"name":"upload_test_results","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"3e633c1a-0b6c-49c4-8925-71f00b26b564","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_2}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-3e633c1a-0b6c-49c4-8925-71f00b26b564"}],"id":"2c878f27-5874-43c9-96e3-6237887dc145","createdAt":"2023-11-22T15:00:56.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-2c878f27-5874-43c9-96e3-6237887dc145"},{"name":"18.Verify that data cannot be updated with \"testCriteria\" with valid value in submit_sample","item":[{"name":"TEST CREATE WITH WORKFLOW UNIFIED-QA Copy","event":[{"listen":"test","script":{"id":"8f8f2644-27e8-4921-9e9a-ac96d1197d9d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"update workflow step 1 data\", function () {","    var jsonData = pm.response.json();","    jsonData.tests[0].testCriteria[0].resultValue = \"-0.2\";","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"SUBMIT_SAMPLE\";","   ","    }","    pm.environment.set('create_response_1', JSON.stringify(jsonData.tests));","    console.info(jsonData.tests)","});"],"type":"text/javascript"}}],"id":"854509b7-c039-4f9e-8792-0168b54f4570","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\":\"{{access_token}}\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"FECAL_SLUDGE_MANAGEMENT\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n             \n                   {\n                    \"criteriaCode\": \"ARSENIC_GTR_70\",\n                    \"resultValue\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB_SCHEDULED\",\n            \"scheduledDate\": 1700888886872,\n            \"isActive\": true,\n            \"documents\": [\n                // {\n                //     \"id\": \"string\",\n                //     \"documentType\": \"string\",\n                //     \"fileStore\": \"string\",\n                //     \"documentUid\": \"string\",\n                //     \"additionalDetails\": {}\n                // }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\":\"{{access_token}}\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"FECAL_SLUDGE_MANAGEMENT\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n             \n                   {\n                    \"criteriaCode\": \"ARSENIC_GTR_70\",\n                    \"resultValue\": 0,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB_SCHEDULED\",\n            \"scheduledDate\": 1700888886872,\n            \"isActive\": true,\n            \"documents\": [\n                // {\n                //     \"id\": \"string\",\n                //     \"documentType\": \"string\",\n                //     \"fileStore\": \"string\",\n                //     \"documentUid\": \"string\",\n                //     \"additionalDetails\": {}\n                // }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_createWithWorkflow","host":["{{url}}"],"path":["pqm-service","v1","_createWithWorkflow"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-25T16:50:14.000Z","uid":"29681440-854509b7-c039-4f9e-8792-0168b54f4570"},{"name":"submit_sample_to_lab","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});",""],"type":"text/javascript"}}],"id":"ac0746ca-262e-416b-8622-2e6f6433787f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_1}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-ac0746ca-262e-416b-8622-2e6f6433787f"},{"name":"upload_test_results Copy","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"0354f1bd-33fd-4bc7-bdff-fbd01aff7df2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_2}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-0354f1bd-33fd-4bc7-bdff-fbd01aff7df2"}],"id":"f969121b-d67c-476a-adae-c3a1014a9070","createdAt":"2023-11-22T15:00:56.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-f969121b-d67c-476a-adae-c3a1014a9070"},{"name":"19.Verify that data can be updated with \"testCriteria\" with valid value update_result","item":[{"name":"TEST CREATE WITH WORKFLOW UNIFIED-QA Copy","event":[{"listen":"test","script":{"id":"8f8f2644-27e8-4921-9e9a-ac96d1197d9d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"update workflow step 1 data\", function () {","    var jsonData = pm.response.json();","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"SUBMIT_SAMPLE\";","   ","    }","    pm.environment.set('create_response_1', JSON.stringify(jsonData.tests));","    console.info(jsonData.tests)","});"],"type":"text/javascript"}}],"id":"4f8a1fef-80e2-4ed8-a017-185ea8415473","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\":\"{{access_token}}\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"FECAL_SLUDGE_MANAGEMENT\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n             \n                   {\n                    \"criteriaCode\": \"ARSENIC_GTR_70\",\n                    \"resultValue\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB_SCHEDULED\",\n            \"scheduledDate\": 1700888886872,\n            \"isActive\": true,\n            \"documents\": [\n                // {\n                //     \"id\": \"string\",\n                //     \"documentType\": \"string\",\n                //     \"fileStore\": \"string\",\n                //     \"documentUid\": \"string\",\n                //     \"additionalDetails\": {}\n                // }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_createWithWorkflow","host":["{{url}}"],"path":["pqm-service","v1","_createWithWorkflow"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-25T16:48:38.000Z","uid":"29681440-4f8a1fef-80e2-4ed8-a017-185ea8415473"},{"name":"submit_sample_to_lab","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 202\", function () {","    pm.response.to.have.status(202);","});","pm.test(\"create submit test results request body\", function () {","    var jsonData = pm.response.json();","   ","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"UPDATE_RESULT\";","        for (let j = 0; j < jsonData.tests[i].testCriteria.length; j++){","            jsonData.tests[i].testCriteria[j].resultValue = -.2;","        }","    }","    pm.environment.set('create_response_2', JSON.stringify(jsonData.tests));","    console.info(jsonData.tests)","});"],"type":"text/javascript"}}],"id":"27877ba8-5f66-40c2-841c-0825869d1e6b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_1}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-27877ba8-5f66-40c2-841c-0825869d1e6b"},{"name":"upload_test_results","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 202\", function () {","    pm.response.to.have.status(202);","});"],"type":"text/javascript"}}],"id":"74351cd0-520c-456d-bf2a-d20be8ef66be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_2}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[{"id":"4bc8330c-ceea-485d-ac72-874ff4b2bf78","name":"TEST UPDATE 2nd STEP WF","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"c2ff2191-e5fd-426f-b6f1-4376f5c6c246\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\":[\n        {\n            \"id\": \"1013-PQM-2023-10-19-000320\",\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"WATER_FILTERING\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"deviceCode\": null,\n            \"testCriteria\": [\n                {\n                    \"id\": \"2ded9fa9-857d-4cf8-9fb8-e64c0d54803d\",\n                    \"testId\": \"1013-PQM-2023-10-19-000320\",\n                    \"criteriaCode\": \"ARSENIC_NEQ_75\",\n                    \"resultValue\": 63,\n                    \"allowedDeviation\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true,\n                    \"auditDetails\": {\n                        \"createdBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                        \"lastModifiedBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                        \"createdTime\": 1697709700892,\n                        \"lastModifiedTime\": 1697709700892\n                    }\n                }\n            ],\n            \"status\": \"PENDING\",\n            \"wfStatus\": \"SCHEDULED\",\n            \"testType\": \"LAB\",\n            \"scheduledDate\": 1698237626000,\n            \"isActive\": true,\n            \"documents\": [\n                {\n                    \"id\": \"474e66e0-9c9c-4b2b-acf3-22f71ab16cb3\",\n                    \"testId\": \"1013-PQM-2023-10-19-000320\",\n                    \"documentType\": \"string\",\n                    \"documentUid\": \"string\",\n                    \"documentUri\": null,\n                    \"additionalDetails\": {},\n                    \"tenantId\": null,\n                    \"fileStoreId\": null,\n                    \"isActive\": false,\n                    \"auditDetails\": null\n                }\n            ],\n            \"additionalDetails\": {},\n            \"auditDetails\": {\n                \"createdBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                \"lastModifiedBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                \"createdTime\": 1697709700892,\n                \"lastModifiedTime\": 1697709700892\n            },\n            \"workflow\": {\n                \"action\": \"SUBMIT_SAMPLE\",\n                \"assignes\": null,\n                \"comments\": null,\n                \"verificationDocuments\": null,\n                \"rating\": null\n            }\n        }\n    ]\n}"},"url":{"raw":"https://unified-qa.digit.org/pqm-service/v1/_update","protocol":"https","host":["unified-qa","digit","org"],"path":["pqm-service","v1","_update"]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 25 Oct 2023 10:09:18 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-correlation-id","value":"112e85e1-8e74-4355-8db5-6d40ee57b8d9"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"ResponseInfo\": null,\n    \"Errors\": [\n        {\n            \"code\": \"TEST_NOT_PRESENT_IN_DB\",\n            \"message\": \"test not present in database which we want to update \",\n            \"description\": null,\n            \"params\": null\n        }\n    ]\n}","createdAt":"2023-11-22T15:00:59.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-4bc8330c-ceea-485d-ac72-874ff4b2bf78"}],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-74351cd0-520c-456d-bf2a-d20be8ef66be"}],"id":"748df5be-46ba-409e-bf11-a2a12e7561a7","createdAt":"2023-11-22T15:00:56.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-748df5be-46ba-409e-bf11-a2a12e7561a7"},{"name":"20.Verify that data cannot be updated with \"testCriteria\" with invalid value update_result","item":[{"name":"TEST CREATE WITH WORKFLOW UNIFIED-QA Copy","event":[{"listen":"test","script":{"id":"8f8f2644-27e8-4921-9e9a-ac96d1197d9d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"update workflow step 1 data\", function () {","    var jsonData = pm.response.json();","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"SUBMIT_SAMPLE\";","   ","    }","    pm.environment.set('create_response_1', JSON.stringify(jsonData.tests));","    console.info(jsonData.tests)","});"],"type":"text/javascript"}}],"id":"93f99110-d3d9-4ec3-bc6c-2007221a2791","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\":\"{{access_token}}\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"FECAL_SLUDGE_MANAGEMENT\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n             \n                   {\n                    \"criteriaCode\": \"ARSENIC_GTR_70\",\n                    \"resultValue\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB_SCHEDULED\",\n            \"scheduledDate\": 1700888886872,\n            \"isActive\": true,\n            \"documents\": [\n                // {\n                //     \"id\": \"string\",\n                //     \"documentType\": \"string\",\n                //     \"fileStore\": \"string\",\n                //     \"documentUid\": \"string\",\n                //     \"additionalDetails\": {}\n                // }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_createWithWorkflow","host":["{{url}}"],"path":["pqm-service","v1","_createWithWorkflow"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-25T16:48:48.000Z","uid":"29681440-93f99110-d3d9-4ec3-bc6c-2007221a2791"},{"name":"submit_sample_to_lab","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(202);","});","pm.test(\"create submit test results request body\", function () {","    var jsonData = pm.response.json();","   ","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"UPDATE_RESULT\";","        for (let j = 0; j < jsonData.tests[i].testCriteria.length; j++){","            jsonData.tests[i].testCriteria[j].resultValue = \"Shre\";","        }","    }","    pm.environment.set('create_response_2', JSON.stringify(jsonData.tests));","    console.info(jsonData.tests)","});"],"type":"text/javascript"}}],"id":"894b7ef5-8339-402b-9cbe-26f88cae7125","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_1}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-894b7ef5-8339-402b-9cbe-26f88cae7125"},{"name":"upload_test_results","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"dd335ee3-11c7-4028-909a-dcb516f306d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_2}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[{"id":"e9ff006e-06ed-4c2f-97f4-dbe12dca6054","name":"TEST UPDATE 2nd STEP WF","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"c2ff2191-e5fd-426f-b6f1-4376f5c6c246\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\":[\n        {\n            \"id\": \"1013-PQM-2023-10-19-000320\",\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"WATER_FILTERING\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"deviceCode\": null,\n            \"testCriteria\": [\n                {\n                    \"id\": \"2ded9fa9-857d-4cf8-9fb8-e64c0d54803d\",\n                    \"testId\": \"1013-PQM-2023-10-19-000320\",\n                    \"criteriaCode\": \"ARSENIC_NEQ_75\",\n                    \"resultValue\": 63,\n                    \"allowedDeviation\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true,\n                    \"auditDetails\": {\n                        \"createdBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                        \"lastModifiedBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                        \"createdTime\": 1697709700892,\n                        \"lastModifiedTime\": 1697709700892\n                    }\n                }\n            ],\n            \"status\": \"PENDING\",\n            \"wfStatus\": \"SCHEDULED\",\n            \"testType\": \"LAB\",\n            \"scheduledDate\": 1698237626000,\n            \"isActive\": true,\n            \"documents\": [\n                {\n                    \"id\": \"474e66e0-9c9c-4b2b-acf3-22f71ab16cb3\",\n                    \"testId\": \"1013-PQM-2023-10-19-000320\",\n                    \"documentType\": \"string\",\n                    \"documentUid\": \"string\",\n                    \"documentUri\": null,\n                    \"additionalDetails\": {},\n                    \"tenantId\": null,\n                    \"fileStoreId\": null,\n                    \"isActive\": false,\n                    \"auditDetails\": null\n                }\n            ],\n            \"additionalDetails\": {},\n            \"auditDetails\": {\n                \"createdBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                \"lastModifiedBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                \"createdTime\": 1697709700892,\n                \"lastModifiedTime\": 1697709700892\n            },\n            \"workflow\": {\n                \"action\": \"SUBMIT_SAMPLE\",\n                \"assignes\": null,\n                \"comments\": null,\n                \"verificationDocuments\": null,\n                \"rating\": null\n            }\n        }\n    ]\n}"},"url":{"raw":"https://unified-qa.digit.org/pqm-service/v1/_update","protocol":"https","host":["unified-qa","digit","org"],"path":["pqm-service","v1","_update"]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 25 Oct 2023 10:09:18 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-correlation-id","value":"112e85e1-8e74-4355-8db5-6d40ee57b8d9"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"ResponseInfo\": null,\n    \"Errors\": [\n        {\n            \"code\": \"TEST_NOT_PRESENT_IN_DB\",\n            \"message\": \"test not present in database which we want to update \",\n            \"description\": null,\n            \"params\": null\n        }\n    ]\n}","createdAt":"2023-11-22T15:00:59.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-e9ff006e-06ed-4c2f-97f4-dbe12dca6054"}],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-dd335ee3-11c7-4028-909a-dcb516f306d5"}],"id":"92962c7d-17fe-4ae5-aa6c-1108c72fc2d7","createdAt":"2023-11-22T15:00:56.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-92962c7d-17fe-4ae5-aa6c-1108c72fc2d7"},{"name":"21.Verify that data cannot be updated with valid \"tests\" and invalid \"testCriteria\" object only.","item":[{"name":"TEST CREATE WITH WORKFLOW UNIFIED-QA Copy","event":[{"listen":"test","script":{"id":"8f8f2644-27e8-4921-9e9a-ac96d1197d9d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"update workflow step 1 data\", function () {","    var jsonData = pm.response.json();","    jsonData.tests[0].testCriteria[0].criteriaCode = \"\";","    ","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"SUBMIT_SAMPLE\";","   ","    }","    pm.environment.set('create_response_1', JSON.stringify(jsonData.tests));","    console.info(jsonData.tests)","});"],"type":"text/javascript"}}],"id":"e920ee47-3850-4022-9dc0-6ca962b4a9c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\":\"{{access_token}}\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"FECAL_SLUDGE_MANAGEMENT\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n             \n                   {\n                    \"criteriaCode\": \"ARSENIC_GTR_70\",\n                    \"resultValue\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB_SCHEDULED\",\n            \"scheduledDate\": 1700888886872,\n            \"isActive\": true,\n            \"documents\": [\n                // {\n                //     \"id\": \"string\",\n                //     \"documentType\": \"string\",\n                //     \"fileStore\": \"string\",\n                //     \"documentUid\": \"string\",\n                //     \"additionalDetails\": {}\n                // }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_createWithWorkflow","host":["{{url}}"],"path":["pqm-service","v1","_createWithWorkflow"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-25T16:49:03.000Z","uid":"29681440-e920ee47-3850-4022-9dc0-6ca962b4a9c7"},{"name":"submit_sample_to_lab","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});","// pm.test(\"create submit test results request body\", function () {","//     var jsonData = pm.response.json();","   ","//     for (let i = 0; i < jsonData.tests.length; i++) {","//         jsonData.tests[i].workflow.action = \"UPDATE_RESULT\";","//         for (let j = 0; j < jsonData.tests[i].testCriteria.length; j++){","//             jsonData.tests[i].testCriteria[j].resultValue = 7;","//         }","//     }","//     pm.environment.set('create_response_2', JSON.stringify(jsonData.tests));","//     console.info(jsonData.tests)","// });"],"type":"text/javascript"}}],"id":"91bd710d-4f96-4bca-b038-be3039275538","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_1}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:51:43.000Z","uid":"29681440-91bd710d-4f96-4bca-b038-be3039275538"},{"name":"upload_test_results","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"5c473df8-594c-45b7-8e32-1f2cc7cef14e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_2}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[{"id":"9ee21950-f634-4723-81c5-bd6dba6b4bb5","name":"TEST UPDATE 2nd STEP WF","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"c2ff2191-e5fd-426f-b6f1-4376f5c6c246\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\":[\n        {\n            \"id\": \"1013-PQM-2023-10-19-000320\",\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"WATER_FILTERING\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"deviceCode\": null,\n            \"testCriteria\": [\n                {\n                    \"id\": \"2ded9fa9-857d-4cf8-9fb8-e64c0d54803d\",\n                    \"testId\": \"1013-PQM-2023-10-19-000320\",\n                    \"criteriaCode\": \"ARSENIC_NEQ_75\",\n                    \"resultValue\": 63,\n                    \"allowedDeviation\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true,\n                    \"auditDetails\": {\n                        \"createdBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                        \"lastModifiedBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                        \"createdTime\": 1697709700892,\n                        \"lastModifiedTime\": 1697709700892\n                    }\n                }\n            ],\n            \"status\": \"PENDING\",\n            \"wfStatus\": \"SCHEDULED\",\n            \"testType\": \"LAB\",\n            \"scheduledDate\": 1698237626000,\n            \"isActive\": true,\n            \"documents\": [\n                {\n                    \"id\": \"474e66e0-9c9c-4b2b-acf3-22f71ab16cb3\",\n                    \"testId\": \"1013-PQM-2023-10-19-000320\",\n                    \"documentType\": \"string\",\n                    \"documentUid\": \"string\",\n                    \"documentUri\": null,\n                    \"additionalDetails\": {},\n                    \"tenantId\": null,\n                    \"fileStoreId\": null,\n                    \"isActive\": false,\n                    \"auditDetails\": null\n                }\n            ],\n            \"additionalDetails\": {},\n            \"auditDetails\": {\n                \"createdBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                \"lastModifiedBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                \"createdTime\": 1697709700892,\n                \"lastModifiedTime\": 1697709700892\n            },\n            \"workflow\": {\n                \"action\": \"SUBMIT_SAMPLE\",\n                \"assignes\": null,\n                \"comments\": null,\n                \"verificationDocuments\": null,\n                \"rating\": null\n            }\n        }\n    ]\n}"},"url":{"raw":"https://unified-qa.digit.org/pqm-service/v1/_update","protocol":"https","host":["unified-qa","digit","org"],"path":["pqm-service","v1","_update"]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 25 Oct 2023 10:09:18 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-correlation-id","value":"112e85e1-8e74-4355-8db5-6d40ee57b8d9"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"ResponseInfo\": null,\n    \"Errors\": [\n        {\n            \"code\": \"TEST_NOT_PRESENT_IN_DB\",\n            \"message\": \"test not present in database which we want to update \",\n            \"description\": null,\n            \"params\": null\n        }\n    ]\n}","createdAt":"2023-11-22T15:00:59.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-9ee21950-f634-4723-81c5-bd6dba6b4bb5"}],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-5c473df8-594c-45b7-8e32-1f2cc7cef14e"}],"id":"17f47a0e-b20d-4e6d-8fe5-5ba21db115e8","createdAt":"2023-11-22T15:00:56.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-17f47a0e-b20d-4e6d-8fe5-5ba21db115e8"},{"name":"22.Verify that data cannot be updated with invalid \"tests\" and valid \"testCriteria\" object only.","item":[{"name":"TEST CREATE WITH WORKFLOW UNIFIED-QA Copy","event":[{"listen":"test","script":{"id":"8f8f2644-27e8-4921-9e9a-ac96d1197d9d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"update workflow step 1 data\", function () {","    var jsonData = pm.response.json();","    jsonData.tests[0].status = \"\";","    ","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"SUBMIT_SAMPLE\";","   ","    }","    pm.environment.set('create_response_1', JSON.stringify(jsonData.tests));","    console.info(jsonData.tests)","});"],"type":"text/javascript"}}],"id":"a0d44d75-7e64-4ee1-a8c4-c70824c1b517","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\":\"{{access_token}}\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"FECAL_SLUDGE_MANAGEMENT\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n             \n                   {\n                    \"criteriaCode\": \"ARSENIC_GTR_70\",\n                    \"resultValue\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB_SCHEDULED\",\n            \"scheduledDate\": 1700888886872,\n            \"isActive\": true,\n            \"documents\": [\n                // {\n                //     \"id\": \"string\",\n                //     \"documentType\": \"string\",\n                //     \"fileStore\": \"string\",\n                //     \"documentUid\": \"string\",\n                //     \"additionalDetails\": {}\n                // }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_createWithWorkflow","host":["{{url}}"],"path":["pqm-service","v1","_createWithWorkflow"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-25T16:49:18.000Z","uid":"29681440-a0d44d75-7e64-4ee1-a8c4-c70824c1b517"},{"name":"submit_sample_to_lab","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});",""],"type":"text/javascript"}}],"id":"299665e9-3c18-406a-bba3-73044751d440","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_1}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-299665e9-3c18-406a-bba3-73044751d440"},{"name":"upload_test_results","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"0368353d-316e-438d-ad0e-478d9ba7e4cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_2}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[{"id":"dea8706e-09cf-45f5-a473-5c173fd5b997","name":"TEST UPDATE 2nd STEP WF","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"c2ff2191-e5fd-426f-b6f1-4376f5c6c246\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\":[\n        {\n            \"id\": \"1013-PQM-2023-10-19-000320\",\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"WATER_FILTERING\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"deviceCode\": null,\n            \"testCriteria\": [\n                {\n                    \"id\": \"2ded9fa9-857d-4cf8-9fb8-e64c0d54803d\",\n                    \"testId\": \"1013-PQM-2023-10-19-000320\",\n                    \"criteriaCode\": \"ARSENIC_NEQ_75\",\n                    \"resultValue\": 63,\n                    \"allowedDeviation\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true,\n                    \"auditDetails\": {\n                        \"createdBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                        \"lastModifiedBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                        \"createdTime\": 1697709700892,\n                        \"lastModifiedTime\": 1697709700892\n                    }\n                }\n            ],\n            \"status\": \"PENDING\",\n            \"wfStatus\": \"SCHEDULED\",\n            \"testType\": \"LAB\",\n            \"scheduledDate\": 1698237626000,\n            \"isActive\": true,\n            \"documents\": [\n                {\n                    \"id\": \"474e66e0-9c9c-4b2b-acf3-22f71ab16cb3\",\n                    \"testId\": \"1013-PQM-2023-10-19-000320\",\n                    \"documentType\": \"string\",\n                    \"documentUid\": \"string\",\n                    \"documentUri\": null,\n                    \"additionalDetails\": {},\n                    \"tenantId\": null,\n                    \"fileStoreId\": null,\n                    \"isActive\": false,\n                    \"auditDetails\": null\n                }\n            ],\n            \"additionalDetails\": {},\n            \"auditDetails\": {\n                \"createdBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                \"lastModifiedBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                \"createdTime\": 1697709700892,\n                \"lastModifiedTime\": 1697709700892\n            },\n            \"workflow\": {\n                \"action\": \"SUBMIT_SAMPLE\",\n                \"assignes\": null,\n                \"comments\": null,\n                \"verificationDocuments\": null,\n                \"rating\": null\n            }\n        }\n    ]\n}"},"url":{"raw":"https://unified-qa.digit.org/pqm-service/v1/_update","protocol":"https","host":["unified-qa","digit","org"],"path":["pqm-service","v1","_update"]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 25 Oct 2023 10:09:18 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-correlation-id","value":"112e85e1-8e74-4355-8db5-6d40ee57b8d9"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"ResponseInfo\": null,\n    \"Errors\": [\n        {\n            \"code\": \"TEST_NOT_PRESENT_IN_DB\",\n            \"message\": \"test not present in database which we want to update \",\n            \"description\": null,\n            \"params\": null\n        }\n    ]\n}","createdAt":"2023-11-22T15:00:59.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-dea8706e-09cf-45f5-a473-5c173fd5b997"}],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-0368353d-316e-438d-ad0e-478d9ba7e4cb"}],"id":"8431ab97-d321-4caa-9205-01586d0c667c","createdAt":"2023-11-22T15:00:56.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-8431ab97-d321-4caa-9205-01586d0c667c"},{"name":"23.Verify that data cannot be updated with \"testCriteria\" with  multiple valid \"criteriaCode\" in workflow.","item":[{"name":"TEST CREATE WITH WORKFLOW UNIFIED-QA Copy","event":[{"listen":"test","script":{"id":"8f8f2644-27e8-4921-9e9a-ac96d1197d9d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"update workflow step 1 data\", function () {","    var jsonData = pm.response.json();","    jsonData.tests[0].testCriteria = [","                {","                    \"id\": \"7bb6f9af-433a-4567-9a3e-ed504d5f6f5b\",","                    \"testId\": \"1013-PQM-2023-10-30-000186\",","                    \"criteriaCode\": \"ARSENIC_NEQ_75\",","                    \"resultValue\": 0,","                    \"allowedDeviation\": null,","                    \"resultStatus\": \"PENDING\",","                    \"isActive\": true,","                    \"auditDetails\": {","                        \"createdBy\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",","                        \"lastModifiedBy\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",","                        \"createdTime\": 1698661276429,","                        \"lastModifiedTime\": 1698661315749","                    }","                },","                 {","                    \"id\": \"7bb6f9af-433a-4567-9a3e-ed504d5f6f5b\",","                    \"testId\": \"1013-PQM-2023-10-30-000186\",","                    \"criteriaCode\": \"PH_GTR_5\",","                    \"resultValue\": 0,","                    \"allowedDeviation\": null,","                    \"resultStatus\": \"PENDING\",","                    \"isActive\": true,","                    \"auditDetails\": {","                        \"createdBy\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",","                        \"lastModifiedBy\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",","                        \"createdTime\": 1698661276429,","                        \"lastModifiedTime\": 1698661315749","                    }","                }","            ];","    ","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"SUBMIT_SAMPLE\";","   ","    }","    pm.environment.set('create_response_1', JSON.stringify(jsonData.tests));","    console.info(jsonData.tests)","});"],"type":"text/javascript"}}],"id":"88e0a5e4-2dfd-406b-bc7a-d315c876f8c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\":\"{{access_token}}\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"FECAL_SLUDGE_MANAGEMENT\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n             \n                   {\n                    \"criteriaCode\": \"ARSENIC_GTR_70\",\n                    \"resultValue\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB_SCHEDULED\",\n            \"scheduledDate\": 1700888886872,\n            \"isActive\": true,\n            \"documents\": [\n                // {\n                //     \"id\": \"string\",\n                //     \"documentType\": \"string\",\n                //     \"fileStore\": \"string\",\n                //     \"documentUid\": \"string\",\n                //     \"additionalDetails\": {}\n                // }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_createWithWorkflow","host":["{{url}}"],"path":["pqm-service","v1","_createWithWorkflow"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-25T16:49:32.000Z","uid":"29681440-88e0a5e4-2dfd-406b-bc7a-d315c876f8c6"},{"name":"submit_sample_to_lab","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});","// pm.test(\"create submit test results request body\", function () {","//     var jsonData = pm.response.json();","//     for (let i = 0; i < jsonData.tests.length; i++) {","//         jsonData.tests[i].workflow.action = \"UPDATE_RESULT\";","//         for (let j = 0; j < jsonData.tests[i].testCriteria.length; j++){","//             jsonData.tests[i].testCriteria[j].resultValue = 7;","//         }","//     }","//     pm.environment.set('create_response_2', JSON.stringify(jsonData.tests));","//     console.info(jsonData.tests)","// });",""],"type":"text/javascript"}}],"id":"275ac0cb-b2fe-43a9-bd1a-5ba38da196f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_1}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:59:31.000Z","uid":"29681440-275ac0cb-b2fe-43a9-bd1a-5ba38da196f7"},{"name":"upload_test_results","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"4673810e-5655-4276-8384-1ba8570a43d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_2}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[{"id":"349a08ef-6c4e-44bd-9451-aaef1006c676","name":"TEST UPDATE 2nd STEP WF","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"c2ff2191-e5fd-426f-b6f1-4376f5c6c246\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\":[\n        {\n            \"id\": \"1013-PQM-2023-10-19-000320\",\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"WATER_FILTERING\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"deviceCode\": null,\n            \"testCriteria\": [\n                {\n                    \"id\": \"2ded9fa9-857d-4cf8-9fb8-e64c0d54803d\",\n                    \"testId\": \"1013-PQM-2023-10-19-000320\",\n                    \"criteriaCode\": \"ARSENIC_NEQ_75\",\n                    \"resultValue\": 63,\n                    \"allowedDeviation\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true,\n                    \"auditDetails\": {\n                        \"createdBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                        \"lastModifiedBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                        \"createdTime\": 1697709700892,\n                        \"lastModifiedTime\": 1697709700892\n                    }\n                }\n            ],\n            \"status\": \"PENDING\",\n            \"wfStatus\": \"SCHEDULED\",\n            \"testType\": \"LAB\",\n            \"scheduledDate\": 1698237626000,\n            \"isActive\": true,\n            \"documents\": [\n                {\n                    \"id\": \"474e66e0-9c9c-4b2b-acf3-22f71ab16cb3\",\n                    \"testId\": \"1013-PQM-2023-10-19-000320\",\n                    \"documentType\": \"string\",\n                    \"documentUid\": \"string\",\n                    \"documentUri\": null,\n                    \"additionalDetails\": {},\n                    \"tenantId\": null,\n                    \"fileStoreId\": null,\n                    \"isActive\": false,\n                    \"auditDetails\": null\n                }\n            ],\n            \"additionalDetails\": {},\n            \"auditDetails\": {\n                \"createdBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                \"lastModifiedBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                \"createdTime\": 1697709700892,\n                \"lastModifiedTime\": 1697709700892\n            },\n            \"workflow\": {\n                \"action\": \"SUBMIT_SAMPLE\",\n                \"assignes\": null,\n                \"comments\": null,\n                \"verificationDocuments\": null,\n                \"rating\": null\n            }\n        }\n    ]\n}"},"url":{"raw":"https://unified-qa.digit.org/pqm-service/v1/_update","protocol":"https","host":["unified-qa","digit","org"],"path":["pqm-service","v1","_update"]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 25 Oct 2023 10:09:18 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-correlation-id","value":"112e85e1-8e74-4355-8db5-6d40ee57b8d9"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"ResponseInfo\": null,\n    \"Errors\": [\n        {\n            \"code\": \"TEST_NOT_PRESENT_IN_DB\",\n            \"message\": \"test not present in database which we want to update \",\n            \"description\": null,\n            \"params\": null\n        }\n    ]\n}","createdAt":"2023-11-22T15:00:59.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-349a08ef-6c4e-44bd-9451-aaef1006c676"}],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-4673810e-5655-4276-8384-1ba8570a43d7"}],"id":"7b533ea2-7c96-43e9-bc61-d8b2e6884bd8","createdAt":"2023-11-22T15:00:56.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-7b533ea2-7c96-43e9-bc61-d8b2e6884bd8"},{"name":"24. Verify that data cannot be updated with invalid testtype.","item":[{"name":"TEST CREATE WITH WORKFLOW UNIFIED-QA Copy","event":[{"listen":"test","script":{"id":"8f8f2644-27e8-4921-9e9a-ac96d1197d9d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"update workflow step 1 data\", function () {","    var jsonData = pm.response.json();","    jsonData.tests[0].testType = \"1\";","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"SUBMIT_SAMPLE\";","   ","    }","    pm.environment.set('create_response_1', JSON.stringify(jsonData.tests));","    console.info(jsonData.tests)","});"],"type":"text/javascript"}}],"id":"f10a4dbe-f46f-4c68-8307-ff90950cdc7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\":\"{{access_token}}\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"FECAL_SLUDGE_MANAGEMENT\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n             \n                   {\n                    \"criteriaCode\": \"ARSENIC_GTR_70\",\n                    \"resultValue\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB_SCHEDULED\",\n            \"scheduledDate\": 1700888886872,\n            \"isActive\": true,\n            \"documents\": [\n                // {\n                //     \"id\": \"string\",\n                //     \"documentType\": \"string\",\n                //     \"fileStore\": \"string\",\n                //     \"documentUid\": \"string\",\n                //     \"additionalDetails\": {}\n                // }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_createWithWorkflow","host":["{{url}}"],"path":["pqm-service","v1","_createWithWorkflow"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-25T16:49:43.000Z","uid":"29681440-f10a4dbe-f46f-4c68-8307-ff90950cdc7f"},{"name":"submit_sample_to_lab","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});",""],"type":"text/javascript"}}],"id":"d3953265-5434-4d97-857a-c654945b41c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_1}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T16:05:33.000Z","uid":"29681440-d3953265-5434-4d97-857a-c654945b41c7"},{"name":"upload_test_results","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"aaef2a58-bc25-4c66-b55a-54dc65184096","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_2}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[{"id":"b51fc483-449d-4cc9-a9a8-b65ea7c0708e","name":"TEST UPDATE 2nd STEP WF","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"c2ff2191-e5fd-426f-b6f1-4376f5c6c246\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\":[\n        {\n            \"id\": \"1013-PQM-2023-10-19-000320\",\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"WATER_FILTERING\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"deviceCode\": null,\n            \"testCriteria\": [\n                {\n                    \"id\": \"2ded9fa9-857d-4cf8-9fb8-e64c0d54803d\",\n                    \"testId\": \"1013-PQM-2023-10-19-000320\",\n                    \"criteriaCode\": \"ARSENIC_NEQ_75\",\n                    \"resultValue\": 63,\n                    \"allowedDeviation\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true,\n                    \"auditDetails\": {\n                        \"createdBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                        \"lastModifiedBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                        \"createdTime\": 1697709700892,\n                        \"lastModifiedTime\": 1697709700892\n                    }\n                }\n            ],\n            \"status\": \"PENDING\",\n            \"wfStatus\": \"SCHEDULED\",\n            \"testType\": \"LAB\",\n            \"scheduledDate\": 1698237626000,\n            \"isActive\": true,\n            \"documents\": [\n                {\n                    \"id\": \"474e66e0-9c9c-4b2b-acf3-22f71ab16cb3\",\n                    \"testId\": \"1013-PQM-2023-10-19-000320\",\n                    \"documentType\": \"string\",\n                    \"documentUid\": \"string\",\n                    \"documentUri\": null,\n                    \"additionalDetails\": {},\n                    \"tenantId\": null,\n                    \"fileStoreId\": null,\n                    \"isActive\": false,\n                    \"auditDetails\": null\n                }\n            ],\n            \"additionalDetails\": {},\n            \"auditDetails\": {\n                \"createdBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                \"lastModifiedBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                \"createdTime\": 1697709700892,\n                \"lastModifiedTime\": 1697709700892\n            },\n            \"workflow\": {\n                \"action\": \"SUBMIT_SAMPLE\",\n                \"assignes\": null,\n                \"comments\": null,\n                \"verificationDocuments\": null,\n                \"rating\": null\n            }\n        }\n    ]\n}"},"url":{"raw":"https://unified-qa.digit.org/pqm-service/v1/_update","protocol":"https","host":["unified-qa","digit","org"],"path":["pqm-service","v1","_update"]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 25 Oct 2023 10:09:18 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-correlation-id","value":"112e85e1-8e74-4355-8db5-6d40ee57b8d9"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"ResponseInfo\": null,\n    \"Errors\": [\n        {\n            \"code\": \"TEST_NOT_PRESENT_IN_DB\",\n            \"message\": \"test not present in database which we want to update \",\n            \"description\": null,\n            \"params\": null\n        }\n    ]\n}","createdAt":"2023-11-22T15:00:59.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-b51fc483-449d-4cc9-a9a8-b65ea7c0708e"}],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-aaef2a58-bc25-4c66-b55a-54dc65184096"}],"id":"d7674225-3593-4e42-a1fb-69f78b56577d","createdAt":"2023-11-22T15:00:56.000Z","updatedAt":"2023-11-25T16:08:15.000Z","uid":"29681440-d7674225-3593-4e42-a1fb-69f78b56577d"},{"name":"25.Verify that workflow action can not be invalid string other than \"SUBMIT_SAMPLE\" or \"UPDATE_RESULT\".","item":[{"name":"TEST CREATE WITH WORKFLOW UNIFIED-QA Copy","event":[{"listen":"test","script":{"id":"8f8f2644-27e8-4921-9e9a-ac96d1197d9d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"update workflow step 1 data\", function () {","    var jsonData = pm.response.json();","    for (let i = 0; i < jsonData.tests.length; i++) {","        jsonData.tests[i].workflow.action = \"SUBMIT_SAMP1LE\";","   ","    }","    pm.environment.set('create_response_1', JSON.stringify(jsonData.tests));","    console.info(jsonData.tests)","});"],"type":"text/javascript"}}],"id":"7681a58c-c0a5-46c4-831b-2cf5f5255b8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\":\"{{access_token}}\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\": [\n        {\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"FECAL_SLUDGE_MANAGEMENT\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"testCriteria\": [\n             \n                   {\n                    \"criteriaCode\": \"ARSENIC_GTR_70\",\n                    \"resultValue\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true\n                }\n            ],\n            \"testType\":\"LAB_SCHEDULED\",\n            \"scheduledDate\": 1700888886872,\n            \"isActive\": true,\n            \"documents\": [\n                // {\n                //     \"id\": \"string\",\n                //     \"documentType\": \"string\",\n                //     \"fileStore\": \"string\",\n                //     \"documentUid\": \"string\",\n                //     \"additionalDetails\": {}\n                // }\n            ],\n            \"additionalDetails\": {},\n            \"workflow\": null\n        }\n    ]\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_createWithWorkflow","host":["{{url}}"],"path":["pqm-service","v1","_createWithWorkflow"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-25T16:49:56.000Z","uid":"29681440-7681a58c-c0a5-46c4-831b-2cf5f5255b8e"},{"name":"submit_sample_to_lab","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});","// pm.test(\"create submit test results request body\", function () {","//     var jsonData = pm.response.json();","//     for (let i = 0; i < jsonData.tests.length; i++) {","//         jsonData.tests[i].workflow.action = \"UPDATE_RESULT\";","//         for (let j = 0; j < jsonData.tests[i].testCriteria.length; j++){","//             jsonData.tests[i].testCriteria[j].resultValue = 7;","//         }","//     }","//     pm.environment.set('create_response_2', JSON.stringify(jsonData.tests));","//     console.info(jsonData.tests)","// });"],"type":"text/javascript"}}],"id":"0b5e2853-41d8-4d85-9834-18685cb422ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_1}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T16:14:20.000Z","uid":"29681440-0b5e2853-41d8-4d85-9834-18685cb422ae"},{"name":"upload_test_results","event":[{"listen":"test","script":{"id":"2e29d4a1-035f-4fbb-a155-30410c3f8ebd","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"e9671674-bcce-469c-9d0f-9801308ce8b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"{{access_token}}\",\n        \"userInfo\": {\n            \"id\": 111,\n            \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n            \"userName\": \"PlantOperatoruqa\",\n            \"name\": \"PlantOperatoruqa\",\n            \"mobileNumber\": \"9653320001\",\n            \"emailId\": null,\n            \"locale\": null,\n            \"type\": \"EMPLOYEE\",\n            \"roles\": [\n                {\n                    \"name\": \"PQM TP OPERATOR\",\n                    \"code\": \"PQM_TP_OPERATOR\",\n                    \"tenantId\": \"pg.citya\"\n                }\n            ],\n            \"active\": true,\n            \"tenantId\": \"pg.citya\",\n            \"permanentCity\": null\n        }\n    },\n    \"tests\":  {{create_response_2}}\n}"},"url":{"raw":"{{url}}/pqm-service/v1/_update","host":["{{url}}"],"path":["pqm-service","v1","_update"]}},"response":[{"id":"cc986c5e-2833-4525-b5d1-ceb89088cc87","name":"TEST UPDATE 2nd STEP WF","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"RequestInfo\": {\n        \"apiId\": \"string\",\n        \"ver\": \"string\",\n        \"ts\": 0,\n        \"action\": \"string\",\n        \"did\": \"string\",\n        \"key\": \"string\",\n        \"msgId\": \"string\",\n        \"requesterId\": \"string\",\n        \"authToken\": \"c2ff2191-e5fd-426f-b6f1-4376f5c6c246\",\n        \"userInfo\": {\n        \"id\": 111,\n        \"uuid\": \"9b6786ab-8883-4444-8c68-81757e3c3a84\",\n        \"userName\": \"PlantOperatoruqa\",\n        \"name\": \"PlantOperatoruqa\",\n        \"mobileNumber\": \"9653320001\",\n        \"emailId\": null,\n        \"locale\": null,\n        \"type\": \"EMPLOYEE\",\n        \"roles\": [\n            {\n                \"name\": \"PQM TP OPERATOR\",\n                \"code\": \"PQM_TP_OPERATOR\",\n                \"tenantId\": \"pg.citya\"\n            }\n        ],\n        \"active\": true,\n        \"tenantId\": \"pg.citya\",\n        \"permanentCity\": null\n    }\n    },\n    \"tests\":[\n        {\n            \"id\": \"1013-PQM-2023-10-19-000320\",\n            \"tenantId\": \"pg.citya\",\n            \"plantCode\": \"PURI_FSTP\",\n            \"processCode\": \"WATER_FILTERING\",\n            \"stageCode\": \"COAGULATION\",\n            \"materialCode\": \"POTABLE_WATER\",\n            \"deviceCode\": null,\n            \"testCriteria\": [\n                {\n                    \"id\": \"2ded9fa9-857d-4cf8-9fb8-e64c0d54803d\",\n                    \"testId\": \"1013-PQM-2023-10-19-000320\",\n                    \"criteriaCode\": \"ARSENIC_NEQ_75\",\n                    \"resultValue\": 63,\n                    \"allowedDeviation\": null,\n                    \"resultStatus\": \"PENDING\",\n                    \"isActive\": true,\n                    \"auditDetails\": {\n                        \"createdBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                        \"lastModifiedBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                        \"createdTime\": 1697709700892,\n                        \"lastModifiedTime\": 1697709700892\n                    }\n                }\n            ],\n            \"status\": \"PENDING\",\n            \"wfStatus\": \"SCHEDULED\",\n            \"testType\": \"LAB\",\n            \"scheduledDate\": 1698237626000,\n            \"isActive\": true,\n            \"documents\": [\n                {\n                    \"id\": \"474e66e0-9c9c-4b2b-acf3-22f71ab16cb3\",\n                    \"testId\": \"1013-PQM-2023-10-19-000320\",\n                    \"documentType\": \"string\",\n                    \"documentUid\": \"string\",\n                    \"documentUri\": null,\n                    \"additionalDetails\": {},\n                    \"tenantId\": null,\n                    \"fileStoreId\": null,\n                    \"isActive\": false,\n                    \"auditDetails\": null\n                }\n            ],\n            \"additionalDetails\": {},\n            \"auditDetails\": {\n                \"createdBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                \"lastModifiedBy\": \"60cf0229-3334-49bd-a83b-7354080ef2fc\",\n                \"createdTime\": 1697709700892,\n                \"lastModifiedTime\": 1697709700892\n            },\n            \"workflow\": {\n                \"action\": \"SUBMIT_SAMPLE\",\n                \"assignes\": null,\n                \"comments\": null,\n                \"verificationDocuments\": null,\n                \"rating\": null\n            }\n        }\n    ]\n}"},"url":{"raw":"https://unified-qa.digit.org/pqm-service/v1/_update","protocol":"https","host":["unified-qa","digit","org"],"path":["pqm-service","v1","_update"]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 25 Oct 2023 10:09:18 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-correlation-id","value":"112e85e1-8e74-4355-8db5-6d40ee57b8d9"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"ResponseInfo\": null,\n    \"Errors\": [\n        {\n            \"code\": \"TEST_NOT_PRESENT_IN_DB\",\n            \"message\": \"test not present in database which we want to update \",\n            \"description\": null,\n            \"params\": null\n        }\n    ]\n}","createdAt":"2023-11-22T15:00:59.000Z","updatedAt":"2023-11-22T15:00:59.000Z","uid":"29681440-cc986c5e-2833-4525-b5d1-ceb89088cc87"}],"createdAt":"2023-11-22T15:00:57.000Z","updatedAt":"2023-11-22T15:00:57.000Z","uid":"29681440-e9671674-bcce-469c-9d0f-9801308ce8b3"}],"id":"ac0f6c6b-d93a-497a-bab5-592c7056a161","createdAt":"2023-11-22T15:00:56.000Z","updatedAt":"2023-11-25T16:08:23.000Z","uid":"29681440-ac0f6c6b-d93a-497a-bab5-592c7056a161"}],"variable":[{"key":"create_response_1","value":""},{"key":"create_response_2","value":""}]}}