diff --git a/mosip-acceptance-tests/ivv-orchestrator/src/main/java/io/mosip/testrig/dslrig/ivv/e2e/methods/CheckForBDBPresence.java b/mosip-acceptance-tests/ivv-orchestrator/src/main/java/io/mosip/testrig/dslrig/ivv/e2e/methods/CheckForBDBPresence.java index d0c0b1d5..46c44bd5 100644 --- a/mosip-acceptance-tests/ivv-orchestrator/src/main/java/io/mosip/testrig/dslrig/ivv/e2e/methods/CheckForBDBPresence.java +++ b/mosip-acceptance-tests/ivv-orchestrator/src/main/java/io/mosip/testrig/dslrig/ivv/e2e/methods/CheckForBDBPresence.java @@ -64,21 +64,17 @@ public void run() throws RigInternalError { try { checkForBDB.test(test); - } catch (AuthenticationTestException e) { - logger.error(e.getMessage()); - } catch (AdminTestException e) { + } catch (AuthenticationTestException | AdminTestException e) { logger.error(e.getMessage()); + this.hasError = true; + throw new RigInternalError(e.getMessage()); } - Response response = checkForBDB.response; JSONObject responseJson = new JSONObject(response.asString()); JSONObject responseData = responseJson.getJSONObject("response"); JSONArray responseArray = responseData.getJSONArray("documents"); String bioData = responseArray.getJSONObject(0).getString("value"); - -// String cleanedString = cleanBase64String(bioData); - Base64.Decoder decoder = Base64.getUrlDecoder(); // Decode the base64 encoded string. diff --git a/mosip-acceptance-tests/ivv-orchestrator/src/main/java/io/mosip/testrig/dslrig/ivv/e2e/methods/GetPacketTemplate.java b/mosip-acceptance-tests/ivv-orchestrator/src/main/java/io/mosip/testrig/dslrig/ivv/e2e/methods/GetPacketTemplate.java index b9102afb..2297c62a 100644 --- a/mosip-acceptance-tests/ivv-orchestrator/src/main/java/io/mosip/testrig/dslrig/ivv/e2e/methods/GetPacketTemplate.java +++ b/mosip-acceptance-tests/ivv-orchestrator/src/main/java/io/mosip/testrig/dslrig/ivv/e2e/methods/GetPacketTemplate.java @@ -16,7 +16,7 @@ public class GetPacketTemplate extends BaseTestCaseUtil implements StepInterface { static Logger logger = Logger.getLogger(GetPacketTemplate.class); - + static { if (ConfigManager.IsDebugEnabled()) logger.setLevel(Level.ALL); @@ -29,49 +29,54 @@ public void run() throws RigInternalError { String qualityScore = "80"; boolean genarateValidCbeff = true; String process = null; - String personaPath=null; + String personaPath = null; Properties personaIdValue = null; - if (step.getParameters().isEmpty() && !step.getScenario().getGeneratedResidentData().isEmpty()) { // used to child packet processing - JSONArray jsonArray = packetUtility.getTemplate(new HashSet(step.getScenario().getGeneratedResidentData()), "NEW", - step.getScenario().getCurrentStep(),step,qualityScore,genarateValidCbeff); + if (step.getParameters().isEmpty() && !step.getScenario().getGeneratedResidentData().isEmpty()) { // used to + // child + // packet + // processing + JSONArray jsonArray = packetUtility.getTemplate( + new HashSet(step.getScenario().getGeneratedResidentData()), "NEW", + step.getScenario().getCurrentStep(), step, qualityScore, genarateValidCbeff); JSONObject obj = jsonArray.getJSONObject(0); - step.getScenario().setTemplatPath_updateResident( obj.get("path").toString()); + step.getScenario().setTemplatPath_updateResident(obj.get("path").toString()); } else { process = step.getParameters().get(0); if (step.getParameters().size() > 1) { String personaId = step.getParameters().get(1); - if(step.getParameters().size()==3) { + if (step.getParameters().size() == 3) { qualityScore = step.getParameters().get(2); } - if(step.getParameters().size()==4) { + if (step.getParameters().size() == 4) { genarateValidCbeff = Boolean.parseBoolean(step.getParameters().get(3)); } - if(personaId.startsWith("$$")) { - personaPath=step.getScenario().getVariables().get(personaId); - step.getScenario().getResidentTemplatePaths().clear();//step.getScenario().getResidentTemplatePaths().clear(); - }else { + if (personaId.startsWith("$$")) { + personaPath = step.getScenario().getVariables().get(personaId); + step.getScenario().getResidentTemplatePaths().clear();// step.getScenario().getResidentTemplatePaths().clear(); + } else { personaIdValue = PacketUtility.getParamsFromArg(personaId, "@@"); for (String id : personaIdValue.stringPropertyNames()) { String value = personaIdValue.get(id).toString(); - if (step.getScenario().getResidentPersonaIdPro().get(value) == null) - {this.hasError=true;throw new RigInternalError("Persona id : [" + value + "] is not present is the system"); - } - personaPath = step.getScenario().getResidentPersonaIdPro().get(value).toString(); + if (step.getScenario().getResidentPersonaIdPro().get(value) == null) { + this.hasError = true; + throw new RigInternalError("Persona id : [" + value + "] is not present is the system"); + } + personaPath = step.getScenario().getResidentPersonaIdPro().get(value).toString(); } - + } step.getScenario().getResidentTemplatePaths().put(personaPath, null); } JSONArray resp = packetUtility.getTemplate(step.getScenario().getResidentTemplatePaths().keySet(), process, - step.getScenario().getCurrentStep(), step, qualityScore,genarateValidCbeff); + step.getScenario().getCurrentStep(), step, qualityScore, genarateValidCbeff); for (int i = 0; i < resp.length(); i++) { JSONObject obj = resp.getJSONObject(i); String id = obj.get("id").toString(); String tempFilePath = obj.get("path").toString(); - if(step.getOutVarName()!=null) - step.getScenario().getVariables().put(step.getOutVarName(), tempFilePath); + if (step.getOutVarName() != null) + step.getScenario().getVariables().put(step.getOutVarName(), tempFilePath); for (String residentPath : step.getScenario().getResidentTemplatePaths().keySet()) { if (residentPath.contains(id)) { step.getScenario().getResidentTemplatePaths().put(residentPath, tempFilePath); @@ -81,10 +86,10 @@ public void run() throws RigInternalError { } for (String residentPath : step.getScenario().getResidentTemplatePaths().keySet()) { - if (step.getScenario().getResidentTemplatePaths().get(residentPath) == null) - { - this.hasError=true;throw new RigInternalError("Unable to get packetTemplate from packet utility"); - } + if (step.getScenario().getResidentTemplatePaths().get(residentPath) == null) { + this.hasError = true; + throw new RigInternalError("Unable to get packetTemplate from packet utility"); + } } } diff --git a/mosip-acceptance-tests/ivv-orchestrator/src/main/java/io/mosip/testrig/dslrig/ivv/orchestrator/Orchestrator.java b/mosip-acceptance-tests/ivv-orchestrator/src/main/java/io/mosip/testrig/dslrig/ivv/orchestrator/Orchestrator.java index cf6e047c..c222183c 100644 --- a/mosip-acceptance-tests/ivv-orchestrator/src/main/java/io/mosip/testrig/dslrig/ivv/orchestrator/Orchestrator.java +++ b/mosip-acceptance-tests/ivv-orchestrator/src/main/java/io/mosip/testrig/dslrig/ivv/orchestrator/Orchestrator.java @@ -68,7 +68,8 @@ public class Orchestrator { public static Boolean beforeSuiteFailed = false; public static Boolean beforeSuiteExeuted = false; public static final Object lock = new Object(); - + public static long suiteStartTime = System.currentTimeMillis(); + public static long suiteMaxTimeInMillis = 7200000; // 2 hour in milliseconds static AtomicInteger counterLock = new AtomicInteger(0); // enable fairness policy private HashMap packages = new HashMap() { @@ -90,6 +91,7 @@ public class Orchestrator { @BeforeSuite public void beforeSuite() { + this.properties = Utils.getProperties(TestRunner.getExternalResourcePath() + "/config/config.properties"); Utils.setupLogger(System.getProperty("user.dir") + "/" + System.getProperty("testng.outpur.dir") + "/" + this.properties.getProperty("ivv._path.auditlog")); @@ -110,7 +112,6 @@ public void beforeSuite() { htmlReporter = new ExtentHtmlReporter(BaseTestCaseUtil.getExtentReportName()); - ; extent = new ExtentReports(); extent.attachReporter(htmlReporter); @@ -286,6 +287,12 @@ private void run(int i, Scenario scenario, HashMap configs, Hash // Wait till all scenarios are executed while (counterLock.get() < totalScenario - 1) // executed excluding after suite { + long currentTime = System.currentTimeMillis(); + if (currentTime - suiteStartTime >= suiteMaxTimeInMillis) { + logger.error("Exhausted the maximum suite execution time.Hence, terminating the execution"); + break; + } + logger.info(" Thread ID: " + Thread.currentThread().getId() + " inside scenariosExecuted " + counterLock.get() + "- " + scenario.getId()); Thread.sleep(10000); // Sleep for 10 sec diff --git a/mosip-acceptance-tests/ivv-orchestrator/src/main/java/io/mosip/testrig/dslrig/ivv/orchestrator/PacketUtility.java b/mosip-acceptance-tests/ivv-orchestrator/src/main/java/io/mosip/testrig/dslrig/ivv/orchestrator/PacketUtility.java index 4e3ef53b..0a3f2995 100644 --- a/mosip-acceptance-tests/ivv-orchestrator/src/main/java/io/mosip/testrig/dslrig/ivv/orchestrator/PacketUtility.java +++ b/mosip-acceptance-tests/ivv-orchestrator/src/main/java/io/mosip/testrig/dslrig/ivv/orchestrator/PacketUtility.java @@ -65,7 +65,7 @@ public class PacketUtility extends BaseTestCaseUtil { static Logger logger = Logger.getLogger(PacketUtility.class); - + static { if (ConfigManager.IsDebugEnabled()) logger.setLevel(Level.ALL); @@ -132,7 +132,7 @@ public class PacketUtility extends BaseTestCaseUtil { private static final String REQUEST = "request"; private static final String REQUESTTIME = "requesttime"; private static final String VERSION = "version"; - public static String appointmentDate =""; + public static String appointmentDate = ""; public List generateResidents(int n, Boolean bAdult, Boolean bSkipGuardian, String gender, String missFields, HashMap contextKey, Scenario.Step step) throws RigInternalError { @@ -187,12 +187,10 @@ public Response generateResident(int n, String ageCategory, Boolean bSkipGuardia } if (ageCategory.equalsIgnoreCase("senior")) { residentAttrib.put("Age", "RA_Senior"); - } - else if (ageCategory.equalsIgnoreCase("minor")) { + } else if (ageCategory.equalsIgnoreCase("minor")) { residentAttrib.put("Age", "RA_Minor"); residentAttrib.put(SKIPGAURDIAN, bSkipGuardian); - } - else if (ageCategory.equalsIgnoreCase("infant")) { + } else if (ageCategory.equalsIgnoreCase("infant")) { residentAttrib.put("Age", "RA_Infant"); residentAttrib.put(SKIPGAURDIAN, bSkipGuardian); } @@ -218,7 +216,6 @@ public JSONArray getTemplate(Set resPath, String process, HashMap resPath, String process, HashMap String url = baseUrl + "/prereg/appointment/" + prid + "/" + nthSlot + "/" + bookOnHolidays; JSONObject jsonReq = new JSONObject(); Response response = postRequest(url, jsonReq.toString(), "BookAppointment", step); - GlobalMethods.ReportRequestAndResponse("","",url, jsonReq.toString(), response.getBody().asString()); + GlobalMethods.ReportRequestAndResponse("", "", url, jsonReq.toString(), response.getBody().asString()); if (!response.getBody().asString().toLowerCase().contains("appointment booked successfully")) { this.hasError = true; logger.info("bookAppointment Response is:" + response + " url: " + url); throw new RigInternalError("Unable to BookAppointment from packet utility"); } - - String json = response.getBody().asString(); - - JSONObject jsonObject = new JSONObject(json); - appointmentDate = jsonObject.getString("appointmentDate"); - step.getScenario().getVidPersonaProp().put("appointmentDate", appointmentDate); - - //JSONObject responseObject = response.getJSONObject("response"); - //JSONArray data = responseObject.getJSONArray("locations"); - - //appointmentDate =response.getBody(). + + String json = response.getBody().asString(); + + JSONObject jsonObject = new JSONObject(json); + appointmentDate = jsonObject.getString("appointmentDate"); + step.getScenario().getVidPersonaProp().put("appointmentDate", appointmentDate); + + // JSONObject responseObject = response.getJSONObject("response"); + // JSONArray data = responseObject.getJSONArray("locations"); + + // appointmentDate =response.getBody(). return response.getBody().asString(); } @@ -365,11 +362,11 @@ public String generateAndUploadPacket(String prid, String packetPath, HashMapGenerated GuardianPacket with Rid: " + rid + " And linked to child "); if (!response.getBody().asString().toLowerCase().contains(SUCCESS)) { this.hasError = true; @@ -502,7 +499,7 @@ public String updateResidentGuardian(String residentFilePath, Scenario.Step step Response response = postRequest(url, jsonwrapper.toString(), "Update Resident Guardian", step); Reporter.log("Generated GuardianPacket with Rid: " + step.getScenario().getRid_updateResident() + " And linked to child "); - GlobalMethods.ReportRequestAndResponse("","",url, jsonwrapper.toString(), response.getBody().asString()); + GlobalMethods.ReportRequestAndResponse("", "", url, jsonwrapper.toString(), response.getBody().asString()); if (!response.getBody().asString().toLowerCase().contains(SUCCESS)) { this.hasError = true; throw new RigInternalError("Unable to update Resident Guardian from packet utility"); @@ -548,7 +545,7 @@ else if (withRidOrUin.equalsIgnoreCase("uin")) { jsonReq.put(PR_RESIDENTLIST, residentAttrib); jsonwrapper.put(REQUESTS, jsonReq); Response response = postRequest(url, jsonwrapper.toString(), "Update Resident Guardian", step); - GlobalMethods.ReportRequestAndResponse("","",url, jsonwrapper.toString(), response.getBody().asString()); + GlobalMethods.ReportRequestAndResponse("", "", url, jsonwrapper.toString(), response.getBody().asString()); if (!response.getBody().asString().toLowerCase().contains(SUCCESS)) { this.hasError = true; throw new RigInternalError("Unable to update Resident Guardian from packet utility"); @@ -572,7 +569,7 @@ public String updateResidentWithGuardianSkippingPreReg(String guardianPersonaFil jsonwrapper.put(REQUESTS, jsonReq); String url = baseUrl + props.getProperty(UPDATERESIDENTURL); Response response = postRequest(url, jsonwrapper.toString(), "Update Resident Guardian", step); - GlobalMethods.ReportRequestAndResponse("","",url, jsonwrapper.toString(), response.getBody().asString()); + GlobalMethods.ReportRequestAndResponse("", "", url, jsonwrapper.toString(), response.getBody().asString()); if (!response.getBody().asString().toLowerCase().contains(SUCCESS)) { this.hasError = true; throw new RigInternalError("Unable to update Resident Guardian from packet utility"); @@ -654,7 +651,7 @@ public String createContext(String key, String baseUrl, Scenario.Step step) thro jsonReq.put(MOSIP_TEST_REGCLIENT_SUPERVISORID, E2EConstants.SUPERVISOR_ID); jsonReq.put(PREREG_PRECONFIGUREDOTP, E2EConstants.PRECONFIGURED_OTP); Response response = postRequest(url, jsonReq.toString(), SETCONTEXT, step); - GlobalMethods.ReportRequestAndResponse("","",url, jsonReq.toString(), response.getBody().asString()); + GlobalMethods.ReportRequestAndResponse("", "", url, jsonReq.toString(), response.getBody().asString()); if (!response.getBody().asString().toLowerCase().contains("true")) { this.hasError = true; throw new RigInternalError("Unable to set context from packet utility"); @@ -724,7 +721,7 @@ public String createContexts(String key, String userAndMachineDetailParam, Strin jsonReq.put("mosip.version", mosipVersion); } Response response = postRequest(url, jsonReq.toString(), SETCONTEXT, step); - GlobalMethods.ReportRequestAndResponse("","",url, jsonReq.toString(), response.getBody().asString()); + GlobalMethods.ReportRequestAndResponse("", "", url, jsonReq.toString(), response.getBody().asString()); if (!response.getBody().asString().toLowerCase().contains("true")) { this.hasError = true; throw new RigInternalError("Unable to set context from packet utility"); @@ -735,8 +732,9 @@ public String createContexts(String key, String userAndMachineDetailParam, Strin public String createContexts(String negative, String key, HashMap map, String mosipVersion, - Boolean generatePrivateKey, String status, String envbaseUrl, Scenario.Step step, boolean invalidCertFlag,String consent,boolean changeSupervisorNameToDiffCase,String invalidEncryptedHashFlag, String invalidCheckSum) - throws RigInternalError { + Boolean generatePrivateKey, String status, String envbaseUrl, Scenario.Step step, boolean invalidCertFlag, + String consent, boolean changeSupervisorNameToDiffCase, String invalidEncryptedHashFlag, + String invalidCheckSum) throws RigInternalError { String url = this.baseUrl + "/context/server"; // this.baseUrl + "/context/server/" + key?contextKey=Ckey logger.info("packet utility base url : " + url); @@ -757,7 +755,7 @@ public String createContexts(String negative, String key, HashMap attributeLi : arr[1].trim() + "@mosip.io") : arr[1].trim())); } - // Pass phone and email as empty + // Pass phone and email as empty else { - String key = arr[0].trim(); - updateAttribute.put(key, ""); - } + String key = arr[0].trim(); + updateAttribute.put(key, ""); + } } jsonReqInner.put("updateAttributeList", updateAttribute); } @@ -1012,7 +1011,7 @@ public void updateBioException(String resFilePath, List exceptionatt, Sc logger.info(jsonObject.toString()); Response response = putRequestWithBody(url, jsonObject.toString(), step); - GlobalMethods.ReportRequestAndResponse("","",url, jsonObject.toString(), response.getBody().asString()); + GlobalMethods.ReportRequestAndResponse("", "", url, jsonObject.toString(), response.getBody().asString()); if (!(response.getStatusCode() == 200)) { this.hasError = true; throw new RigInternalError("Unable to update bio exception from packet utility"); @@ -1031,11 +1030,9 @@ public String packetSync(String personaPath, HashMap map, Scenar if (expectedToPass == false) { if (response.getBody().asString().contains("RPR-PKR-016")) { return response.getBody().asString(); - } - else if (response.getBody().asString().contains("RPR-PKR-009")) { + } else if (response.getBody().asString().contains("RPR-PKR-009")) { return response.getBody().asString(); - } - else { + } else { this.hasError = true; throw new RigInternalError("Unable to do sync packet from packet utility"); } @@ -1143,7 +1140,7 @@ public String retrieveBiometric(String resFilePath, List retriveAttribut JSONArray jsonReq = new JSONArray(); jsonReq.put(0, jsonReqInner); Response response = getReqest(url, jsonReq.toString(), "Retrive BiometricData", step); - GlobalMethods.ReportRequestAndResponse("","",url, jsonReq.toString(), response.getBody().asString()); + GlobalMethods.ReportRequestAndResponse("", "", url, jsonReq.toString(), response.getBody().asString()); if (response.getBody().asString().equals("")) { this.hasError = true; throw new RigInternalError( @@ -1166,16 +1163,16 @@ private Response getRequestWithbody(String url, String body, String contentHeade logger.info("RESSURED: Sending a GET request to " + url); logger.info("REQUEST: Sending a GET request to " + url); url = addContextToUrl(url, step); - Response getResponse =null; + Response getResponse = null; if (ConfigManager.IsDebugEnabled()) { - getResponse = given().relaxedHTTPSValidation().accept("*/*").contentType("application/json").log() - .all().when().body(body).get(url).then().extract().response(); + getResponse = given().relaxedHTTPSValidation().accept("*/*").contentType("application/json").log().all() + .when().body(body).get(url).then().extract().response(); logger.info("REST-ASSURED: The response Time is: " + getResponse.time()); + } else { + getResponse = given().relaxedHTTPSValidation().accept("*/*").contentType("application/json").when() + .body(body).get(url).then().extract().response(); } - else { - getResponse = given().relaxedHTTPSValidation().accept("*/*").contentType("application/json").when().body(body).get(url).then().extract().response(); - } - GlobalMethods.ReportRequestAndResponse("","",url, body, getResponse.getBody().asString()); + GlobalMethods.ReportRequestAndResponse("", "", url, body, getResponse.getBody().asString()); return getResponse; } @@ -1249,7 +1246,7 @@ public void setMockabisExpectaion(JSONArray jsonreq, HashMap con String url = baseUrl + props.getProperty("mockAbis"); Response response = postRequestWithQueryParamAndBody(url, jsonreq.toString(), contextKey, "Mockabis Expectaion", step); - GlobalMethods.ReportRequestAndResponse("","",url, jsonreq.toString(), response.getBody().asString()); + GlobalMethods.ReportRequestAndResponse("", "", url, jsonreq.toString(), response.getBody().asString()); logger.info("****" + response.getBody().asString()); if (!response.getBody().asString().toLowerCase().contains(SUCCESS)) { this.hasError = true; @@ -1271,16 +1268,15 @@ public Boolean updateMachineDetail(JSONObject jsonPutReq, String token, String s String url = System.getProperty(ENV_ENDPOINT) + props.getProperty("getMachine"); Response puttResponse = putReqestWithCookiesAndBody(url, jsonPutReq.toString(), token, "Update machine detail with status[isActive=" + status + "]", step); - - GlobalMethods.ReportRequestAndResponse("","",url, jsonPutReq.toString(), puttResponse.getBody().asString()); - + + GlobalMethods.ReportRequestAndResponse("", "", url, jsonPutReq.toString(), puttResponse.getBody().asString()); + if (puttResponse.getBody().asString().toLowerCase().contains(ERRORCODE)) { logger.error("unable to update machine detail"); this.hasError = true; throw new RigInternalError("unable to update machine detail"); } - - + JSONObject jsonResp = new JSONObject(puttResponse.getBody().asString()); Boolean isActive = jsonResp.getJSONObject(RESPONSE).getBoolean(ISACTIVE); return isActive; @@ -1288,73 +1284,66 @@ public Boolean updateMachineDetail(JSONObject jsonPutReq, String token, String s public Response putReqestWithCookiesAndBody(String url, String body, String token, String opsToLog, Scenario.Step step) { - - Response puttResponse =null; + + Response puttResponse = null; if (ConfigManager.IsDebugEnabled()) { puttResponse = given().relaxedHTTPSValidation().body(body).contentType(MediaType.APPLICATION_JSON) .accept("*/*").log().all().when().cookie(AUTHORIZATION, token).put(url).then().log().all().extract() .response(); - } - else { + } else { puttResponse = given().relaxedHTTPSValidation().body(body).contentType(MediaType.APPLICATION_JSON) - .accept("*/*").when().cookie(AUTHORIZATION, token).put(url).then().extract() - .response(); + .accept("*/*").when().cookie(AUTHORIZATION, token).put(url).then().extract().response(); } - - GlobalMethods.ReportRequestAndResponse("","",url, body, puttResponse.getBody().asString()); - + + GlobalMethods.ReportRequestAndResponse("", "", url, body, puttResponse.getBody().asString()); + return puttResponse; } public Response postReqestWithCookiesAndBody(String url, String body, String token, String opsToLog) { - Response posttResponse =null; + Response posttResponse = null; if (ConfigManager.IsDebugEnabled()) { - posttResponse = given().relaxedHTTPSValidation().body(body).contentType(MediaType.APPLICATION_JSON) - .accept("*/*").log().all().when().cookie(AUTHORIZATION, token).post(url).then().log().all().extract() - .response(); - } - else { - posttResponse = given().relaxedHTTPSValidation().body(body).contentType(MediaType.APPLICATION_JSON) - .accept("*/*").when().cookie(AUTHORIZATION, token).post(url).then().extract() - .response(); + posttResponse = given().relaxedHTTPSValidation().body(body).contentType(MediaType.APPLICATION_JSON) + .accept("*/*").log().all().when().cookie(AUTHORIZATION, token).post(url).then().log().all() + .extract().response(); + } else { + posttResponse = given().relaxedHTTPSValidation().body(body).contentType(MediaType.APPLICATION_JSON) + .accept("*/*").when().cookie(AUTHORIZATION, token).post(url).then().extract().response(); } - GlobalMethods.ReportRequestAndResponse("","",url, body, posttResponse.getBody().asString()); - + GlobalMethods.ReportRequestAndResponse("", "", url, body, posttResponse.getBody().asString()); + return posttResponse; } public Response patchReqestWithCookiesAndBody(String url, String body, String token, String opsToLog) { - Response puttResponse =null; + Response puttResponse = null; if (ConfigManager.IsDebugEnabled()) { - puttResponse = given().relaxedHTTPSValidation().body(body).contentType(MediaType.APPLICATION_JSON) - .accept("*/*").log().all().when().cookie(AUTHORIZATION, token).patch(url).then().log().all().extract() - .response(); - } - else { - puttResponse = given().relaxedHTTPSValidation().body(body).contentType(MediaType.APPLICATION_JSON) - .accept("*/*").when().cookie(AUTHORIZATION, token).patch(url).then().extract() - .response(); + puttResponse = given().relaxedHTTPSValidation().body(body).contentType(MediaType.APPLICATION_JSON) + .accept("*/*").log().all().when().cookie(AUTHORIZATION, token).patch(url).then().log().all() + .extract().response(); + } else { + puttResponse = given().relaxedHTTPSValidation().body(body).contentType(MediaType.APPLICATION_JSON) + .accept("*/*").when().cookie(AUTHORIZATION, token).patch(url).then().extract().response(); } - GlobalMethods.ReportRequestAndResponse("","",url, body, puttResponse.getBody().asString()); - return puttResponse; + GlobalMethods.ReportRequestAndResponse("", "", url, body, puttResponse.getBody().asString()); + return puttResponse; } public Response patchRequestWithQueryParm(String url, HashMap queryParam, String token, String opsToLog) { - - Response patchResponse =null; + + Response patchResponse = null; if (ConfigManager.IsDebugEnabled()) { patchResponse = given().relaxedHTTPSValidation().queryParams(queryParam) - .contentType(MediaType.APPLICATION_JSON).cookie(AUTHORIZATION, token).accept("*/*").log().all().when() - .patch(url).then().log().all().extract().response(); - } - else { + .contentType(MediaType.APPLICATION_JSON).cookie(AUTHORIZATION, token).accept("*/*").log().all() + .when().patch(url).then().log().all().extract().response(); + } else { patchResponse = given().relaxedHTTPSValidation().queryParams(queryParam) .contentType(MediaType.APPLICATION_JSON).cookie(AUTHORIZATION, token).accept("*/*").when() .patch(url).then().extract().response(); } - GlobalMethods.ReportRequestAndResponse("","",url, "", patchResponse.getBody().asString()); + GlobalMethods.ReportRequestAndResponse("", "", url, "", patchResponse.getBody().asString()); return patchResponse; } @@ -1380,8 +1369,8 @@ public Boolean remapDevice(String jsonInput, String token, String value, String JSONObject jsonPutReq = requestBuilderDeviceRemap(jsonInput, zoneCode, regCenterId); Response response = putReqestWithCookiesAndBody(PUTUSERURL, JSONValue.toJSONString(jsonPutReq), token, "Remap device to different registration center", step); - GlobalMethods.ReportRequestAndResponse("","",PUTUSERURL, "", response.getBody().asString()); - + GlobalMethods.ReportRequestAndResponse("", "", PUTUSERURL, "", response.getBody().asString()); + return JsonPrecondtion.getValueFromJson(response.getBody().asString(), "response.regCenterId") .equals(regCenterId) ? true : false; } @@ -1394,8 +1383,8 @@ public String remapMachine(String jsonInput, String token, String regCenterId, S String url = System.getProperty(ENV_ENDPOINT) + props.getProperty("getRegistrationCenter") + regCenterId + "/eng"; Response getResponse = getRequestWithCookiesAndPathParam(url, token, "Get zoneCode by regCenterId"); - GlobalMethods.ReportRequestAndResponse("","",url, "", getResponse.getBody().asString()); - + GlobalMethods.ReportRequestAndResponse("", "", url, "", getResponse.getBody().asString()); + if (getResponse.getBody().asString().toLowerCase().contains(ERRORCODE)) { logger.error("zoneCode not found for :[" + regCenterId + "]"); this.hasError = true; @@ -1454,9 +1443,9 @@ private JSONObject requestBuilderDeviceRemap(String jsonInput, String zoneCode, } public Response getRequestWithCookiesAndPathParam(String url, String token, String opsToLog) { - Response getResponse = given().relaxedHTTPSValidation().cookie(AUTHORIZATION, token).log().all().when().get(url) + Response getResponse = given().relaxedHTTPSValidation().cookie(AUTHORIZATION, token).log().all().when().get(url) .then().log().all().extract().response(); - + return getResponse; } @@ -1511,9 +1500,9 @@ public Boolean activateDeActiveRegCenter(String jsonInput, String id, String loc String url = System.getProperty(ENV_ENDPOINT) + props.getProperty("getRegistrationCenter"); Response puttResponse = putReqestWithCookiesAndBody(url, jsonPutReq.toString(), token, "Update RegCenter details with status[isActive=]" + status, step); - - GlobalMethods.ReportRequestAndResponse("","",url, "", puttResponse.getBody().asString()); - + + GlobalMethods.ReportRequestAndResponse("", "", url, "", puttResponse.getBody().asString()); + if (puttResponse.getBody().asString().toLowerCase().contains(ERRORCODE)) { logger.error("unable to update RegCenter detail"); this.hasError = true; @@ -1575,8 +1564,8 @@ private String updateToRemapMachine(JSONObject jsonPutReq, String token, Scenari String url = System.getProperty(ENV_ENDPOINT) + props.getProperty("putMachineToRemap"); Response puttResponse = putReqestWithCookiesAndBody(url, jsonPutReq.toString(), token, "Update machine detail", step); - GlobalMethods.ReportRequestAndResponse("","",url, jsonPutReq.toString(), puttResponse.getBody().asString()); - + GlobalMethods.ReportRequestAndResponse("", "", url, jsonPutReq.toString(), puttResponse.getBody().asString()); + if (puttResponse.getBody().asString().toLowerCase().contains(ERRORCODE)) { logger.error("unable to update machine detail"); this.hasError = true; @@ -1589,8 +1578,8 @@ private String updateToRemapMachine(JSONObject jsonPutReq, String token, Scenari private String updateToRemapUser(String url, String token, Scenario.Step step) throws RigInternalError { Response puttResponse = putReqestWithCookiesAndNoBody(url, token, "Update user detail", step); - GlobalMethods.ReportRequestAndResponse("","",url, "", puttResponse.getBody().asString()); - + GlobalMethods.ReportRequestAndResponse("", "", url, "", puttResponse.getBody().asString()); + if (puttResponse.getBody().asString().toLowerCase().contains(ERRORCODE)) { logger.error("unable to update user detail"); this.hasError = true; @@ -1602,17 +1591,16 @@ private String updateToRemapUser(String url, String token, Scenario.Step step) t } public Response putReqestWithCookiesAndNoBody(String url, String token, String opsToLog, Scenario.Step step) { - Response puttResponse=null; + Response puttResponse = null; if (ConfigManager.IsDebugEnabled()) { - puttResponse = given().relaxedHTTPSValidation().contentType(MediaType.APPLICATION_JSON).accept("*/*") - .log().all().when().cookie(AUTHORIZATION, token).put(url).then().log().all().extract().response(); - } - else { - puttResponse = given().relaxedHTTPSValidation().contentType(MediaType.APPLICATION_JSON).accept("*/*") - .when().cookie(AUTHORIZATION, token).put(url).then().extract().response(); + puttResponse = given().relaxedHTTPSValidation().contentType(MediaType.APPLICATION_JSON).accept("*/*").log() + .all().when().cookie(AUTHORIZATION, token).put(url).then().log().all().extract().response(); + } else { + puttResponse = given().relaxedHTTPSValidation().contentType(MediaType.APPLICATION_JSON).accept("*/*").when() + .cookie(AUTHORIZATION, token).put(url).then().extract().response(); } - GlobalMethods.ReportRequestAndResponse("","",url, "", puttResponse.getBody().asString()); - + GlobalMethods.ReportRequestAndResponse("", "", url, "", puttResponse.getBody().asString()); + return puttResponse; } diff --git a/mosip-acceptance-tests/ivv-orchestrator/src/main/resources/config/scenarios.json b/mosip-acceptance-tests/ivv-orchestrator/src/main/resources/config/scenarios.json new file mode 100644 index 00000000..5e093a49 --- /dev/null +++ b/mosip-acceptance-tests/ivv-orchestrator/src/main/resources/config/scenarios.json @@ -0,0 +1,4019 @@ +[ + { + "tc_no": "0", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "NA", + "group_name": "NA", + "description": "Before Suite setup", + "step0": "e2e_User(ADD_User,masterdata-0@@Techno@123)", + "step1": "e2e_User(ADD_User,0@@Techno@123)", + "step2": "$$user1=e2e_User(ADD_User,1@@Techno@123)", + "step3": "$$center1=e2e_Center(CREATE,$$user1,1,T)", + "step4": "$$details1=e2e_Machine(CREATE,$$center1,1)", + "step5": "$$details1=e2e_User(DELETE_CENTERMAPPING,1@@Techno@123,$$details1)", + "step6": "$$details1=e2e_User(CREATE_ZONESEARCH,$$details1)", + "step7": "e2e_wait(10)", + "step8": "e2e_User(DELETE_ZONEMAPPING,$$details1)", + "step9": "e2e_User(CREATE_ZONEMAPPING,$$details1)", + "step10": "e2e_User(ACTIVATE_ZONEMAPPING,$$details1,t)", + "step11": "e2e_User(CREATE_CENTERMAPPING,$$details1,1)", + "step12": "e2e_User(ACTIVATE_CENTERMAPPING,$$details1,T)", + "step13": "e2e_WritePreReq($$details1,1)", + "step14": "$$user2=e2e_User(ADD_User,2@@Techno@123)", + "step15": "$$center2=e2e_Center(CREATE,$$user2,2,T)", + "step16": "$$details1=e2e_ReadPreReq(1)", + "step17": "e2e_setContext(env_context,$$details1,1@@2,true)", + "step18": "e2e_wait(60)", + "step19": "$$details2=e2e_Machine(CREATE,$$center2,2)", + "step20": "$$details2=e2e_User(DELETE_CENTERMAPPING,2@@Techno@123,$$details2)", + "step21": "$$details2=e2e_User(CREATE_ZONESEARCH,$$details2)", + "step22": "e2e_wait(10)", + "step23": "e2e_User(DELETE_ZONEMAPPING,$$details2)", + "step24": "e2e_User(CREATE_ZONEMAPPING,$$details2)", + "step25": "e2e_User(ACTIVATE_ZONEMAPPING,$$details2,t)", + "step26": "e2e_User(CREATE_CENTERMAPPING,$$details2,2)", + "step27": "e2e_User(ACTIVATE_CENTERMAPPING,$$details2,T)", + "step28": "e2e_WritePreReq($$details2,2)", + "step29": "$$user3=e2e_User(ADD_User,3@@Techno@123)", + "step30": "$$center3=e2e_Center(CREATE,$$user3,3,T)", + "step31": "$$details3=e2e_Machine(CREATE,$$center3,3)", + "step32": "$$details1=e2e_User(DELETE_CENTERMAPPING,3@@Techno@123,$$details3)", + "step33": "$$details3=e2e_User(CREATE_ZONESEARCH,$$details3)", + "step34": "e2e_wait(10)", + "step35": "e2e_User(DELETE_ZONEMAPPING,$$details3)", + "step36": "e2e_User(CREATE_ZONEMAPPING,$$details3)", + "step37": "e2e_User(ACTIVATE_ZONEMAPPING,$$details3,t)", + "step38": "e2e_User(CREATE_CENTERMAPPING,$$details3,3)", + "step39": "e2e_User(ACTIVATE_CENTERMAPPING,$$details3,T)", + "step40": "e2e_WritePreReq($$details3,3)", + "step41": "e2e_GenerateAuthCertifcates()" + }, + { + "tc_no": "1", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Adult_New", + "description": "Resident booked pre-registration with support documents. walk-ins to registration center completes the process and gets UIN card", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "e2e_sendOtp($$personaFilePath)", + "step7": "e2e_validateOtp($$personaFilePath)", + "step8": "$$prid=e2e_preRegister($$personaFilePath)", + "step9": "e2e_uploadDocuments($$personaFilePath,$$prid)", + "step10": "e2e_updatePreRegStatus(0,$$prid,valid)", + "step11": "e2e_bookAppointment(false,$$prid,1)", + "step12": "$$rid=e2e_generateAndUploadPacket($$prid,$$templatePath)", + "step13": "e2e_checkStatus(processed,$$rid)", + "step14": "$$uin=e2e_getUINByRid($$rid)", + "step15": "e2e_CheckRIDStage($$rid,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "2", + "tags": "Postive_Test", + "persona_class": "ResidentFemaleAdult", + "persona": "ResidentFemaleAdult", + "group_name": "Adult_New", + "description": "Resident walk-ins to registration center completes the process and gets UIN card", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Female)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_CheckRIDStage($$rid,PRINT_SERVICE,PROCESSED)", + "step10": "e2e_CheckTags($$rid)" + }, + { + "tc_no": "4", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Adult_Update", + "description": "Resident walk-ins to registration center completes the process and gets UIN card. Later updates biometrics and downloads UIN card", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_wait(90)", + "step10": "e2e_updateDemoOrBioDetails(finger,0,0,$$personaFilePath)", + "step11": "e2e_updateResidentWithUIN($$personaFilePath,$$uin)", + "step12": "$$updateTemplate=e2e_getPacketTemplate(UPDATE,$$personaFilePath)", + "step13": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$updateTemplate)", + "step14": "e2e_checkStatus(processed,$$rid2)", + "step15": "$$uin2=e2e_getUINByRid($$rid2)", + "step16": "e2e_wait(90)", + "step17": "$$email=e2e_getEmailByUIN($$uin2)", + "step18": "$$requestId=e2e_credentialRequest($$uin2,$$email)", + "step19": "e2e_checkCredentialStatus($$requestId)", + "step20": "e2e_downloadCard($$requestId)", + "step21": "e2e_CheckRIDStage($$rid,PRINT_SERVICE,PROCESSED)", + "step22": "e2e_CheckRIDStage($$rid2,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "5", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Minor_New", + "description": "Resident Minor Child walk-ins to registration center wants to get UIN without Guardian Details", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,minor,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(reregister,$$rid)", + "step8": "e2e_CheckRIDStage($$rid,INTRODUCER_VALIDATION,ERROR)" + }, + { + "tc_no": "6", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Minor_New", + "description": "Resident Minor Child walk-ins to registration center gets UIN with Guardian RID details", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$childPersona=e2e_getResidentData(1,minor,true,Male)", + "step5": "$$parentPersona=e2e_getResidentData(1,adult,false,Male)", + "step6": "$$parentTemplate=e2e_getPacketTemplate(NEW,$$parentPersona)", + "step7": "$$parentRid=e2e_generateAndUploadPacketSkippingPrereg($$parentPersona,$$parentTemplate)", + "step8": "e2e_checkStatus(processed,$$parentRid)", + "step9": "$$parentUin=e2e_getUINByRid($$parentRid)", + "step10": "e2e_updateResidentWithRID($$parentPersona,$$parentRid)", + "step11": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona,$$childPersona)", + "step12": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step13": "$$childRid=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$childTemplate)", + "step14": "e2e_checkStatus(processed,$$childRid)", + "step15": "$$childUin=e2e_getUINByRid($$childRid)", + "step16": "e2e_CheckRIDStage($$parentRid,PRINT_SERVICE,PROCESSED)", + "step17": "e2e_CheckRIDStage($$childRid,PRINT_SERVICE,PROCESSED)", + "step18": "e2e_CheckRIDStage($$childRid,VERIFICATION,SUCCESS)" + }, + { + "tc_no": "7", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Adult_New_Exception", + "description": "A differently abled resident with exception in left and right index finger walk-ins to registration center completes the process and gets UIN card", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "e2e_UpdateBioExceptionInPersona($$personaFilePath,Finger:Left IndexFinger@@Finger:Right IndexFinger)", + "step6": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step7": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step8": "e2e_checkStatus(processed,$$rid)", + "step9": "$$uin=e2e_getUINByRid($$rid)", + "step10": "e2e_CheckRIDStage($$rid,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "8", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "A differently abled resident walk-ins to registration center completes the process and gets UIN card. Later update his iris and downloads UIN card", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male,leftiris@@rightIris)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_wait(90)", + "step10": "e2e_updateDemoOrBioDetails(leftIris@@rigthIris,0,0,$$personaFilePath)", + "step11": "e2e_updateResidentWithUIN($$personaFilePath,$$uin)", + "step12": "$$updateTemplate=e2e_getPacketTemplate(UPDATE,$$personaFilePath)", + "step13": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$updateTemplate)", + "step14": "e2e_checkStatus(processed,$$rid2)", + "step15": "$$uin2=e2e_getUINByRid($$rid2)", + "step16": "e2e_wait(90)", + "step17": "$$email=e2e_getEmailByUIN($$uin2)", + "step18": "$$requestId=e2e_credentialRequest($$uin2,$$email)", + "step19": "e2e_checkCredentialStatus($$requestId)", + "step20": "e2e_downloadCard($$requestId)", + "step21": "e2e_CheckRIDStage($$rid2,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "9", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center wants to register his child with his RID. But the child packet will goes on hold as his packet got rejected", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$childPersona=e2e_getResidentData(1,minor,true,Male)", + "step5": "$$parentPersona=e2e_getResidentData(1,adult,true,Male,gender)", + "step6": "$$parentTemplate=e2e_getPacketTemplate(NEW,$$parentPersona)", + "step7": "$$parentRid=e2e_generateAndUploadPacketSkippingPrereg($$parentPersona,$$parentTemplate)", + "step8": "e2e_updateResidentWithRID($$parentPersona,$$parentRid)", + "step9": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona,$$childPersona)", + "step10": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step11": "$$childRid=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$childTemplate)", + "step12": "e2e_checkStatus(reregister,$$childRid)", + "step13": "e2e_CheckRIDStage($$parentRid,VALIDATE_PACKET,FAILED)", + "step14": "e2e_CheckRIDStage($$childRid,INTRODUCER_VALIDATION,ERROR)" + }, + { + "tc_no": "10", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card. Same resident tries to get another UIN again", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "$$modalityHashValue=e2e_getBioModalityHash(-1,Right IndexFinger@@Left LittleFinger,$$personaFilePath)", + "step10": "e2e_configureMockAbis(-1,Right IndexFinger,true,Right IndexFinger,$$personaFilePath,$$modalityHashValue,-1,@@Duplicate)", + "step11": "$$newTemplate=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step12": "$$ridLost=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$newTemplate)", + "step13": "e2e_postMockMv($$ridLost,REJECTED)", + "step14": "e2e_checkStatus(rejected,$$ridLost)", + "step15": "e2e_CheckRIDStage($$ridLost,MANUAL_ADJUDICATION,FAILED)" + }, + { + "tc_no": "11", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card. Same resident tries to get another UIN again with biometric exception", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "$$modalityHashValue=e2e_getBioModalityHash(-1,Right IndexFinger@@Left LittleFinger,$$personaFilePath)", + "step10": "e2e_configureMockAbis(-1,Right IndexFinger,true,Right IndexFinger,$$personaFilePath,$$modalityHashValue,-1,@@Duplicate)", + "step11": "e2e_UpdateBioExceptionInPersona($$personaFilePath,Iris:Left)", + "step12": "$$newTemplate=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step13": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$newTemplate)", + "step14": "e2e_postMockMv($$rid2,REJECTED)", + "step15": "e2e_checkStatus(rejected,$$rid2)", + "step16": "e2e_CheckRIDStage($$rid2,MANUAL_ADJUDICATION,FAILED)" + }, + { + "tc_no": "12", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center gives demo details of already registred another resident but different biometrics", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid1=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid1)", + "step8": "$$uin1=e2e_getUINByRid($$rid1)", + "step9": "e2e_wait(90)", + "step10": "$$email=e2e_getEmailByUIN($$uin1)", + "step11": "$$requestId=e2e_credentialRequest($$uin1,$$email)", + "step12": "e2e_wait(90)", + "step13": "e2e_checkCredentialStatus($$requestId)", + "step14": "e2e_downloadCard($$requestId)", + "step15": "$$modalityHashValue=e2e_getBioModalityHash(-1,Right IndexFinger@@Left LittleFinger,$$personaFilePath)", + "step16": "e2e_configureMockAbis(-1,Right IndexFinger,true,Right IndexFinger,$$personaFilePath,$$modalityHashValue,-1,@@Duplicate)", + "step17": "e2e_updateDemoOrBioDetails(0,face@@leftEye@@rightEye@@rightIndex@@rightLittle@@rightRing@@rightMiddle@@leftIndex@@leftLittle@@leftRing@@leftMiddle@@leftThumb@@rightThumb,0,$$personaFilePath)", + "step18": "$$newTemplate=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step19": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$newTemplate)", + "step20": "e2e_postMockMv($$rid2,REJECTED)", + "step21": "e2e_checkStatus(rejected,$$rid2)", + "step22": "e2e_CheckRIDStage($$rid2,MANUAL_ADJUDICATION,FAILED)" + }, + { + "tc_no": "13", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center tries register again by providing different demo details but same biometrics", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "$$modalityHashValue=e2e_getBioModalityHash(-1,Right IndexFinger@@Left LittleFinger,$$personaFilePath)", + "step10": "e2e_configureMockAbis(-1,Right IndexFinger,true,Right IndexFinger,$$personaFilePath,$$modalityHashValue,-1,@@Duplicate)", + "step11": "e2e_updateDemoOrBioDetails(0,0,name=AutomationName,$$personaFilePath)", + "step12": "e2e_updateResidentWithUIN($$personaFilePath,$$uin)", + "step13": "$$newTemplate=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step14": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$newTemplate)", + "step15": "e2e_checkStatus(reregister,$$rid2)", + "step16": "e2e_CheckRIDStage($$rid2,MANUAL_ADJUDICATION,SUCCESS)" + }, + { + "tc_no": "14", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center tries to retrieve UIN without providing biometrics", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male,face@@leftEye@@rightEye@@rightIndex@@rightLittle@@rightRing@@rightMiddle@@leftIndex@@leftLittle@@leftRing@@leftMiddle@@leftThumb@@rightThumb)", + "step5": "$$lostTemplate=e2e_getPacketTemplate(LOST,$$personaFilePath)", + "step6": "$$zipPacketPath=e2e_packetcreator(LOST,$$lostTemplate)", + "step7": "$$rid=e2e_ridsync(LOST,$$zipPacketPath)", + "step8": "e2e_packetsync($$zipPacketPath)", + "step9": "e2e_wait(90)", + "step10": "e2e_CheckRIDStage($$rid,VALIDATE_PACKET,FAILED)" + }, + { + "tc_no": "15", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card. Later updates his demo details in registration center and post successful processing downloads the EUIN using resident Portal", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_wait(90)", + "step10": "e2e_updateDemoOrBioDetails(0,0,gender=Male,$$personaFilePath)", + "step11": "e2e_updateResidentWithUIN($$personaFilePath,$$uin)", + "step12": "$$updateTemplate=e2e_getPacketTemplate(UPDATE,$$personaFilePath)", + "step13": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$updateTemplate)", + "step14": "e2e_checkStatus(processed,$$rid2)", + "step15": "$$uin2=e2e_getUINByRid($$rid2)", + "step16": "e2e_wait(90)", + "step17": "$$email=e2e_getEmailByUIN($$uin2)", + "step18": "$$requestId=e2e_credentialRequest($$uin2,$$email)", + "step19": "e2e_checkCredentialStatus($$requestId)", + "step20": "e2e_downloadCard($$requestId)", + "step21": "e2e_CheckRIDStage($$rid2,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "16", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "A non registered Resident walk-ins to registration center without UIN and tries to retrieve the UIN", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$lostTemplate=e2e_getPacketTemplate(LOST,$$personaFilePath)", + "step6": "$$zipPacketPath=e2e_packetcreator(LOST,$$lostTemplate)", + "step7": "$$rid=e2e_ridsync(LOST,$$zipPacketPath)", + "step8": "e2e_packetsync($$zipPacketPath)", + "step9": "e2e_wait(90)", + "step10": "e2e_CheckRIDStage($$rid,BIOGRAPHIC_VERIFICATION,FAILED)" + }, + { + "tc_no": "17", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card without providing documents", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male,POA@@POI@@POR@@POE@@POB)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "e2e_CheckRIDStage($$rid,PRINT_SERVICE,PROCESSED)" + }, +{ + "tc_no": "18", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center tries to get UIN without providing biometric", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male@@false@@false@@false)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(reregister,$$rid)", + "step8": "e2e_CheckRIDStage($$rid,VALIDATE_PACKET,FAILED)" + }, + { + "tc_no": "19", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center tries get Lost UIN without providing biometric", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_wait(90)", + "step10": "e2e_updateDemoOrBioDetails(0,leftIris@@rigthIris,0,$$personaFilePath)", + "step11": "$$lostTemplate=e2e_getPacketTemplate(LOST,$$personaFilePath)", + "step12": "$$zipPacketPath=e2e_packetcreator(LOST,$$lostTemplate)", + "step13": "$$lostRid=e2e_ridsync(LOST,$$zipPacketPath)", + "step14": "e2e_packetsync($$zipPacketPath)", + "step15": "e2e_wait(90)", + "step16": "e2e_CheckRIDStage($$lostRid,BIOGRAPHIC_VERIFICATION,FAILED)" + }, + { + "tc_no": "20", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Non-resident walk-ins to registration center completes the process gets UIN for him and his family", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "e2e_updateDemoOrBioDetails(0,0,langcode=eng@@residencestatus=NFR,$$personaFilePath)", + "step6": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step7": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step8": "e2e_checkStatus(processed,$$rid)", + "step9": "$$uin=e2e_getUINByRid($$rid)", + "step10": "e2e_CheckRIDStage($$rid,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "21", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center with his child and completes the process gets UIN cards for both", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$childPersona=e2e_getResidentData(1,minor,true,Male)", + "step5": "$$parentPersona=e2e_getResidentData(1,adult,false,Male)", + "step6": "$$parentTemplate=e2e_getPacketTemplate(NEW,$$parentPersona)", + "step7": "$$parentZipPacketPath=e2e_packetcreator(NEW,$$parentTemplate)", + "step8": "$$parentRid=e2e_ridsync(NEW,$$parentZipPacketPath)", + "step9": "e2e_updateResidentWithRID($$parentPersona,$$parentRid)", + "step10": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona,$$childPersona)", + "step11": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step12": "$$childZipPacketPath=e2e_packetcreator(NEW,$$childTemplate)", + "step13": "$$childRid=e2e_ridsync(NEW,$$childZipPacketPath)", + "step14": "e2e_bulkUploadPacket($$childZipPacketPath,$$parentZipPacketPath)", + "step15": "e2e_checkStatus(processed,$$parentRid,$$childRid,all)" + }, + { + "tc_no": "22", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident booked pre-registration with support documents. walk-ins to registration center completes the process and gets UIN card. Later performs bio authentication with face", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "e2e_sendOtp($$personaFilePath)", + "step7": "e2e_validateOtp($$personaFilePath)", + "step8": "$$prid=e2e_preRegister($$personaFilePath)", + "step9": "e2e_uploadDocuments($$personaFilePath,$$prid)", + "step10": "e2e_updatePreRegStatus(0,$$prid,valid)", + "step11": "e2e_bookAppointment(false,$$prid,2)", + "step12": "$$rid=e2e_generateAndUploadPacket($$prid,$$templatePath)", + "step13": "e2e_checkStatus(processed,$$rid)", + "step14": "$$uin=e2e_getUINByRid($$rid)", + "step15": "$$email=e2e_getEmailByUIN($$uin)", + "step16": "e2e_wait(90)", + "step17": "$$vid=e2e_generateVID(Perpetual,$$uin,$$email)", + "step18": "e2e_wait(90)", + "step19": "e2e_bioAuthentication(faceDevice,$$uin,$$vid,$$personaFilePath)", + "step20": "$$clientId=e2e_OidcClient()", + "step21": "$$transactionId1=e2e_OAuthDetailsRequest($$clientId,transactionId1)", + "step22": "$$transactionId2=e2e_OAuthDetailsRequest($$clientId,transactionId2)", + "step23": "e2e_BioEsignetAuthentication(faceDevice,$$uin,$$personaFilePath,$$transactionId1,$$vid,$$transactionId2)", + "step24": "e2e_UserInfo($$transactionId,$$clientId)" + }, + { + "tc_no": "23", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "A blind Resident walk-ins to registration center completes the process and gets UIN card. Later performs biometric authentication using left little finger", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "e2e_UpdateBioExceptionInPersona($$personaFilePath,Iris:Left@@Iris:Right)", + "step6": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step7": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step8": "e2e_checkStatus(processed,$$rid)", + "step9": "$$uin=e2e_getUINByRid($$rid)", + "step10": "$$email=e2e_getEmailByUIN($$uin)", + "step11": "e2e_wait(90)", + "step12": "$$vid=e2e_generateVID(Perpetual,$$uin,$$email)", + "step13": "e2e_wait(90)", + "step14": "e2e_bioAuthentication(leftLittleDevice,$$uin,$$vid,$$personaFilePath)", + "step15": "$$clientId=e2e_OidcClient()", + "step16": "$$transactionId1=e2e_OAuthDetailsRequest($$clientId,transactionId1)", + "step17": "$$transactionId2=e2e_OAuthDetailsRequest($$clientId,transactionId2)", + "step18": "e2e_BioEsignetAuthentication(leftLittleDevice,$$uin,$$personaFilePath,$$transactionId1,$$vid,$$transactionId2)", + "step19": "e2e_UserInfo($$transactionId,$$clientId)" + }, + { + "tc_no": "24", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card and generates Perpetual VID. Later performs biometric authentication using right finger both using UIN and VID. Also performs eSignet biometric authentication using right finger both using UIN and VID", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male,rightlittleFinger)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "$$email=e2e_getEmailByUIN($$uin)", + "step10": "e2e_wait(90)", + "step11": "$$vid=e2e_generateVID(Perpetual,$$uin,$$email)", + "step12": "e2e_wait(90)", + "step13": "e2e_bioAuthentication(rightThumbDevice,$$uin,$$vid,$$personaFilePath)", + "step14": "$$clientId=e2e_OidcClient()", + "step15": "$$transactionId1=e2e_OAuthDetailsRequest($$clientId,transactionId1)", + "step16": "$$transactionId2=e2e_OAuthDetailsRequest($$clientId,transactionId2)", + "step17": "e2e_BioEsignetAuthentication(rightThumbDevice,$$uin,$$personaFilePath,$$transactionId1,$$vid,$$transactionId2)", + "step18": "e2e_UserInfo($$transactionId,$$clientId)" + }, + { + "tc_no": "25", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card. Later updates both fnger.. face biometrics and does eKYC using face biometric", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_wait(90)", + "step10": "$$email1=e2e_getEmailByUIN($$uin)", + "step11": "$$requestId=e2e_credentialRequest($$uin,$$email1)", + "step12": "e2e_checkCredentialStatus($$requestId)", + "step13": "e2e_downloadCard($$requestId)", + "step14": "e2e_updateDemoOrBioDetails(leftIndex@@face,0,0,$$personaFilePath)", + "step15": "e2e_updateResidentWithUIN($$personaFilePath,$$uin)", + "step16": "$$updateTemplate=e2e_getPacketTemplate(UPDATE,$$personaFilePath)", + "step17": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$updateTemplate)", + "step18": "e2e_checkStatus(processed,$$rid2)", + "step19": "$$uin2=e2e_getUINByRid($$rid2)", + "step20": "$$email2=e2e_getEmailByUIN($$uin2)", + "step21": "e2e_wait(90)", + "step22": "$$vid=e2e_generateVID(Perpetual,$$uin2,$$email2)", + "step23": "e2e_wait(90)", + "step24": "e2e_ekycBio(faceDevice,$$uin2,$$vid,$$personaFilePath)" + }, + { + "tc_no": "26", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card and generates Perpetual VID. Later updates iris biometric and does eKYC using face biometric both using UIN and VID", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_wait(90)", + "step10": "$$email1=e2e_getEmailByUIN($$uin)", + "step11": "$$requestId=e2e_credentialRequest($$uin,$$email1)", + "step12": "e2e_checkCredentialStatus($$requestId)", + "step13": "e2e_downloadCard($$requestId)", + "step14": "e2e_updateDemoOrBioDetails(left,0,0,$$personaFilePath)", + "step15": "e2e_updateResidentWithUIN($$personaFilePath,$$uin)", + "step16": "$$updateTemplate=e2e_getPacketTemplate(UPDATE,$$personaFilePath)", + "step17": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$updateTemplate)", + "step18": "e2e_checkStatus(processed,$$rid2)", + "step19": "$$uin2=e2e_getUINByRid($$rid2)", + "step20": "$$email2=e2e_getEmailByUIN($$uin2)", + "step21": "e2e_wait(90)", + "step22": "$$vid=e2e_generateVID(Perpetual,$$uin2,$$email2)", + "step23": "e2e_wait(90)", + "step24": "e2e_ekycBio(faceDevice,$$uin2,$$vid,$$personaFilePath)" + }, + { + "tc_no": "27", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card. Later updates left index biometrics and does eKYC using face biometric", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_wait(90)", + "step10": "$$email1=e2e_getEmailByUIN($$uin)", + "step11": "$$requestId=e2e_credentialRequest($$uin,$$email1)", + "step12": "e2e_checkCredentialStatus($$requestId)", + "step13": "e2e_downloadCard($$requestId)", + "step14": "e2e_updateDemoOrBioDetails(leftIndex,0,0,$$personaFilePath)", + "step15": "e2e_updateResidentWithUIN($$personaFilePath,$$uin)", + "step16": "$$updateTemplate=e2e_getPacketTemplate(UPDATE,$$personaFilePath)", + "step17": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$updateTemplate)", + "step18": "e2e_checkStatus(processed,$$rid2)", + "step19": "$$uin2=e2e_getUINByRid($$rid2)", + "step20": "$$email2=e2e_getEmailByUIN($$uin2)", + "step21": "e2e_wait(90)", + "step22": "$$vid=e2e_generateVID(Perpetual,$$uin2,$$email2)", + "step23": "e2e_wait(90)", + "step24": "e2e_ekycBio(faceDevice,$$uin2,$$vid,$$personaFilePath)" + }, + { + "tc_no": "28", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card and generates Perpetual VID. Later updates his phone number and does EKYC with OTP both using UIN and VID", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_wait(90)", + "step10": "e2e_updateDemoOrBioDetails(0,0,phoneNumber=3938333736,$$personaFilePath)", + "step11": "e2e_updateResidentWithUIN($$personaFilePath,$$uin)", + "step12": "$$updateTemplate=e2e_getPacketTemplate(UPDATE,$$personaFilePath)", + "step13": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$updateTemplate)", + "step14": "e2e_checkStatus(processed,$$rid2)", + "step15": "$$uin2=e2e_getUINByRid($$rid2)", + "step16": "$$email=e2e_getEmailByUIN($$uin2)", + "step17": "e2e_wait(90)", + "step18": "$$vid=e2e_generateVID(Perpetual,$$uin2,$$email)", + "step19": "e2e_wait(90)", + "step20": "e2e_ekycOtp(uin,$$uin2,vid,$$vid,$$email)" + }, + { + "tc_no": "29", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card and generates Perpetual VID. Later updates his phone number address and performs OTP authentication both using UIN and VID. Also performs eSignet OTP authentication using right finger both using UIN and VID", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_wait(90)", + "step10": "e2e_updateDemoOrBioDetails(0,0,phoneNumber=3938333736,$$personaFilePath)", + "step11": "e2e_updateResidentWithUIN($$personaFilePath,$$uin)", + "step12": "$$updateTemplate=e2e_getPacketTemplate(UPDATE,$$personaFilePath)", + "step13": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$updateTemplate)", + "step14": "e2e_checkStatus(processed,$$rid2)", + "step15": "$$uin2=e2e_getUINByRid($$rid2)", + "step16": "$$email=e2e_getEmailByUIN($$uin2)", + "step17": "e2e_wait(90)", + "step18": "$$vid=e2e_generateVID(Perpetual,$$uin2,$$email)", + "step19": "e2e_wait(90)", + "step20": "e2e_otpAuthentication(uin,$$uin2,vid,$$vid,$$email)", + "step21": "$$clientId=e2e_OidcClient()", + "step22": "$$transactionId1=e2e_OAuthDetailsRequest($$clientId,transactionId1)", + "step23": "$$transactionId2=e2e_OAuthDetailsRequest($$clientId,transactionId2)", + "step24": "e2e_esignetAuthentication($$transactionId1,$$uin,OTP,$$email,$$vid,$$transactionId2)", + "step25": "e2e_UserInfo($$transactionId1,$$clientId)" + }, + { + "tc_no": "30", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card and generates Perpetual VID. Later performs multi factor authentication using face biometrics phone number and OTP both using UIN and VID", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "$$email=e2e_getEmailByUIN($$uin)", + "step10": "e2e_wait(90)", + "step11": "$$vid=e2e_generateVID(Perpetual,$$uin,$$email)", + "step12": "e2e_wait(90)", + "step13": "e2e_multiFactorAuthentication(faceDevice,dob,UIN,$$uin,$$personaFilePath,$$vid,$$email)" + }, + { + "tc_no": "31", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card and generates Perpetual VID. Later performs multi factor authentication using face biometrics date of birth and OTP both using UIN and VID", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "$$email=e2e_getEmailByUIN($$uin)", + "step10": "e2e_wait(90)", + "step11": "$$vid=e2e_generateVID(Perpetual,$$uin,$$email)", + "step12": "e2e_wait(90)", + "step13": "e2e_multiFactorAuthentication(faceDevice,dob,UIN,$$uin,$$personaFilePath,$$vid,$$email)" + }, + { + "tc_no": "32", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card. Later updates his address and performs demographic authentication to download EUIN", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_wait(90)", + "step10": "e2e_updateDemoOrBioDetails(0,0,addressLine1=bnglr,$$personaFilePath)", + "step11": "e2e_updateResidentWithUIN($$personaFilePath,$$uin)", + "step12": "$$updateTemplate=e2e_getPacketTemplate(UPDATE,$$personaFilePath)", + "step13": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$updateTemplate)", + "step14": "e2e_checkStatus(processed,$$rid2)", + "step15": "$$uin2=e2e_getUINByRid($$rid2)", + "step16": "e2e_wait(90)", + "step17": "$$email=e2e_getEmailByUIN($$uin2)", + "step18": "$$requestId=e2e_credentialRequest($$uin2,$$email)", + "step19": "e2e_checkCredentialStatus($$requestId)", + "step20": "e2e_downloadCard($$requestId)" + }, + { + "tc_no": "33", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card and generates Perpetual VID. Later updates his email and perform OTP authentiction both using UIN and VID. Also performs eSignet OTP authentication using right finger both using UIN and VID", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_wait(90)", + "step10": "e2e_updateDemoOrBioDetails(0,0,email=test,$$personaFilePath)", + "step11": "e2e_updateResidentWithUIN($$personaFilePath,$$uin)", + "step12": "$$updateTemplate=e2e_getPacketTemplate(UPDATE,$$personaFilePath)", + "step13": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$updateTemplate)", + "step14": "e2e_checkStatus(processed,$$rid2)", + "step15": "$$uin2=e2e_getUINByRid($$rid2)", + "step16": "$$email=e2e_getEmailByUIN($$uin2)", + "step17": "e2e_wait(90)", + "step18": "$$vid=e2e_generateVID(Perpetual,$$uin2,$$email)", + "step19": "e2e_wait(90)", + "step20": "e2e_otpAuthentication(uin,$$uin2,vid,$$vid,$$email)", + "step21": "$$clientId=e2e_OidcClient()", + "step22": "$$transactionId1=e2e_OAuthDetailsRequest($$clientId,transactionId1)", + "step23": "$$transactionId2=e2e_OAuthDetailsRequest($$clientId,transactionId2)", + "step24": "e2e_esignetAuthentication($$transactionId1,$$uin,OTP,$$email,$$vid,$$transactionId2)", + "step25": "e2e_UserInfo($$transactionId1,$$clientId)" + }, + { + "tc_no": "34", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident child walk-ins to registration center completes the process and gets UIN card and generates Perpetual VID. Later updates his name and perform demographic authentiction both using UIN and VID", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$childPersona=e2e_getResidentData(1,minor,true,Male)", + "step5": "$$parentPersona=e2e_getResidentData(1,adult,false,Male)", + "step6": "$$parentTemplate=e2e_getPacketTemplate(NEW,$$parentPersona)", + "step7": "$$parentRid=e2e_generateAndUploadPacketSkippingPrereg($$parentPersona,$$parentTemplate)", + "step8": "e2e_checkStatus(processed,$$parentRid)", + "step9": "$$parentUin=e2e_getUINByRid($$parentRid)", + "step10": "e2e_updateResidentWithUIN($$parentPersona,$$parentUin)", + "step11": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona,$$childPersona)", + "step12": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step13": "$$childRid=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$childTemplate)", + "step14": "e2e_checkStatus(processed,$$childRid)", + "step15": "$$childUin=e2e_getUINByRid($$childRid)", + "step16": "e2e_wait(90)", + "step17": "e2e_updateDemoOrBioDetails(0,0,name=AutomationName,$$childPersona)", + "step18": "e2e_updateResidentWithUIN($$childPersona,$$childUin)", + "step19": "$$updateTemplate=e2e_getPacketTemplate(UPDATE,$$childPersona)", + "step20": "$$childRid2=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$updateTemplate)", + "step21": "e2e_checkStatus(processed,$$childRid2)", + "step22": "$$childUin2=e2e_getUINByRid($$childRid2)", + "step23": "$$email=e2e_getEmailByUIN($$childUin2)", + "step24": "e2e_wait(90)", + "step25": "$$vid=e2e_generateVID(Perpetual,$$childUin2,$$email)", + "step26": "e2e_wait(90)", + "step27": "e2e_demoAuthentication(name,$$childUin2,$$childPersona,$$vid)", + "step28": "e2e_CheckRIDStage($$childRid,VERIFICATION,SUCCESS)" + }, + { + "tc_no": "35", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card and generates Perpetual VID. Later updates left index biometrics and perform biometric authentiction with face both using UIN and VID", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_wait(90)", + "step10": "$$email1=e2e_getEmailByUIN($$uin)", + "step11": "$$requestId=e2e_credentialRequest($$uin,$$email1)", + "step12": "e2e_checkCredentialStatus($$requestId)", + "step13": "e2e_downloadCard($$requestId)", + "step14": "e2e_updateDemoOrBioDetails(leftIndex,0,0,$$personaFilePath)", + "step15": "e2e_updateResidentWithUIN($$personaFilePath,$$uin)", + "step16": "$$updateTemplate=e2e_getPacketTemplate(UPDATE,$$personaFilePath)", + "step17": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$updateTemplate)", + "step18": "e2e_checkStatus(processed,$$rid2)", + "step19": "$$uin2=e2e_getUINByRid($$rid2)", + "step20": "$$email2=e2e_getEmailByUIN($$uin2)", + "step21": "e2e_wait(90)", + "step22": "$$vid=e2e_generateVID(Perpetual,$$uin2,$$email2)", + "step23": "e2e_wait(90)", + "step24": "e2e_ekycBio(faceDevice,$$uin2,$$vid,$$personaFilePath)" + }, + { + "tc_no": "36", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "A differently abled resident walk-ins to registration center completes the process and gets UIN card. Later perform EKYC Bio both using UIN and VID", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male,leftiris@@rightIris)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "$$email=e2e_getEmailByUIN($$uin)", + "step10": "e2e_wait(90)", + "step11": "$$vid=e2e_generateVID(Perpetual,$$uin,$$email)", + "step12": "e2e_wait(90)", + "step13": "e2e_ekycBio(faceDevice,$$uin,$$vid,$$personaFilePath)" + }, + { + "tc_no": "37", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident booked pre-registration with support documents. walk-ins to registration center completes the process and gets UIN card after previous UIN application is rejected with different center", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$user4=e2e_User(ADD_User,4@@Techno@123)", + "step2": "$$center4=e2e_Center(CREATE,$$user4,4,T)", + "step3": "$$details4=e2e_Machine(CREATE,$$center4,4)", + "step4": "$$details4=e2e_User(DELETE_CENTERMAPPING,4@@Techno@123,$$details4)", + "step5": "$$details4=e2e_User(CREATE_ZONESEARCH,$$details4)", + "step6": "e2e_wait(10)", + "step7": "e2e_User(DELETE_ZONEMAPPING,$$details4)", + "step8": "e2e_User(CREATE_ZONEMAPPING,$$details4)", + "step9": "e2e_User(ACTIVATE_ZONEMAPPING,$$details4,t)", + "step10": "e2e_User(CREATE_CENTERMAPPING,$$details4,4)", + "step11": "e2e_User(ACTIVATE_CENTERMAPPING,$$details4,T)", + "step12": "e2e_WritePreReq($$details4,4)", + "step13": "$$details4=e2e_ReadPreReq(4)", + "step14": "e2e_setContext(env_context,$$details4,1@@2,true)", + "step15": "e2e_getPingHealth()", + "step16": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male,gender)", + "step17": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step18": "$$rid1=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step19": "$$user5=e2e_User(ADD_User,4@@Techno@123)", + "step20": "$$center5=e2e_Center(CREATE,$$user5,5,T)", + "step21": "$$details5=e2e_Machine(CREATE,$$center5,5)", + "step22": "$$details5=e2e_User(DELETE_CENTERMAPPING,4@@Techno@123,$$details5)", + "step23": "$$details5=e2e_User(CREATE_ZONESEARCH,$$details5)", + "step24": "e2e_wait(10)", + "step25": "e2e_User(DELETE_ZONEMAPPING,$$details5)", + "step26": "e2e_User(CREATE_ZONEMAPPING,$$details5)", + "step27": "e2e_User(ACTIVATE_ZONEMAPPING,$$details5,t)", + "step28": "e2e_User(CREATE_CENTERMAPPING,$$details5,5)", + "step29": "e2e_User(ACTIVATE_CENTERMAPPING,$$details5,T)", + "step30": "e2e_WritePreReq($$details5,5)", + "step31": "$$details5=e2e_ReadPreReq(5)", + "step32": "e2e_switchContext(env_context,$$details5,1@@2,true)", + "step33": "e2e_updateDemoOrBioDetails(0,0,gender=Male,$$personaFilePath)", + "step34": "$$newTemplate=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step35": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$newTemplate)", + "step36": "e2e_checkStatus(processed,$$rid2)", + "step37": "$$uin2=e2e_getUINByRid($$rid2)", + "step38": "e2e_checkStatus(reregister,$$rid1)", + "step39": "e2e_CheckRIDStage($$rid1,VALIDATE_PACKET,FAILED)" + }, + { + "tc_no": "38", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident booked pre-registration with support documents. walk-ins to registration center tries to get UIN after previous UIN application is in progress with different center", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "e2e_sendOtp($$personaFilePath)", + "step7": "e2e_validateOtp($$personaFilePath)", + "step8": "$$prid=e2e_preRegister($$personaFilePath)", + "step9": "e2e_uploadDocuments($$personaFilePath,$$prid)", + "step10": "e2e_updatePreRegStatus(0,$$prid,valid)", + "step11": "e2e_bookAppointment(false,$$prid,2)", + "step12": "$$rid=e2e_generateAndUploadPacket($$prid,$$templatePath)", + "step13": "e2e_checkStatus(processed,$$rid)", + "step14": "$$uin=e2e_getUINByRid($$rid)", + "step15": "$$details2=e2e_ReadPreReq(2)", + "step16": "e2e_setContext(env_context,$$details2,1@@2,true)", + "step17": "$$templatePath2=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step18": "$$modalityHashValue=e2e_getBioModalityHash(-1,Right IndexFinger@@Left LittleFinger,$$personaFilePath)", + "step19": "e2e_configureMockAbis(-1,Right IndexFinger,true,Right IndexFinger,$$personaFilePath,$$modalityHashValue,-1,@@Duplicate)", + "step20": "$$zipPacketPath=e2e_packetcreator(NEW,$$templatePath2)", + "step21": "$$rid2=e2e_ridsync(NEW,$$zipPacketPath)", + "step22": "e2e_packetsync($$zipPacketPath)", + "step23": "e2e_checkStatus(rejected,$$rid2)" + }, + { + "tc_no": "39", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration same center where his previous application got rejected and completes the process and gets UIN card", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male,gender)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(reregister,$$rid)", + "step8": "e2e_updateDemoOrBioDetails(gender,0,0,$$personaFilePath)", + "step9": "$$newTemplate=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step10": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$newTemplate)", + "step11": "e2e_checkStatus(processed,$$rid2)", + "step12": "$$uin2=e2e_getUINByRid($$rid2)", + "step13": "e2e_wait(90)", + "step14": "$$email=e2e_getEmailByUIN($$uin2)", + "step15": "$$requestId=e2e_credentialRequest($$uin2,$$email)", + "step16": "e2e_checkCredentialStatus($$requestId)", + "step17": "e2e_downloadCard($$requestId)", + "step18": "e2e_CheckRIDStage($$rid,VALIDATE_PACKET,FAILED)" + }, + { + "tc_no": "40", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card and generates Perpetual VID. Later gets eKYC done both using UIN VID and face auth", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "$$email=e2e_getEmailByUIN($$uin)", + "step10": "e2e_wait(90)", + "step11": "$$vid=e2e_generateVID(Perpetual,$$uin,$$email)", + "step12": "e2e_wait(90)", + "step13": "e2e_ekycBio(faceDevice,$$uin,$$vid,$$personaFilePath)" + }, + { + "tc_no": "41", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card and generates Perpetual VID. Later gets eKYC done both using UIN VID and right ring finger auth", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "$$email=e2e_getEmailByUIN($$uin)", + "step10": "e2e_wait(90)", + "step11": "$$vid=e2e_generateVID(Perpetual,$$uin,$$email)", + "step12": "e2e_wait(90)", + "step13": "e2e_ekycBio(rightRingDevice,$$uin,$$vid,$$personaFilePath)" + }, + { + "tc_no": "42", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card and generates Perpetual VID. Later gets eKYC done both using UIN VID and right iris auth", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "$$email=e2e_getEmailByUIN($$uin)", + "step10": "e2e_wait(90)", + "step11": "$$vid=e2e_generateVID(Perpetual,$$uin,$$email)", + "step12": "e2e_wait(90)", + "step13": "e2e_ekycBio(RightIris,$$uin,$$vid,$$personaFilePath)" + }, + { + "tc_no": "43", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "A differently abled resident walk-ins to registration center completes the process and gets UIN card and generates Perpetual VID. Later gets eKYC done both using UIN VID and face auth", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "e2e_UpdateBioExceptionInPersona($$personaFilePath,Iris:Left@@Iris:Right)", + "step6": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step7": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step8": "e2e_checkStatus(processed,$$rid)", + "step9": "$$uin=e2e_getUINByRid($$rid)", + "step10": "$$email=e2e_getEmailByUIN($$uin)", + "step11": "e2e_wait(90)", + "step12": "$$vid=e2e_generateVID(Perpetual,$$uin,$$email)", + "step13": "e2e_wait(90)", + "step14": "e2e_ekycBio(faceDevice,$$uin,$$vid,$$personaFilePath)" + }, + { + "tc_no": "44", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card and generates temporary VID. Later gets eKYC done both using UIN VID and face auth", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "$$email=e2e_getEmailByUIN($$uin)", + "step10": "e2e_wait(90)", + "step11": "$$vid=e2e_generateVID(Temporary,$$uin,$$email)", + "step12": "e2e_wait(90)", + "step13": "e2e_ekycBio(faceDevice,$$uin,$$vid,$$personaFilePath)" + }, + { + "tc_no": "45", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card and generates temporary VID. Later gets eKYC done both using UIN VID and left ring finger auth", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "$$email=e2e_getEmailByUIN($$uin)", + "step10": "e2e_wait(90)", + "step11": "$$vid=e2e_generateVID(Temporary,$$uin,$$email)", + "step12": "e2e_wait(90)", + "step13": "e2e_ekycBio(leftRingDevice,$$uin,$$vid,$$personaFilePath)" + }, + { + "tc_no": "46", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card and generates temporary VID. Later gets eKYC done both using UIN VID and left iris auth", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "$$email=e2e_getEmailByUIN($$uin)", + "step10": "e2e_wait(90)", + "step11": "$$vid=e2e_generateVID(Temporary,$$uin,$$email)", + "step12": "e2e_wait(90)", + "step13": "e2e_ekycBio(LeftIris,$$uin,$$vid,$$personaFilePath)" + }, + { + "tc_no": "47", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "A differently abled resident walk-ins to registration center completes the process and gets UIN card and generates temporary VID. Later gets eKYC done both using UIN VID and face auth", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male,leftiris@@rightIris)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "$$email=e2e_getEmailByUIN($$uin)", + "step10": "e2e_wait(90)", + "step11": "$$vid=e2e_generateVID(Temporary,$$uin,$$email)", + "step12": "e2e_wait(90)", + "step13": "e2e_ekycBio(faceDevice,$$uin,$$vid,$$personaFilePath)" + }, + { + "tc_no": "48", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process but while the packet getting uploaded packet got Corrupted", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$zipPacketPath=e2e_packetcreator(NEW,$$templatePath)", + "step7": "e2e_corruptPacket(1024,hello automation,$$zipPacketPath)", + "step8": "$$rid=e2e_ridsync(NEW,$$zipPacketPath)", + "step9": "e2e_packetsync($$zipPacketPath)", + "step10": "e2e_wait(90)", + "step11": "e2e_checkStatus(reregister,$$rid)", + "step12": "e2e_CheckRIDStage($$rid,UPLOAD_PACKET,ERROR)" + }, + { + "tc_no": "49", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident Minor Child walk-ins to registration center UIN card. Later tries to get another UIN by providing different Guardian", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$childPersona=e2e_getResidentData(1,minor,true,Male)", + "step5": "$$parentPersona1=e2e_getResidentData(1,adult,false,Male)", + "step6": "$$parentTemplate1=e2e_getPacketTemplate(NEW,$$parentPersona1)", + "step7": "$$parentRid1=e2e_generateAndUploadPacketSkippingPrereg($$parentPersona1,$$parentTemplate1)", + "step8": "e2e_checkStatus(processed,$$parentRid1)", + "step9": "$$parentUin1=e2e_getUINByRid($$parentRid1)", + "step10": "e2e_updateResidentWithRID($$parentPersona1,$$parentRid1)", + "step11": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona1,$$childPersona)", + "step12": "$$parentPersona2=e2e_getResidentData(1,adult,false,Male)", + "step13": "$$parentTemplate2=e2e_getPacketTemplate(NEW,$$parentPersona2)", + "step14": "$$parentRid2=e2e_generateAndUploadPacketSkippingPrereg($$parentPersona2,$$parentTemplate2)", + "step15": "e2e_checkStatus(processed,$$parentRid2)", + "step16": "$$parentUin2=e2e_getUINByRid($$parentRid2)", + "step17": "e2e_updateResidentWithRID($$parentPersona2,$$parentRid2)", + "step18": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona2,$$childPersona)", + "step19": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step20": "$$childRid=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$childTemplate)", + "step21": "e2e_checkStatus(processed,$$childRid)", + "step22": "$$childUin=e2e_getUINByRid($$childRid)", + "step23": "e2e_CheckRIDStage($$childRid,PRINT_SERVICE,PROCESSED)", + "step24": "e2e_CheckRIDStage($$childRid,VERIFICATION,SUCCESS)" + }, + { + "tc_no": "50", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident Minor Child walk-ins to registration center UIN card. Later tries to get another UIN by providing same Guardian", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$childPersona=e2e_getResidentData(1,minor,true,Male)", + "step5": "$$parentPersona1=e2e_getResidentData(1,adult,false,Male)", + "step6": "$$parentTemplate1=e2e_getPacketTemplate(NEW,$$parentPersona1)", + "step7": "$$parentRid1=e2e_generateAndUploadPacketSkippingPrereg($$parentPersona1,$$parentTemplate1)", + "step8": "e2e_checkStatus(processed,$$parentRid1)", + "step9": "$$parentUin1=e2e_getUINByRid($$parentRid1)", + "step10": "e2e_updateResidentWithRID($$parentPersona1,$$parentRid1)", + "step11": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona1,$$childPersona)", + "step12": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona1,$$childPersona)", + "step13": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step14": "$$childRid=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$childTemplate)", + "step15": "e2e_checkStatus(processed,$$childRid)", + "step16": "$$childUin=e2e_getUINByRid($$childRid)", + "step17": "e2e_CheckRIDStage($$childRid,PRINT_SERVICE,PROCESSED)", + "step18": "e2e_CheckRIDStage($$childRid,VERIFICATION,SUCCESS)" + }, + { + "tc_no": "3", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card. Resident lost UIN and walks in to registration center to retrieve the UIN", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_wait(90)", + "step10": "$$lostTemplate=e2e_getPacketTemplate(LOST,$$personaFilePath)", + "step11": "$$modalityHashValue=e2e_getBioModalityHash(-1,Right IndexFinger@@Left LittleFinger,$$personaFilePath)", + "step12": "$$zipPacketPath=e2e_packetcreator(LOST,$$lostTemplate)", + "step13": "$$ridLost=e2e_ridsync(LOST,$$zipPacketPath)", + "step14": "e2e_configureMockAbis(-1,Right IndexFinger,true,Right IndexFinger,$$personaFilePath,$$modalityHashValue,-1,@@Duplicate)", + "step15": "e2e_packetsync($$zipPacketPath)", + "step16": "e2e_checkStatus(processed,$$ridLost)", + "step17": "$$uin2=e2e_getUINByRid($$ridLost)", + "step18": "e2e_CheckRIDStage($$ridLost,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "51", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process. But due to low biometric image quality correction flow is initiated. Resident provides biometrics with good quality and gets the UIN card", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "e2e_updateDemoOrBioDetails(0,0,email=additionalReqId_51,$$personaFilePath)", + "step6": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath,10)", + "step7": "$$zipPacketPath=e2e_packetcreator(NEW,$$templatePath)", + "step8": "$$rid=e2e_ridsync(NEW,$$zipPacketPath)", + "step9": "e2e_packetsync($$zipPacketPath)", + "step10": "e2e_CheckRIDStage($$rid,INTERNAL_WORKFLOW_ACTION,SUCCESS,RPR-WIA-001)", + "step11": "$$additionalReqId=e2e_getAdditionalReqId(additionalReqId_51)", + "step12": "$$personaFilePath2=e2e_getResidentData(1,adult,false,Male)", + "step13": "e2e_updateDemoOrBioDetails(0,0,email=additionalReqId_51,$$personaFilePath2)", + "step14": "$$templatePath2=e2e_getPacketTemplate(BIOMETRIC_CORRECTION,$$personaFilePath2)", + "step15": "$$zipPacketPath2=e2e_packetcreator(BIOMETRIC_CORRECTION,$$templatePath2,$$additionalReqId)", + "step16": "$$rid2=e2e_ridsync(BIOMETRIC_CORRECTION,$$zipPacketPath2,$$additionalReqId)", + "step17": "e2e_packetsync($$zipPacketPath2)", + "step18": "e2e_checkStatus(processed,$$rid2)", + "step19": "$$uin=e2e_getUINByRid($$rid2)", + "step20": "e2e_CheckRIDStage($$rid2,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "58", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process but while the packet getting created packet has invalid hash", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(qa4_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "e2e_getPingHealth()", + "step5": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step6": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step7": "$$rid=e2e_uploadPacketWithInvalidHash($$personaFilePath,$$templatePath)", + "step8": "e2e_checkStatus(reregister,$$rid)", + "step9": "e2e_CheckRIDStage($$rid,VALIDATE_PACKET,FAILED)" + }, + { + "tc_no": "59", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center with his child and completes the process. But Guardian packet rejected hence introducer RID is not valid in infant packet", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$parentPersona=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$parentPersona)", + "step6": "$$parentZipPacketPath=e2e_packetcreator(NEW,$$templatePath)", + "step7": "$$parentRid=e2e_ridSyncRejected(NEW,$$parentZipPacketPath)", + "step8": "$$childPersona=e2e_getResidentData(1,minor,true,Male)", + "step9": "e2e_updateResidentWithRID($$parentPersona,$$parentRid)", + "step10": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona,$$childPersona)", + "step11": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step12": "$$childZipPacketPath=e2e_packetcreator(NEW,$$childTemplate)", + "step13": "$$childRid=e2e_ridsync(NEW,$$childZipPacketPath)", + "step14": "e2e_bulkUploadPacket($$childZipPacketPath,$$parentZipPacketPath)", + "step15": "e2e_checkStatus(reregister,$$childRid)", + "step16": "e2e_checkStatus(reregister,$$parentRid)", + "step17": "e2e_CheckRIDStage($$childRid,INTRODUCER_VALIDATION,ERROR)", + "step18": "e2e_CheckRIDStage($$parentRid,VALIDATE_PACKET,REJECTED)" + }, + { + "tc_no": "60", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident booked pre-registration without documents trying to update prereg status", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "e2e_sendOtp($$personaFilePath)", + "step7": "e2e_validateOtp($$personaFilePath)", + "step8": "$$prid=e2e_preRegister($$personaFilePath)", + "step9": "e2e_updatePreRegStatus(0,$$prid,invalid)" + }, + { + "tc_no": "61", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process but supervisor rejects packet during packet processing", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$zipPacketPath=e2e_packetcreator(NEW,$$templatePath)", + "step7": "$$rid=e2e_ridSyncRejected(NEW,$$zipPacketPath)", + "step8": "e2e_packetsync($$zipPacketPath)", + "step9": "e2e_checkStatus(reregister,$$rid)", + "step10": "e2e_CheckRIDStage($$rid,VALIDATE_PACKET,REJECTED)" + }, + { + "tc_no": "62", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to get UIN card and different resident tries to get UIN both resident having same demo and different biometric details", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "e2e_DeleteMockExpect()", + "step2": "$$details1=e2e_ReadPreReq(1)", + "step3": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step4": "e2e_getPingHealth()", + "step5": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step6": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step7": "$$rid1=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step8": "e2e_checkStatus(processed,$$rid1)", + "step9": "$$uin=e2e_getUINByRid($$rid1)", + "step10": "$$modalityHashValue=e2e_getBioModalityHash(-1,Right IndexFinger@@Left LittleFinger,$$personaFilePath)", + "step11": "e2e_configureMockAbis(-1,Right IndexFinger,true,Right IndexFinger,$$personaFilePath,$$modalityHashValue,-1,@@Duplicate)", + "step12": "e2e_updateDemoOrBioDetails(leftIris@@rigthIris,0,0,$$personaFilePath)", + "step13": "e2e_updateResidentWithUIN($$personaFilePath,$$uin)", + "step14": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step15": "e2e_postMockMv($$rid2,REJECTED)", + "step16": "e2e_checkStatus(rejected,$$rid2)" + }, + { + "tc_no": "63", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process but the packet goes for manual adjudication as biometric matches with other resident", + "step0": "$$details1=e2e_ReadPreReq(1)", + "step1": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step2": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step3": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step4": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step5": "e2e_checkStatus(processed,$$rid)", + "step6": "$$uin=e2e_getUINByRid($$rid)", + "step7": "$$modalityHashValue=e2e_getBioModalityHash(-1,Right IndexFinger@@Left LittleFinger,$$personaFilePath)", + "step8": "e2e_configureMockAbis(-1,Right IndexFinger,true,Right IndexFinger,$$personaFilePath,$$modalityHashValue,-1,@@Duplicate)", + "step9": "e2e_updateDemoOrBioDetails(0,0,name=AutomationName,$$personaFilePath)", + "step10": "$$newTemplate=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step11": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$newTemplate)", + "step12": "e2e_postMockMv($$rid2,REJECTED)", + "step13": "e2e_checkStatus(REJECTED,$$rid2)", + "step14": "e2e_CheckRIDStage($$rid2,MANUAL_ADJUDICATION,FAILED)" + }, + { + "tc_no": "64", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card. Same resident tries to get another UIN with different name ", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_clonePersonaAndUpdate($$personaFilePath,firstName@@midName@@surName)", + "step10": "$$modalityHashValue=e2e_getBioModalityHash(-1,Right IndexFinger@@Left LittleFinger,$$personaFilePath)", + "step11": "e2e_configureMockAbis(-1,Right IndexFinger,true,Right IndexFinger,$$personaFilePath,$$modalityHashValue,-1,@@Duplicate)", + "step12": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step13": "$$ridNew=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step14": "e2e_postMockMv($$ridNew,REJECTED)", + "step15": "e2e_checkStatus(rejected,$$ridNew)", + "step16": "e2e_configureMockAbis(-1,Right IndexFinger,false,Right IndexFinger,$$personaFilePath,$$modalityHashValue,-1,@@Duplicate)", + "step17": "e2e_CheckRIDStage($$ridNew,BIOGRAPHIC_VERIFICATION,FAILED)" + }, + { + "tc_no": "65", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card. Same resident tries to get another UIN with same demo details and same biometrics", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$modalityHashValue=e2e_getBioModalityHash(-1,Right IndexFinger@@Left LittleFinger,$$personaFilePath)", + "step7": "$$rid1=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step8": "e2e_checkStatus(processed,$$rid1)", + "step9": "$$uin=e2e_getUINByRid($$rid1)", + "step10": "e2e_configureMockAbis(-1,Right IndexFinger,true,Right IndexFinger,$$personaFilePath,$$modalityHashValue,-1,@@Duplicate)", + "step11": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step12": "e2e_postMockMv($$rid2,REJECTED)", + "step13": "e2e_checkStatus(rejected,$$rid2)", + "step14": "e2e_configureMockAbis(-1,Right IndexFinger,false,Right IndexFinger,$$personaFilePath,$$modalityHashValue,-1,@@Duplicate)", + "step15": "e2e_CheckRIDStage($$rid2,DEMOGRAPHIC_VERIFICATION,IN_PROGRESS)" + }, + { + "tc_no": "66", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card. Same resident tries to get another UIN by providing different demo details and same biometrics ", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "$$modalityHashValue=e2e_getBioModalityHash(-1,Right IndexFinger@@Left LittleFinger,$$personaFilePath)", + "step10": "e2e_configureMockAbis(-1,Right IndexFinger,true,Right IndexFinger,$$personaFilePath,$$modalityHashValue,-1,@@Duplicate)", + "step11": "e2e_updateDemoOrBioDetails(0,0,name=AutomationName,$$personaFilePath)", + "step12": "e2e_updateResidentWithUIN($$personaFilePath,$$uin)", + "step13": "$$templatePathNew=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step14": "$$ridNew=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePathNew)", + "step15": "e2e_postMockMv($$ridNew,REJECTED)", + "step16": "e2e_checkStatus(rejected,$$ridNew)", + "step17": "e2e_CheckRIDStage($$ridNew,MANUAL_ADJUDICATION,FAILED)" + }, + { + "tc_no": "67", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process. But packet gets uploaded without supervisor Id without supervisor Password and valid operator details", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details2=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details2,1@@2,true,null,null@@null@@valid@@valid)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "e2e_CheckRIDStage($$rid,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "68", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process. But packet gets uploaded with invalid supervisor Id invalid supervisor Password and valid operator details", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details2=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details2,1@@2,true,null,invalid@@valid@@valid@@valid)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(reregister,$$rid)", + "step8": "e2e_CheckRIDStage($$rid,SUPERVISOR_VALIDATION,ERROR)" + }, + { + "tc_no": "69", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process. But packet gets uploaded with valid supervisor Id invalid supervisor Password and valid operator details", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details2=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details2,1@@2,true,null,valid@@invalid@@valid@@valid)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(reregister,$$rid)", + "step8": "e2e_CheckRIDStage($$rid,SUPERVISOR_VALIDATION,FAILED)" + }, + { + "tc_no": "70", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process. But packet gets uploaded with null operator Id null operator password and valid operator details", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details2=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details2,1@@2,true,null,valid@@valid@@null@@null)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "e2e_CheckRIDStage($$rid,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "71", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process. But packet gets uploaded with Invalid operator Id Valid operator password and valid operator details", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details2=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details2,1@@2,true,null,valid@@valid@@invalid@@valid)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(reregister,$$rid)", + "step8": "e2e_CheckRIDStage($$rid,OPERATOR_VALIDATION,ERROR)" + }, + { + "tc_no": "72", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process. But packet gets uploaded with Valid operator Id invalid operator password and valid supervisor details", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details2=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details2,1@@2,true,null,valid@@valid@@valid@@invalid)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(reregister,$$rid)", + "step8": "e2e_CheckRIDStage($$rid,OPERATOR_VALIDATION,FAILED)" + }, + { + "tc_no": "73", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process. But packet gets uploaded with supervisor and operator cbeff file and without password auth", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,true)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_User(ADD_User,1@@Techno@123,$$uin)", + "step10": "e2e_setContext(env_context,$$details1,1@@2,true,null,null@@null@@null@@null@@OperatorBiometrics_bio_CBEFF@@SupervisorBiometrics_bio_CBEFF)", + "step11": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step12": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step13": "$$zipPacketPath=e2e_packetcreator(NEW,$$templatePath)", + "step14": "$$rid1=e2e_ridsync(NEW,$$zipPacketPath)", + "step15": "e2e_packetsync($$zipPacketPath)", + "step16": "e2e_checkStatus(reregister,$$rid1)", + "step17": "e2e_CheckRIDStage($$rid1,INTERNAL_WORKFLOW_ACTION,SUCCESS)" + }, + { + "tc_no": "74", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process. But packet gets uploaded without supervisor and operator cbeff file and without password auth", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,true)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_User(ADD_User,1@@Techno@123,$$uin)", + "step10": "e2e_setContext(env_context,$$details1,1@@2,true,null,null@@null@@null@@null@@null@@null)", + "step11": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step12": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step13": "$$zipPacketPath=e2e_packetcreator(NEW,$$templatePath)", + "step14": "$$rid=e2e_ridsync(NEW,$$zipPacketPath)", + "step15": "e2e_packetsync($$zipPacketPath)", + "step16": "e2e_checkStatus(reregister,$$rid)", + "step17": "e2e_CheckRIDStage($$rid,INTERNAL_WORKFLOW_ACTION,SUCCESS)" + }, + { + "tc_no": "75", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card. When the packet is created and uploaded with supervisor and operator biometrics", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "e2e_wait(35)", + "step2": "$$user75=e2e_User(ADD_User,75@@Techno@123)", + "step3": "$$center75=e2e_Center(CREATE,$$user75,75,T)", + "step4": "$$details75=e2e_Machine(CREATE,$$center75,75)", + "step5": "$$details75=e2e_User(DELETE_CENTERMAPPING,75@@Techno@123,$$details75)", + "step6": "$$details75=e2e_User(CREATE_ZONESEARCH,$$details75)", + "step7": "e2e_wait(10)", + "step8": "e2e_User(DELETE_ZONEMAPPING,$$details75)", + "step9": "e2e_User(CREATE_ZONEMAPPING,$$details75)", + "step10": "e2e_User(ACTIVATE_ZONEMAPPING,$$details75,t)", + "step11": "e2e_User(CREATE_CENTERMAPPING,$$details75,75)", + "step12": "e2e_User(ACTIVATE_CENTERMAPPING,$$details75,T)", + "step13": "e2e_WritePreReq($$details75,75)", + "step14": "$$details75=e2e_ReadPreReq(75)", + "step15": "e2e_setContext(env_context,$$details75,1@@2,true)", + "step16": "e2e_getPingHealth()", + "step17": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step18": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step19": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step20": "e2e_checkStatus(processed,$$rid)", + "step21": "$$uin=e2e_getUINByRid($$rid)", + "step22": "e2e_User(ADD_User,75@@Techno@123,$$uin)", + "step23": "e2e_setContext(env_context,$$details75,1@@2,true,null,valid@@null@@valid@@null@@operatorBiometrics_bio_CBEFF@@supervisorBiometrics_bio_CBEFF)", + "step24": "$$personaFilePath1=e2e_getResidentData(1,adult,false,Male)", + "step25": "$$templatePath1=e2e_getPacketTemplate(NEW,$$personaFilePath1)", + "step26": "$$zipPacketPath1=e2e_packetcreator(NEW,$$templatePath1)", + "step27": "$$rid1=e2e_ridsync(NEW,$$zipPacketPath1)", + "step28": "e2e_packetsync($$zipPacketPath1)", + "step29": "e2e_setContext(env_context,$$details75,1@@2,true)", + "step30": "e2e_checkStatus(processed,$$rid1)", + "step31": "$$uin1=e2e_getUINByRid($$rid1)", + "step32": "e2e_CheckRIDStage($$rid1,PRINT_SERVICE,PROCESSED)", + "step33": "e2e_Machine(DCOM,$$details75)", + "step34": "$$details75=e2e_User(DELETE_CENTERMAPPING,75@@Techno@123,$$details75)", + "step35": "e2e_Center(DCOM,$$details75,75)" + }, + { + "tc_no": "76", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card. When the packet is created and uploaded with supervisor biometric and without operator biometrics", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "e2e_wait(45)", + "step2": "$$user76=e2e_User(ADD_User,76@@Techno@123)", + "step3": "$$center76=e2e_Center(CREATE,$$user76,76,T)", + "step4": "$$details76=e2e_Machine(CREATE,$$center76,76)", + "step5": "$$details76=e2e_User(DELETE_CENTERMAPPING,76@@Techno@123,$$details76)", + "step6": "$$details76=e2e_User(CREATE_ZONESEARCH,$$details76)", + "step7": "e2e_wait(10)", + "step8": "e2e_User(DELETE_ZONEMAPPING,$$details76)", + "step9": "e2e_User(CREATE_ZONEMAPPING,$$details76)", + "step10": "e2e_User(ACTIVATE_ZONEMAPPING,$$details76,t)", + "step11": "e2e_User(CREATE_CENTERMAPPING,$$details76,76)", + "step12": "e2e_User(ACTIVATE_CENTERMAPPING,$$details76,T)", + "step13": "e2e_WritePreReq($$details76,76)", + "step14": "$$details76=e2e_ReadPreReq(76)", + "step15": "e2e_setContext(env_context,$$details76,1@@2,true)", + "step16": "e2e_getPingHealth()", + "step17": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step18": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step19": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step20": "e2e_checkStatus(processed,$$rid)", + "step21": "$$uin=e2e_getUINByRid($$rid)", + "step22": "e2e_User(ADD_User,76@@Techno@123,$$uin)", + "step23": "e2e_setContext(env_context,$$details76,1@@2,true,null,valid@@null@@null@@null@@null@@supervisorBiometrics_bio_CBEFF)", + "step24": "$$personaFilePath1=e2e_getResidentData(1,adult,false,Male)", + "step25": "$$templatePath1=e2e_getPacketTemplate(NEW,$$personaFilePath1)", + "step26": "$$zipPacketPath1=e2e_packetcreator(NEW,$$templatePath1)", + "step27": "$$rid1=e2e_ridsync(NEW,$$zipPacketPath1)", + "step28": "e2e_packetsync($$zipPacketPath1)", + "step29": "e2e_setContext(env_context,$$details76,1@@2,true)", + "step30": "e2e_checkStatus(processed,$$rid1)", + "step31": "$$uin1=e2e_getUINByRid($$rid1)", + "step32": "e2e_CheckRIDStage($$rid1,PRINT_SERVICE,PROCESSED)", + "step33": "e2e_Machine(DCOM,$$details76)", + "step34": "$$details76=e2e_User(DELETE_CENTERMAPPING,76@@Techno@123,$$details76)", + "step35": "e2e_Center(DCOM,$$details76,76)" + }, + { + "tc_no": "77", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card. When the packet is created and uploaded with operator and without supervisor biometrics", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "e2e_wait(55)", + "step2": "$$user77=e2e_User(ADD_User,77@@Techno@123)", + "step3": "$$center77=e2e_Center(CREATE,$$user77,77,T)", + "step4": "$$details77=e2e_Machine(CREATE,$$center77,77)", + "step5": "$$details77=e2e_User(DELETE_CENTERMAPPING,77@@Techno@123,$$details77)", + "step6": "$$details77=e2e_User(CREATE_ZONESEARCH,$$details77)", + "step7": "e2e_wait(10)", + "step8": "e2e_User(DELETE_ZONEMAPPING,$$details77)", + "step9": "e2e_User(CREATE_ZONEMAPPING,$$details77)", + "step10": "e2e_User(ACTIVATE_ZONEMAPPING,$$details77,t)", + "step11": "e2e_User(CREATE_CENTERMAPPING,$$details77,77)", + "step12": "e2e_User(ACTIVATE_CENTERMAPPING,$$details77,T)", + "step13": "e2e_WritePreReq($$details77,77)", + "step14": "$$details77=e2e_ReadPreReq(77)", + "step15": "e2e_setContext(env_context,$$details77,1@@2,true)", + "step16": "e2e_getPingHealth()", + "step17": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step18": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step19": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step20": "e2e_checkStatus(processed,$$rid)", + "step21": "$$uin=e2e_getUINByRid($$rid)", + "step22": "e2e_User(ADD_User,77@@Techno@123,$$uin)", + "step23": "e2e_setContext(env_context,$$details77,1@@2,true,null,null@@null@@valid@@null@@operatorBiometrics_bio_CBEFF@@null)", + "step24": "$$personaFilePath1=e2e_getResidentData(1,adult,false,Male)", + "step25": "$$templatePath1=e2e_getPacketTemplate(NEW,$$personaFilePath1)", + "step26": "$$zipPacketPath1=e2e_packetcreator(NEW,$$templatePath1)", + "step27": "$$rid1=e2e_ridsync(NEW,$$zipPacketPath1)", + "step28": "e2e_packetsync($$zipPacketPath1)", + "step29": "e2e_setContext(env_context,$$details77,1@@2,true)", + "step30": "e2e_checkStatus(processed,$$rid1)", + "step31": "$$uin1=e2e_getUINByRid($$rid1)", + "step32": "e2e_CheckRIDStage($$rid1,PRINT_SERVICE,PROCESSED)", + "step33": "e2e_Machine(DCOM,$$details77)", + "step34": "$$details77=e2e_User(DELETE_CENTERMAPPING,77@@Techno@123,$$details77)", + "step35": "e2e_Center(DCOM,$$details77,77)" + }, + { + "tc_no": "78", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident booked pre-registration with support documents. Later cancels booked appointment and changes the slot. walk-ins to registration center completes the process and gets UIN card", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "e2e_sendOtp($$personaFilePath)", + "step7": "e2e_validateOtp($$personaFilePath)", + "step8": "$$prid=e2e_preRegister($$personaFilePath)", + "step9": "e2e_uploadDocuments($$personaFilePath,$$prid)", + "step10": "e2e_updatePreRegStatus(0,$$prid,valid)", + "step11": "e2e_bookAppointment(false,$$prid,2)", + "step12": "e2e_cancelAppointment(cancel,$$prid)", + "step13": "e2e_bookAppointment(false,$$prid,3)", + "step14": "$$rid=e2e_generateAndUploadPacket($$prid,$$templatePath)", + "step15": "e2e_checkStatus(processed,$$rid)", + "step16": "$$uin=e2e_getUINByRid($$rid)", + "step17": "e2e_CheckRIDStage($$rid,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "79", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident booked pre-registration with support documents later changes the appointment slot. walk-ins to registration center completes the process and gets UIN card", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "e2e_sendOtp($$personaFilePath)", + "step7": "e2e_validateOtp($$personaFilePath)", + "step8": "$$prid=e2e_preRegister($$personaFilePath)", + "step9": "e2e_uploadDocuments($$personaFilePath,$$prid)", + "step10": "e2e_updatePreRegStatus(0,$$prid,valid)", + "step11": "e2e_bookAppointment(false,$$prid,2)", + "step12": "e2e_bookAppointment(false,$$prid,3)", + "step13": "$$rid=e2e_generateAndUploadPacket($$prid,$$templatePath)", + "step14": "e2e_checkStatus(processed,$$rid)", + "step15": "$$uin=e2e_getUINByRid($$rid)", + "step16": "e2e_CheckRIDStage($$rid,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "80", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident booked pre-registration with support documents and already used the appoinment. walk-ins to registration center with consumed PRID to get the UIN", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "e2e_sendOtp($$personaFilePath)", + "step7": "e2e_validateOtp($$personaFilePath)", + "step8": "$$prid=e2e_preRegister($$personaFilePath)", + "step9": "e2e_uploadDocuments($$personaFilePath,$$prid)", + "step10": "e2e_updatePreRegStatus(0,$$prid,valid)", + "step11": "e2e_bookAppointment(false,$$prid,1)", + "step12": "$$rid=e2e_generateAndUploadPacket($$prid,$$templatePath)", + "step13": "e2e_checkStatus(processed,$$rid)", + "step14": "$$uin=e2e_getUINByRid($$rid)", + "step15": "$$rid2=e2e_generateAndUploadPacket($$prid,$$templatePath)", + "step16": "e2e_postMockMv($$rid2,REJECTED)", + "step17": "e2e_checkStatus(rejected,$$rid2)", + "step18": "e2e_CheckRIDStage($$rid2,DEMOGRAPHIC_VERIFICATION,FAILED)" + }, + { + "tc_no": "52", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Check Syncdata response with upper key index and user with valid roles", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$user52=e2e_User(ADD_User,52@@Techno@123)", + "step2": "$$center52=e2e_Center(CREATE,$$user52,52,T)", + "step3": "$$details52=e2e_Machine(CREATE,$$center52,52)", + "step4": "$$details52=e2e_User(DELETE_CENTERMAPPING,52@@Techno@123,$$details52)", + "step5": "$$details52=e2e_User(CREATE_ZONESEARCH,$$details52)", + "step6": "e2e_wait(10)", + "step7": "e2e_User(DELETE_ZONEMAPPING,$$details52)", + "step8": "e2e_User(CREATE_ZONEMAPPING,$$details52)", + "step9": "e2e_User(ACTIVATE_ZONEMAPPING,$$details52,t)", + "step10": "e2e_User(CREATE_CENTERMAPPING,$$details52,52)", + "step11": "e2e_User(ACTIVATE_CENTERMAPPING,$$details52,T)", + "step12": "e2e_WritePreReq($$details52,52)", + "step13": "$$details52=e2e_ReadPreReq(52)", + "step14": "e2e_wait(9)", + "step15": "$$keyIndex=e2e_SyncData(TPM_VERIFY,$$details52,UPPER)", + "step16": "e2e_SyncData(CLIENT_SETTINGS_VALID,$$keyIndex,52)", + "step17": "e2e_SyncData(LATEST_ID_SCHEMA)", + "step18": "e2e_SyncData(CONFIGS_KEYINDEX,$$keyIndex)", + "step19": "e2e_SyncData(USER_DETAILS,$$details52)", + "step20": "e2e_Machine(DCOM,$$details52)", + "step21": "$$details52=e2e_User(DELETE_CENTERMAPPING,52@@Techno@123,$$details52)", + "step22": "e2e_Center(DCOM,$$details52,52)" + }, + { + "tc_no": "53", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Update machine from centerA to centerB and verify syncdata client settings with centerA", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "e2e_wait(30)", + "step2": "$$user53=e2e_User(ADD_User,53@@Techno@123)", + "step3": "$$center53=e2e_Center(CREATE,$$user53,53,T)", + "step4": "$$details53=e2e_Machine(CREATE,$$center53,53)", + "step5": "$$details53=e2e_User(DELETE_CENTERMAPPING,53@@Techno@123,$$details53)", + "step6": "$$details53=e2e_User(CREATE_ZONESEARCH,$$details53)", + "step7": "e2e_wait(10)", + "step8": "e2e_User(DELETE_ZONEMAPPING,$$details53)", + "step9": "e2e_User(CREATE_ZONEMAPPING,$$details53)", + "step10": "e2e_User(ACTIVATE_ZONEMAPPING,$$details53,t)", + "step11": "e2e_User(CREATE_CENTERMAPPING,$$details53,53)", + "step12": "e2e_User(ACTIVATE_CENTERMAPPING,$$details53,T)", + "step13": "e2e_WritePreReq($$details53,53)", + "step14": "$$user531=e2e_User(ADD_User,531@@Techno@123)", + "step15": "$$center531=e2e_Center(CREATE,$$user531,531,T)", + "step16": "$$details531=e2e_Machine(CREATE,$$center531,531)", + "step17": "$$details531=e2e_User(DELETE_CENTERMAPPING,531@@Techno@123,$$details531)", + "step18": "$$details531=e2e_User(CREATE_ZONESEARCH,$$details531)", + "step19": "e2e_wait(10)", + "step20": "e2e_User(DELETE_ZONEMAPPING,$$details531)", + "step21": "e2e_User(CREATE_ZONEMAPPING,$$details531)", + "step22": "e2e_User(ACTIVATE_ZONEMAPPING,$$details531,t)", + "step23": "e2e_User(CREATE_CENTERMAPPING,$$details531,531)", + "step24": "e2e_User(ACTIVATE_CENTERMAPPING,$$details531,T)", + "step25": "e2e_WritePreReq($$details531,531)", + "step26": "$$details53=e2e_ReadPreReq(53)", + "step27": "$$details531=e2e_ReadPreReq(531)", + "step28": "e2e_wait(9)", + "step29": "$$keyIndex=e2e_SyncData(TPM_VERIFY,$$details53,UPPER)", + "step30": "e2e_SyncData(CLIENT_SETTINGS_VALID,$$keyIndex,53)", + "step31": "$$details53=e2e_Machine(UPDATE,$$details531,531)", + "step32": "e2e_SyncData(CLIENT_SETTINGS_INVALID,$$keyIndex,53)", + "step33": "$$details53=e2e_Machine(UPDATE,$$details53,53)", + "step34": "e2e_Machine(DCOM,$$details53)", + "step35": "$$details53=e2e_User(DELETE_CENTERMAPPING,53@@Techno@123,$$details53)", + "step36": "e2e_Center(DCOM,$$details53,53)", + "step37": "e2e_Machine(DCOM,$$details531)", + "step38": "$$details531=e2e_User(DELETE_CENTERMAPPING,531@@Techno@123,$$details531)", + "step39": "e2e_Center(DCOM,$$details531,531)" + }, + { + "tc_no": "54", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Inactive machine and verify syncdata client settings calls", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "e2e_wait(40)", + "step2": "$$user54=e2e_User(ADD_User,54@@Techno@123)", + "step3": "$$center54=e2e_Center(CREATE,$$user54,54,T)", + "step4": "$$details54=e2e_Machine(CREATE,$$center54,54)", + "step5": "$$details54=e2e_User(DELETE_CENTERMAPPING,54@@Techno@123,$$details54)", + "step6": "$$details54=e2e_User(CREATE_ZONESEARCH,$$details54)", + "step7": "e2e_wait(10)", + "step8": "e2e_User(DELETE_ZONEMAPPING,$$details54)", + "step9": "e2e_User(CREATE_ZONEMAPPING,$$details54)", + "step10": "e2e_User(ACTIVATE_ZONEMAPPING,$$details54,t)", + "step11": "e2e_User(CREATE_CENTERMAPPING,$$details54,54)", + "step12": "e2e_User(ACTIVATE_CENTERMAPPING,$$details54,T)", + "step13": "e2e_WritePreReq($$details54,54)", + "step14": "$$details54=e2e_ReadPreReq(54)", + "step15": "e2e_Machine(ACTIVE_FLAG,$$details54,54,F)", + "step16": "e2e_wait(9)", + "step17": "$$keyIndex=e2e_SyncData(TPM_VERIFY,$$details54,UPPER)", + "step18": "e2e_SyncData(CLIENT_SETTINGS_VALID,$$keyIndex,54)", + "step19": "e2e_SyncData(CONFIGS_KEYINDEX,$$keyIndex)", + "step20": "e2e_SyncData(USER_DETAILS,$$details54)", + "step21": "e2e_Machine(ACTIVE_FLAG,$$details54,54,T)", + "step22": "e2e_Machine(DCOM,$$details54)", + "step23": "$$details54=e2e_User(DELETE_CENTERMAPPING,54@@Techno@123,$$details54)", + "step24": "e2e_Center(DCOM,$$details54,54)" + }, + { + "tc_no": "55", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Decommission machine and verify syncdata client settings calls", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "e2e_wait(50)", + "step2": "$$user55=e2e_User(ADD_User,55@@Techno@123)", + "step3": "$$center55=e2e_Center(CREATE,$$user55,55,T)", + "step4": "$$details55=e2e_Machine(CREATE,$$center55,55)", + "step5": "$$details55=e2e_User(DELETE_CENTERMAPPING,55@@Techno@123,$$details55)", + "step6": "$$details55=e2e_User(CREATE_ZONESEARCH,$$details55)", + "step7": "e2e_wait(10)", + "step8": "e2e_User(DELETE_ZONEMAPPING,$$details55)", + "step9": "e2e_User(CREATE_ZONEMAPPING,$$details55)", + "step10": "e2e_User(ACTIVATE_ZONEMAPPING,$$details55,t)", + "step11": "e2e_User(CREATE_CENTERMAPPING,$$details55,55)", + "step12": "e2e_User(ACTIVATE_CENTERMAPPING,$$details55,T)", + "step13": "e2e_WritePreReq($$details55,55)", + "step14": "$$details55=e2e_ReadPreReq(55)", + "step15": "e2e_Machine(DCOM,$$details55)", + "step16": "e2e_wait(9)", + "step17": "$$keyIndex=e2e_SyncData(TPM_VERIFY_INVALID,$$details55,UPPER)", + "step18": "$$details55=e2e_User(DELETE_CENTERMAPPING,55@@Techno@123,$$details55)", + "step19": "e2e_Center(DCOM,$$details55,55)" + }, + { + "tc_no": "56", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Decommission center and verify USER_DETAILS syncdata calls ", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "e2e_wait(60)", + "step2": "$$user56=e2e_User(ADD_User,56@@Techno@123)", + "step3": "$$center56=e2e_Center(CREATE,$$user56,56,T)", + "step4": "$$details56=e2e_Machine(CREATE,$$center56,56)", + "step5": "$$details56=e2e_User(DELETE_CENTERMAPPING,56@@Techno@123,$$details56)", + "step6": "$$details56=e2e_User(CREATE_ZONESEARCH,$$details56)", + "step7": "e2e_wait(10)", + "step8": "e2e_User(DELETE_ZONEMAPPING,$$details56)", + "step9": "e2e_User(CREATE_ZONEMAPPING,$$details56)", + "step10": "e2e_User(ACTIVATE_ZONEMAPPING,$$details56,t)", + "step11": "e2e_User(CREATE_CENTERMAPPING,$$details56,56)", + "step12": "e2e_User(ACTIVATE_CENTERMAPPING,$$details56,T)", + "step13": "e2e_WritePreReq($$details56,56)", + "step14": "$$details56=e2e_ReadPreReq(56)", + "step15": "$$details56=e2e_User(DELETE_CENTERMAPPING,56@@Techno@123,$$details56)", + "step16": "e2e_Machine(REMOVE_CENTER,$$details56)", + "step17": "e2e_Center(DCOM,$$details56,56)", + "step18": "e2e_wait(9)", + "step19": "$$keyIndex=e2e_SyncData(TPM_VERIFY,$$details56,UPPER)", + "step20": "e2e_SyncData(CONFIGS_KEYINDEX,$$keyIndex)", + "step21": "e2e_SyncData(USER_DETAILS_INVALID,$$details56)", + "step22": "e2e_Machine(DCOM,$$details56)" + }, + { + "tc_no": "57", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Deactivate center and verify CLIENT_SETTINGS syncdata client settings calls ", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "e2e_wait(70)", + "step2": "$$user57=e2e_User(ADD_User,57@@Techno@123)", + "step3": "$$center57=e2e_Center(CREATE,$$user57,57,T)", + "step4": "$$details57=e2e_Machine(CREATE,$$center57,57)", + "step5": "$$details57=e2e_User(DELETE_CENTERMAPPING,57@@Techno@123,$$details57)", + "step6": "$$details57=e2e_User(CREATE_ZONESEARCH,$$details57)", + "step7": "e2e_wait(10)", + "step8": "e2e_User(DELETE_ZONEMAPPING,$$details57)", + "step9": "e2e_User(CREATE_ZONEMAPPING,$$details57)", + "step10": "e2e_User(ACTIVATE_ZONEMAPPING,$$details57,t)", + "step11": "e2e_User(CREATE_CENTERMAPPING,$$details57,57)", + "step12": "e2e_User(ACTIVATE_CENTERMAPPING,$$details57,T)", + "step13": "e2e_WritePreReq($$details57,57)", + "step14": "$$details57=e2e_ReadPreReq(57)", + "step15": "$$details57=e2e_User(DELETE_CENTERMAPPING,57@@Techno@123,$$details57)", + "step16": "e2e_Machine(REMOVE_CENTER,$$details57)", + "step17": "e2e_Center(ACTIVE_FLAG,$$details57,57,F)", + "step18": "e2e_wait(9)", + "step19": "$$keyIndex=e2e_SyncData(TPM_VERIFY,$$details57,UPPER)", + "step20": "e2e_SyncData(CONFIGS_KEYINDEX,$$keyIndex)", + "step21": "e2e_SyncData(CLIENT_SETTINGS_INVALID,$$keyIndex,57)", + "step22": "e2e_Machine(DCOM,$$details57)", + "step23": "e2e_Center(DCOM,$$details57,57)" + }, + { + "tc_no": "81", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process but packet gets reprocessed before Abis returns for success check ", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$modalityHashValue=e2e_getBioModalityHash(-1,Right IndexFinger@@Left LittleFinger,$$personaFilePath)", + "step7": "e2e_configureMockAbis(-1,Right IndexFinger,false,Right IndexFinger,$$personaFilePath,$$modalityHashValue,-1,@@Success)", + "step8": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step9": "e2e_checkStatus(processed,$$rid)", + "step10": "$$uin=e2e_getUINByRid($$rid)", + "step11": "e2e_DeleteMockExpect()", + "step12": "e2e_CheckRIDStage($$rid,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "82", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process but packet gets reprocessed before Abis returns for fail check ", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$modalityHashValue=e2e_getBioModalityHash(-1,Right IndexFinger@@Left LittleFinger,$$personaFilePath)", + "step7": "e2e_configureMockAbis(-1,Right IndexFinger,false,Right IndexFinger,$$personaFilePath,$$modalityHashValue,delay,10@@Error)", + "step8": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step9": "e2e_checkStatus(processed,$$rid)", + "step10": "$$uin=e2e_getUINByRid($$rid)", + "step11": "e2e_DeleteMockExpect()", + "step12": "e2e_CheckRIDStage($$rid,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "83", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process with biometric exception for face and iris and gets UIN card. Later updates Biometric data for face and iris and performs authentication with face biometrics", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male,leftIris@@rightIris@@face)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_wait(90)", + "step10": "e2e_updateDemoOrBioDetails(face@@leftiris@@rightIris,0,0,$$personaFilePath)", + "step11": "e2e_updateResidentWithUIN($$personaFilePath,$$uin)", + "step12": "$$updateTemplate=e2e_getPacketTemplate(UPDATE,$$personaFilePath)", + "step13": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$updateTemplate)", + "step14": "e2e_checkStatus(processed,$$rid2)", + "step15": "$$uin2=e2e_getUINByRid($$rid2)", + "step16": "$$email=e2e_getEmailByUIN($$uin2)", + "step17": "e2e_wait(90)", + "step18": "$$vid=e2e_generateVID(Perpetual,$$uin2,$$email)", + "step19": "e2e_wait(90)", + "step20": "e2e_bioAuthentication(faceDevice,$$uin2,$$vid,$$personaFilePath)", + "step21": "$$clientId=e2e_OidcClient()", + "step22": "$$transactionId1=e2e_OAuthDetailsRequest($$clientId,transactionId1)", + "step23": "$$transactionId2=e2e_OAuthDetailsRequest($$clientId,transactionId2)", + "step24": "e2e_BioEsignetAuthentication(faceDevice,$$uin2,$$personaFilePath,$$transactionId1,$$vid,$$transactionId2)", + "step25": "e2e_UserInfo($$transactionId,$$clientId)" + }, + { + "tc_no": "84", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process but the device certificate got expired before uploading the packet", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false,true)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(reregister,$$rid)" + }, + { + "tc_no": "85", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process. But due to low biometric image quality.. correction flow is initiated. Resident provides biometrics with good quality but invalid correction request ID", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "e2e_updateDemoOrBioDetails(0,0,email=additionalReqId_85,$$personaFilePath)", + "step6": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath,15)", + "step7": "$$zipPacketPath=e2e_packetcreator(NEW,$$templatePath)", + "step8": "$$rid=e2e_ridsync(NEW,$$zipPacketPath)", + "step9": "e2e_packetsync($$zipPacketPath)", + "step10": "$$personaFilePath2=e2e_getResidentData(1,adult,false,Male)", + "step11": "$$templatePath2=e2e_getPacketTemplate(BIOMETRIC_CORRECTION,$$personaFilePath2)", + "step12": "$$zipPacketPath2=e2e_packetcreator(BIOMETRIC_CORRECTION,$$templatePath2,11111111111111111111111111111)", + "step13": "$$rid2=e2e_ridsync(BIOMETRIC_CORRECTION,$$zipPacketPath2,11111111111111111111111111111)", + "step14": "e2e_packetsync($$zipPacketPath2,false)" + }, + { + "tc_no": "86", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process. But due to low biometric image quality.. correction flow is initiated. Resident provides biometrics with good quality but biometrics matches with other resident biometrics", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step4": "e2e_updateDemoOrBioDetails(0,0,email=additionalReqId_86,$$personaFilePath)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$zipPacketPath=e2e_packetcreator(NEW,$$templatePath)", + "step7": "$$rid=e2e_ridsync(NEW,$$zipPacketPath)", + "step8": "$$modalityHashValue=e2e_getBioModalityHash(-1,Right IndexFinger@@Left LittleFinger,$$personaFilePath)", + "step9": "e2e_configureMockAbis(-1,Right IndexFinger,true,Right IndexFinger,$$personaFilePath,$$modalityHashValue,-1,@@Duplicate)", + "step10": "e2e_packetsync($$zipPacketPath)", + "step11": "$$templatePath1=e2e_getPacketTemplate(NEW,$$personaFilePath,15)", + "step12": "$$zipPacketPath1=e2e_packetcreator(NEW,$$templatePath1)", + "step13": "$$rid1=e2e_ridsync(NEW,$$zipPacketPath1)", + "step14": "e2e_packetsync($$zipPacketPath1)", + "step15": "$$additionalReqId=e2e_getAdditionalReqId(additionalReqId_86)", + "step16": "$$templatePath2=e2e_getPacketTemplate(BIOMETRIC_CORRECTION,$$personaFilePath)", + "step17": "$$zipPacketPath2=e2e_packetcreator(BIOMETRIC_CORRECTION,$$templatePath2,$$additionalReqId)", + "step18": "$$rid2=e2e_ridsync(BIOMETRIC_CORRECTION,$$zipPacketPath2,$$additionalReqId)", + "step19": "e2e_packetsync($$zipPacketPath2)", + "step20": "e2e_checkStatus(processed,$$rid2)" + }, + { + "tc_no": "87", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process. But due to low biometric image quality.. correction flow is initiated. Resident provides biometrics with good quality but multiple correction packets with same correction Request ID. Only first correction packet will be processed and gets UIN card", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "e2e_updateDemoOrBioDetails(0,0,email=additionalReqId_87,$$personaFilePath)", + "step6": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath,10)", + "step7": "$$zipPacketPath=e2e_packetcreator(NEW,$$templatePath)", + "step8": "$$rid=e2e_ridsync(NEW,$$zipPacketPath)", + "step9": "e2e_packetsync($$zipPacketPath)", + "step10": "e2e_CheckRIDStage($$rid,INTERNAL_WORKFLOW_ACTION,SUCCESS,RPR-WIA-001)", + "step11": "$$additionalReqId=e2e_getAdditionalReqId(additionalReqId_87)", + "step12": "$$personaFilePath2=e2e_getResidentData(1,adult,false,Male)", + "step13": "$$templatePath2=e2e_getPacketTemplate(BIOMETRIC_CORRECTION,$$personaFilePath2)", + "step14": "$$zipPacketPath2=e2e_packetcreator(BIOMETRIC_CORRECTION,$$templatePath2,$$additionalReqId)", + "step15": "$$rid2=e2e_ridsync(BIOMETRIC_CORRECTION,$$zipPacketPath2,$$additionalReqId)", + "step16": "e2e_packetsync($$zipPacketPath2)", + "step17": "e2e_checkStatus(processed,$$rid2)", + "step18": "$$uin=e2e_getUINByRid($$rid2)", + "step19": "$$personaFilePath3=e2e_getResidentData(1,adult,false,Male)", + "step20": "$$templatePath3=e2e_getPacketTemplate(BIOMETRIC_CORRECTION,$$personaFilePath3)", + "step21": "$$zipPacketPath3=e2e_packetcreator(BIOMETRIC_CORRECTION,$$templatePath3,$$additionalReqId)", + "step22": "$$rid3=e2e_ridsync(BIOMETRIC_CORRECTION,$$zipPacketPath3,$$additionalReqId)", + "step23": "e2e_packetsync($$zipPacketPath3)", + "step24": "e2e_CheckRIDStage($$rid3,SECUREZONE_NOTIFICATION,REJECTED)" + }, + { + "tc_no": "88", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process. But due to low biometric image quality.. correction flow is initiated. Resident never provided biometrics with good quality. Original packet gets resumed after the PAUSE correction for elapsed time and reject the packet", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "e2e_updateDemoOrBioDetails(0,0,email=additionalReqId_88,$$personaFilePath)", + "step6": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath,15)", + "step7": "$$zipPacketPath=e2e_packetcreator(NEW,$$templatePath)", + "step8": "$$rid=e2e_ridsync(NEW,$$zipPacketPath)", + "step9": "e2e_packetsync($$zipPacketPath)", + "step10": "e2e_checkStatus(processed,$$rid)", + "step11": "e2e_CheckRIDStage($$rid,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "89", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process. But due to low biometric image quality.. correction flow is initiated. Resident provides biometrics but still quality is not good. After max number of corrections (correction packets)the original packet gets rejected", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "e2e_updateDemoOrBioDetails(0,0,email=additionalReqId_89,$$personaFilePath)", + "step6": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath,15)", + "step7": "$$zipPacketPath=e2e_packetcreator(NEW,$$templatePath)", + "step8": "$$rid=e2e_ridsync(NEW,$$zipPacketPath)", + "step9": "e2e_packetsync($$zipPacketPath)", + "step10": "e2e_CheckRIDStage($$rid,INTERNAL_WORKFLOW_ACTION,SUCCESS,RPR-WIA-001)", + "step11": "$$additionalReqId=e2e_getAdditionalReqId(additionalReqId_89)", + "step12": "$$personaFilePath2=e2e_getResidentData(1,adult,false,Male)", + "step13": "$$templatePath2=e2e_getPacketTemplate(BIOMETRIC_CORRECTION,$$personaFilePath2,20)", + "step14": "$$zipPacketPath2=e2e_packetcreator(BIOMETRIC_CORRECTION,$$templatePath2,$$additionalReqId)", + "step15": "$$rid2=e2e_ridsync(BIOMETRIC_CORRECTION,$$zipPacketPath2,$$additionalReqId)", + "step16": "e2e_packetsync($$zipPacketPath2)", + "step17": "e2e_checkStatus(processed,$$rid2)", + "step18": "$$additionalReqId2=e2e_getAdditionalReqId(additionalReqId_89)", + "step19": "$$personaFilePath3=e2e_getResidentData(1,adult,false,Male)", + "step20": "$$templatePath3=e2e_getPacketTemplate(BIOMETRIC_CORRECTION,$$personaFilePath3,30)", + "step21": "$$zipPacketPath3=e2e_packetcreator(BIOMETRIC_CORRECTION,$$templatePath3,$$additionalReqId2)", + "step22": "$$rid3=e2e_ridsync(BIOMETRIC_CORRECTION,$$zipPacketPath3,$$additionalReqId2)", + "step23": "e2e_packetsync($$zipPacketPath3)", + "step24": "e2e_checkStatus(processed,$$rid3)", + "step25": "e2e_checkStatus(rejected,$$rid)" + }, + { + "tc_no": "90", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process. But due to low biometric image quality.. correction flow is initiated. Resident provides biometrics with good quality but by then packet kicks-in for the original packet", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "e2e_updateDemoOrBioDetails(0,0,email=additionalReqId_90,$$personaFilePath)", + "step6": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath,15)", + "step7": "$$zipPacketPath=e2e_packetcreator(NEW,$$templatePath)", + "step8": "$$rid=e2e_ridsync(NEW,$$zipPacketPath)", + "step9": "e2e_packetsync($$zipPacketPath)", + "step10": "e2e_CheckRIDStage($$rid,INTERNAL_WORKFLOW_ACTION,SUCCESS,RPR-WIA-001)", + "step11": "$$additionalReqId=e2e_getAdditionalReqId(additionalReqId_90)", + "step12": "$$personaFilePath2=e2e_getResidentData(1,adult,false,Male)", + "step13": "$$templatePath2=e2e_getPacketTemplate(BIOMETRIC_CORRECTION,$$personaFilePath2)", + "step14": "$$zipPacketPath2=e2e_packetcreator(BIOMETRIC_CORRECTION,$$templatePath2,$$additionalReqId)", + "step15": "e2e_wait(true)", + "step16": "$$rid2=e2e_ridsync(BIOMETRIC_CORRECTION,$$zipPacketPath2,$$additionalReqId)", + "step17": "e2e_packetsync($$zipPacketPath2)", + "step18": "e2e_checkStatus(processed,$$rid2)", + "step19": "$$uin=e2e_getUINByRid($$rid2)" + }, + { + "tc_no": "91", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process. But due to low biometric image quality.. correction flow is initiated. Resident provides biometrics with good quality but by the time correction packet timeout happens. So the original packet gets rejected", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "e2e_updateDemoOrBioDetails(0,0,email=additionalReqId_91,$$personaFilePath)", + "step6": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath,15)", + "step7": "$$zipPacketPath=e2e_packetcreator(NEW,$$templatePath)", + "step8": "$$rid=e2e_ridsync(NEW,$$zipPacketPath)", + "step9": "e2e_packetsync($$zipPacketPath)", + "step10": "e2e_CheckRIDStage($$rid,INTERNAL_WORKFLOW_ACTION,SUCCESS,RPR-WIA-001)", + "step11": "$$additionalReqId=e2e_getAdditionalReqId(additionalReqId_91)", + "step12": "$$personaFilePath2=e2e_getResidentData(1,adult,false,Male)", + "step13": "$$templatePath2=e2e_getPacketTemplate(BIOMETRIC_CORRECTION,$$personaFilePath2)", + "step14": "$$zipPacketPath2=e2e_packetcreator(BIOMETRIC_CORRECTION,$$templatePath2,$$additionalReqId)", + "step15": "e2e_wait(true)", + "step16": "$$rid2=e2e_ridsync(BIOMETRIC_CORRECTION,$$zipPacketPath2,$$additionalReqId)", + "step17": "e2e_packetsync($$zipPacketPath2)", + "step18": "e2e_checkStatus(processed,$$rid2)", + "step19": "$$uin=e2e_getUINByRid($$rid2)" + }, + { + "tc_no": "92", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident Minor Child walk-ins to registration center wants to get UIN Guardian Details. Later again tries to get another UIN", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$childPersona=e2e_getResidentData(1,minor,true,Male)", + "step5": "$$parentPersona=e2e_getResidentData(1,adult,false,Male)", + "step6": "$$parentTemplate=e2e_getPacketTemplate(NEW,$$parentPersona)", + "step7": "$$parentRid=e2e_generateAndUploadPacketSkippingPrereg($$parentPersona,$$parentTemplate)", + "step8": "e2e_checkStatus(processed,$$parentRid)", + "step9": "$$parentUin=e2e_getUINByRid($$parentRid)", + "step10": "e2e_updateResidentWithRID($$parentPersona,$$parentRid)", + "step11": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona,$$childPersona)", + "step12": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step13": "$$childRid=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$childTemplate)", + "step14": "e2e_checkStatus(processed,$$childRid)", + "step15": "$$childUin=e2e_getUINByRid($$childRid)", + "step16": "e2e_CheckRIDStage($$childRid,VERIFICATION,SUCCESS)", + "step17": "$$modalityHashValue=e2e_getBioModalityHash(-1,Right IndexFinger@@Left LittleFinger,$$childPersona)", + "step18": "e2e_configureMockAbis(-1,Right IndexFinger,true,Right IndexFinger,$$childPersona,$$modalityHashValue,-1,@@Duplicate)", + "step19": "$$childRid2=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$childTemplate)", + "step20": "e2e_postMockMv($$childRid2,REJECTED)", + "step21": "e2e_checkStatus(rejected,$$childRid2)" + }, + { + "tc_no": "93", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Inji - Resident walk-ins to registration center completes the process with low(30KB) face image size and gets UIN card", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "e2e_updateDemoOrBioDetails(0,0,name=AutomationName,$$personaFilePath)", + "step6": "e2e_updateDemoOrBioDetails(0,0,email=john,$$personaFilePath)", + "step7": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step8": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step9": "e2e_checkStatus(processed,$$rid)", + "step10": "$$uin=e2e_getUINByRid($$rid)", + "step11": "$$email=e2e_getEmailByUIN($$uin)", + "step12": "e2e_wait(90)", + "step13": "$$vid=e2e_generateVID(Perpetual,$$uin,$$email)" + }, + { + "tc_no": "94", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Inji - Resident walk-ins to registration center completes the process with high(276KB) face image size and gets UIN card", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "e2e_updateDemoOrBioDetails(0,0,name=AutomationName,$$personaFilePath)", + "step6": "e2e_updateDemoOrBioDetails(0,0,email=rob,$$personaFilePath)", + "step7": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step8": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step9": "e2e_checkStatus(processed,$$rid)", + "step10": "$$uin=e2e_getUINByRid($$rid)", + "step11": "$$email=e2e_getEmailByUIN($$uin)", + "step12": "e2e_wait(90)", + "step13": "$$vid=e2e_generateVID(Perpetual,$$uin,$$email)" + }, + { + "tc_no": "95", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Two resident walk-ins to registration center tries to get UIN with different demographic details and same biometrics except one finger", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid1=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_wait(10)", + "step8": "e2e_checkStatus(processed,$$rid1)", + "step9": "$$uin1=e2e_getUINByRid($$rid1)", + "step10": "e2e_CheckRIDStage($$rid1,PRINT_SERVICE,PROCESSED)", + "step11": "e2e_setContext(env_context,$$details1,1@@2,false,null@@99)", + "step12": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step13": "$$templatePathNew=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step14": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePathNew)", + "step15": "e2e_wait(10)", + "step16": "e2e_checkStatus(processed,$$rid2)", + "step17": "$$uin2=e2e_getUINByRid($$rid2)", + "step18": "e2e_CheckRIDStage($$rid2,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "96", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Two resident walk-ins to registration center tries to get UIN with same demographic details and same biometrics except one finger", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "e2e_updateDemoOrBioDetails(0,0,email=john,$$personaFilePath)", + "step6": "e2e_updateDemoOrBioDetails(0,0,name=AutomationName,$$personaFilePath)", + "step7": "e2e_updateDemoOrBioDetails(0,0,phone=9513209874,$$personaFilePath)", + "step8": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step9": "$$rid1=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step10": "e2e_wait(10)", + "step11": "e2e_checkStatus(processed,$$rid1)", + "step12": "$$uin1=e2e_getUINByRid($$rid1)", + "step13": "e2e_CheckRIDStage($$rid1,PRINT_SERVICE,PROCESSED)", + "step14": "e2e_setContext(env_context,$$details1,1@@2,false,null@@99)", + "step15": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step16": "e2e_updateDemoOrBioDetails(0,0,email=john,$$personaFilePath)", + "step17": "e2e_updateDemoOrBioDetails(0,0,name=AutomationName,$$personaFilePath)", + "step18": "e2e_updateDemoOrBioDetails(0,0,phone=9513209874,$$personaFilePath)", + "step19": "$$templatePathNew=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step20": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePathNew)", + "step21": "e2e_wait(10)", + "step22": "e2e_checkStatus(processed,$$rid2)", + "step23": "$$uin2=e2e_getUINByRid($$rid2)", + "step24": "e2e_CheckRIDStage($$rid2,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "97", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process with only face biometrics and without exception", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male@@false@@false@@true)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_CheckRIDStage($$rid,BIOGRAPHIC_VERIFICATION,REPROCESS)" + }, + { + "tc_no": "98", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process without biometrics and exception", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male@@false@@false@@false)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_CheckRIDStage($$rid,VALIDATE_PACKET,FAILED)" + }, + { + "tc_no": "99", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Minor_New", + "description": "Resident Minor Child walk-ins to registration center gets UIN with parent RID details", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$parentPersona=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$parentTemplate=e2e_getPacketTemplate(NEW,$$parentPersona)", + "step6": "$$parentRid=e2e_generateAndUploadPacketSkippingPrereg($$parentPersona,$$parentTemplate)", + "step7": "e2e_checkStatus(processed,$$parentRid)", + "step8": "$$parentUin=e2e_getUINByRid($$parentRid)", + "step9": "e2e_updateResidentWithUIN($$parentPersona,$$parentUin)", + "step10": "$$childPersona=e2e_getResidentData(1,minor,true,Male)", + "step11": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona,$$childPersona)", + "step12": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step13": "$$childRid=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$childTemplate)", + "step14": "e2e_checkStatus(processed,$$childRid)", + "step15": "$$childUin=e2e_getUINByRid($$childRid)", + "step16": "e2e_CheckRIDStage($$childRid,INTRODUCER_VALIDATION,SUCCESS)", + "step17": "e2e_CheckRIDStage($$childRid,VERIFICATION,SUCCESS)" + }, + { + "tc_no": "100", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Minor_New", + "description": "Resident Minor Child walk-ins to registration center tries to get UIN with parent RID details without biometrics and without Exception", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$parentPersona=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$parentTemplate=e2e_getPacketTemplate(NEW,$$parentPersona)", + "step6": "$$parentRid=e2e_generateAndUploadPacketSkippingPrereg($$parentPersona,$$parentTemplate)", + "step7": "e2e_checkStatus(processed,$$parentRid)", + "step8": "$$parentUin=e2e_getUINByRid($$parentRid)", + "step9": "e2e_updateResidentWithUIN($$parentPersona,$$parentUin)", + "step10": "$$childPersona=e2e_getResidentData(1,minor,true,Male@@false@@false@@false)", + "step11": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona,$$childPersona)", + "step12": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step13": "$$childRid=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$childTemplate)", + "step14": "e2e_checkStatus(REREGISTER,$$childRid)", + "step15": "e2e_CheckRIDStage($$childRid,VALIDATE_PACKET,FAILED)" + }, + { + "tc_no": "101", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Minor_New", + "description": "Resident Minor Child walk-ins to registration center tries to get UIN with parent RID details with only face biometrics and without Exception", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$parentPersona=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$parentTemplate=e2e_getPacketTemplate(NEW,$$parentPersona)", + "step6": "$$parentRid=e2e_generateAndUploadPacketSkippingPrereg($$parentPersona,$$parentTemplate)", + "step7": "e2e_checkStatus(processed,$$parentRid)", + "step8": "$$parentUin=e2e_getUINByRid($$parentRid)", + "step9": "e2e_updateResidentWithUIN($$parentPersona,$$parentUin)", + "step10": "$$childPersona=e2e_getResidentData(1,minor,true,Male@@false@@false@@true)", + "step11": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona,$$childPersona)", + "step12": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step13": "$$childRid=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$childTemplate)", + "step14": "e2e_CheckRIDStage($$childRid,BIOGRAPHIC_VERIFICATION,REPROCESS)" + }, + { + "tc_no": "102", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "New_Infant", + "description": "Resident Infant walk-ins to registration center gets UIN with parent RID details", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$parentPersona=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$parentTemplate=e2e_getPacketTemplate(NEW,$$parentPersona)", + "step6": "$$parentRid=e2e_generateAndUploadPacketSkippingPrereg($$parentPersona,$$parentTemplate)", + "step7": "e2e_checkStatus(processed,$$parentRid)", + "step8": "$$parentUin=e2e_getUINByRid($$parentRid)", + "step9": "e2e_updateResidentWithUIN($$parentPersona,$$parentUin)", + "step10": "$$childPersona=e2e_getResidentData(1,infant,true,Male@@false@@false@@true)", + "step11": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona,$$childPersona)", + "step12": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step13": "$$childRid=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$childTemplate)", + "step14": "e2e_checkStatus(processed,$$childRid)", + "step15": "$$childUin=e2e_getUINByRid($$childRid)", + "step16": "e2e_CheckRIDStage($$childRid,INTRODUCER_VALIDATION,SUCCESS)", + "step17": "e2e_CheckRIDStage($$childRid,VERIFICATION,SUCCESS)" + }, + { + "tc_no": "103", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "New_Infant", + "description": "Resident Infant walk-ins to registration center tries to get UIN with parent RID details without biometrics", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$parentPersona=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$parentTemplate=e2e_getPacketTemplate(NEW,$$parentPersona)", + "step6": "$$parentRid=e2e_generateAndUploadPacketSkippingPrereg($$parentPersona,$$parentTemplate)", + "step7": "e2e_checkStatus(processed,$$parentRid)", + "step8": "$$parentUin=e2e_getUINByRid($$parentRid)", + "step9": "e2e_updateResidentWithUIN($$parentPersona,$$parentUin)", + "step10": "$$childPersona=e2e_getResidentData(1,infant,true,Male@@false@@false@@false)", + "step11": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona,$$childPersona)", + "step12": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step13": "$$childRid=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$childTemplate)", + "step14": "e2e_CheckRIDStage($$childRid,VALIDATE_PACKET,FAILED)" + }, + { + "tc_no": "104", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Minor_New", + "description": "Resident Minor Child walk-ins to registration center completes the process and gets UIN card and generates Perpetual VID. Later performs biometric demogphic OTP authentication both using UIN and VID", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$parentPersona=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$parentTemplate=e2e_getPacketTemplate(NEW,$$parentPersona)", + "step6": "$$parentRid=e2e_generateAndUploadPacketSkippingPrereg($$parentPersona,$$parentTemplate)", + "step7": "e2e_checkStatus(processed,$$parentRid)", + "step8": "$$parentUin=e2e_getUINByRid($$parentRid)", + "step9": "e2e_updateResidentWithUIN($$parentPersona,$$parentUin)", + "step10": "$$childPersona=e2e_getResidentData(1,minor,true,Male)", + "step11": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona,$$childPersona)", + "step12": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step13": "$$childRid=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$childTemplate)", + "step14": "e2e_checkStatus(processed,$$childRid)", + "step15": "$$childUin=e2e_getUINByRid($$childRid)", + "step16": "e2e_CheckRIDStage($$childRid,VERIFICATION,SUCCESS)", + "step17": "$$email=e2e_getEmailByUIN($$childUin)", + "step18": "e2e_CheckRIDStage($$childRid,INTRODUCER_VALIDATION,SUCCESS)", + "step19": "e2e_wait(90)", + "step20": "$$vidwithoutotp=e2e_GenerateVIDWithoutOTP(Perpetual,$$childUin)", + "step21": "e2e_wait(90)", + "step22": "e2e_demoAuthentication(name,$$childUin,$$childPersona,$$vidwithoutotp)", + "step23": "e2e_bioAuthentication(faceDevice,$$childUin,$$vidwithoutotp,$$childPersona)", + "step24": "e2e_bioAuthentication(LeftIris,$$childUin,$$vidwithoutotp,$$childPersona)", + "step25": "e2e_bioAuthentication(leftRingDevice,$$childUin,$$vidwithoutotp,$$childPersona)", + "step26": "e2e_otpAuthentication(uin,$$childUin,vid,$$vidwithoutotp,$$email)" + }, + { + "tc_no": "105", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "New_Infant", + "description": "Resident Minor Child walk-ins to registration center completes the process and gets UIN card and generates Perpetual VID. Later performs biometric demogphic authentication both using UIN and VID", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$parentPersona=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$parentTemplate=e2e_getPacketTemplate(NEW,$$parentPersona)", + "step6": "$$parentRid=e2e_generateAndUploadPacketSkippingPrereg($$parentPersona,$$parentTemplate)", + "step7": "e2e_checkStatus(processed,$$parentRid)", + "step8": "$$parentUin=e2e_getUINByRid($$parentRid)", + "step9": "e2e_updateResidentWithUIN($$parentPersona,$$parentUin)", + "step10": "$$childPersona=e2e_getResidentData(1,infant,true,Male@@false@@false@@true)", + "step11": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona,$$childPersona)", + "step12": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step13": "$$childRid=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$childTemplate)", + "step14": "e2e_checkStatus(processed,$$childRid)", + "step15": "$$childUin=e2e_getUINByRid($$childRid)", + "step16": "$$email=e2e_getEmailByUIN($$childUin)", + "step17": "e2e_CheckRIDStage($$childRid,INTRODUCER_VALIDATION,SUCCESS)", + "step18": "e2e_wait(90)", + "step19": "$$vidwithoutotp=e2e_GenerateVIDWithoutOTP(Perpetual,$$childUin)", + "step20": "e2e_wait(90)", + "step21": "e2e_demoAuthentication(name,$$childUin,$$childPersona,$$vidwithoutotp)", + "step22": "e2e_CheckRIDStage($$childRid,VERIFICATION,SUCCESS)" + }, + { + "tc_no": "106", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "", + "group_name": "Minor_New", + "description": "Resident Minor Child walk-ins walk-ins to registration center tries get Lost UIN", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$parentPersona=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$parentTemplate=e2e_getPacketTemplate(NEW,$$parentPersona)", + "step6": "$$parentRid=e2e_generateAndUploadPacketSkippingPrereg($$parentPersona,$$parentTemplate)", + "step7": "e2e_checkStatus(processed,$$parentRid)", + "step8": "$$parentUin=e2e_getUINByRid($$parentRid)", + "step9": "e2e_updateResidentWithUIN($$parentPersona,$$parentUin)", + "step10": "$$childPersona=e2e_getResidentData(1,minor,true,Male)", + "step11": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona,$$childPersona)", + "step12": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step13": "$$childRid=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$childTemplate)", + "step14": "e2e_checkStatus(processed,$$childRid)", + "step15": "$$childUin=e2e_getUINByRid($$childRid)", + "step16": "$$lostTemplate=e2e_getPacketTemplate(LOST,$$childPersona)", + "step17": "$$modalityHashValue=e2e_getBioModalityHash(-1,Right IndexFinger@@Left LittleFinger,$$childPersona)", + "step18": "e2e_configureMockAbis(-1,Right IndexFinger,true,Right IndexFinger,$$childPersona,$$modalityHashValue,-1,@@Duplicate)", + "step19": "$$zipPacketPath=e2e_packetcreator(LOST,$$lostTemplate)", + "step20": "$$ridLost=e2e_ridsync(LOST,$$zipPacketPath)", + "step21": "e2e_packetsync($$zipPacketPath)", + "step22": "e2e_checkStatus(processed,$$ridLost)", + "step23": "$$uin2=e2e_getUINByRid($$ridLost)", + "step24": "e2e_CheckRIDStage($$ridLost,PRINT_SERVICE,PROCESSED,RPR-UIN-SUCCESS-005)", + "step25": "e2e_CheckRIDStage($$childRid,VERIFICATION,SUCCESS)" + }, + { + "tc_no": "107", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center tries get Lost UIN but Biometric did not match", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_wait(90)", + "step10": "$$lostTemplate=e2e_getPacketTemplate(LOST,$$personaFilePath)", + "step11": "$$modalityHashValue=e2e_getBioModalityHash(-1,Right IndexFinger@@Left LittleFinger,$$personaFilePath)", + "step12": "$$zipPacketPath=e2e_packetcreator(LOST,$$lostTemplate)", + "step13": "$$ridLost=e2e_ridsync(LOST,$$zipPacketPath)", + "step14": "e2e_configureMockAbis(-1,Right IndexFinger,false,Right IndexFinger,$$personaFilePath,$$modalityHashValue,-1,@@Duplicate)", + "step15": "e2e_packetsync($$zipPacketPath)", + "step16": "e2e_checkStatus(rejected,$$ridLost)" + }, + { + "tc_no": "108", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident Minor Child walk-ins walk-ins to registration center tries get UIN when the parent packet is in the queue for manual verification reject child packet only when parent packet is rejected", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$childPersona=e2e_getResidentData(1,minor,true,Male)", + "step5": "$$parentPersona=e2e_getResidentData(1,adult,false,Male)", + "step6": "$$parentTemplate=e2e_getPacketTemplate(NEW,$$parentPersona)", + "step7": "$$modalityHashValue=e2e_getBioModalityHash(-1,Right IndexFinger@@Left LittleFinger,$$parentPersona)", + "step8": "e2e_configureMockAbis(-1,Right IndexFinger,true,Right IndexFinger,$$parentPersona,$$modalityHashValue,-1,@@Duplicate)", + "step9": "$$parentZipPacketPath=e2e_packetcreator(NEW,$$parentTemplate)", + "step10": "$$parentRid=e2e_ridsync(NEW,$$parentZipPacketPath)", + "step11": "e2e_updateResidentWithRID($$parentPersona,$$parentRid)", + "step12": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona,$$childPersona)", + "step13": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step14": "$$childZipPacketPath=e2e_packetcreator(NEW,$$childTemplate)", + "step15": "$$childRid=e2e_ridsync(NEW,$$childZipPacketPath)", + "step16": "e2e_bulkUploadPacket($$childZipPacketPath,$$parentZipPacketPath)", + "step17": "e2e_postMockMv($$parentRid,REJECTED)", + "step18": "e2e_checkStatus(rejected,$$parentRid)", + "step19": "e2e_checkStatus(rejected,$$childRid)" + }, + { + "tc_no": "109", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident Infant tries to get UIN without Introducer", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,infant,true,Male@@false@@false@@true)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(reregister,$$rid)", + "step8": "e2e_CheckRIDStage($$rid,VALIDATE_PACKET,FAILED)" + }, + { + "tc_no": "110", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card and generates Perpetual VID. Later performs demogphic authentication using name both using UIN and VID", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male,rightlittleFinger)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "$$email=e2e_getEmailByUIN($$uin)", + "step10": "e2e_wait(90)", + "step11": "$$vid=e2e_generateVID(Perpetual,$$uin,$$email)", + "step12": "e2e_wait(90)", + "step13": "e2e_demoAuthentication(name,$$uin,$$personaFilePath,$$vid)" + }, + { + "tc_no": "111", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident Minor walk-ins to registration center completes the process and gets UIN card and generates Perpetual VID. Later performs eKYC demogphic authentication using name both using UIN and VID", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$parentPersona=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$parentTemplate=e2e_getPacketTemplate(NEW,$$parentPersona)", + "step6": "$$parentRid=e2e_generateAndUploadPacketSkippingPrereg($$parentPersona,$$parentTemplate)", + "step7": "e2e_checkStatus(processed,$$parentRid)", + "step8": "$$parentUin=e2e_getUINByRid($$parentRid)", + "step9": "e2e_updateResidentWithUIN($$parentPersona,$$parentUin)", + "step10": "$$childPersona=e2e_getResidentData(1,minor,true,Male)", + "step11": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona,$$childPersona)", + "step12": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step13": "$$childRid=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$childTemplate)", + "step14": "e2e_checkStatus(processed,$$childRid)", + "step15": "$$childUin=e2e_getUINByRid($$childRid)", + "step16": "e2e_CheckRIDStage($$childRid,INTRODUCER_VALIDATION,SUCCESS)", + "step17": "$$email=e2e_getEmailByUIN($$childUin)", + "step18": "e2e_wait(90)", + "step19": "$$vidwithoutotp=e2e_GenerateVIDWithoutOTP(Perpetual,$$childUin)", + "step20": "e2e_wait(90)", + "step21": "e2e_ekycDemo(name,$$childUin,$$childPersona,$$vidwithoutotp)", + "step22": "e2e_CheckRIDStage($$childRid,VERIFICATION,SUCCESS)" + }, + { + "tc_no": "112", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident Infant walk-ins to registration center completes the process and gets UIN card and generates Perpetual VID. Later performs demogphic authentication using name both using UIN and VID", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$parentPersona=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$parentTemplate=e2e_getPacketTemplate(NEW,$$parentPersona)", + "step6": "$$parentRid=e2e_generateAndUploadPacketSkippingPrereg($$parentPersona,$$parentTemplate)", + "step7": "e2e_checkStatus(processed,$$parentRid)", + "step8": "$$parentUin=e2e_getUINByRid($$parentRid)", + "step9": "e2e_updateResidentWithUIN($$parentPersona,$$parentUin)", + "step10": "$$childPersona=e2e_getResidentData(1,infant,true,Male@@false@@false@@true)", + "step11": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona,$$childPersona)", + "step12": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step13": "$$childRid=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$childTemplate)", + "step14": "e2e_checkStatus(processed,$$childRid)", + "step15": "$$childUin=e2e_getUINByRid($$childRid)", + "step16": "e2e_CheckRIDStage($$childRid,INTRODUCER_VALIDATION,SUCCESS)", + "step17": "$$email=e2e_getEmailByUIN($$childUin)", + "step18": "e2e_wait(90)", + "step19": "$$vidwithoutotp=e2e_GenerateVIDWithoutOTP(Perpetual,$$childUin)", + "step20": "e2e_wait(90)", + "step21": "e2e_ekycDemo(name,$$childUin,$$childPersona,$$vidwithoutotp)", + "step22": "e2e_CheckRIDStage($$childRid,VERIFICATION,SUCCESS)" + }, + { + "tc_no": "113", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center gets the lost UIN updates his demo graphic details Later performs demo Auth", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_wait(90)", + "step10": "$$lostTemplate=e2e_getPacketTemplate(LOST,$$personaFilePath)", + "step11": "$$modalityHashValue=e2e_getBioModalityHash(-1,Right IndexFinger@@Left LittleFinger,$$personaFilePath)", + "step12": "$$zipPacketPath=e2e_packetcreator(LOST,$$lostTemplate)", + "step13": "$$ridLost=e2e_ridsync(LOST,$$zipPacketPath)", + "step14": "e2e_configureMockAbis(-1,Right IndexFinger,true,Right IndexFinger,$$personaFilePath,$$modalityHashValue,-1,@@Duplicate)", + "step15": "e2e_packetsync($$zipPacketPath)", + "step16": "e2e_checkStatus(processed,$$ridLost)", + "step17": "$$uin2=e2e_getUINByRid($$ridLost)", + "step18": "e2e_CheckRIDStage($$ridLost,PRINT_SERVICE,PROCESSED)", + "step19": "e2e_updateDemoOrBioDetails(0,0,name=AutomationName,$$personaFilePath)", + "step20": "e2e_updateResidentWithUIN($$personaFilePath,$$uin)", + "step21": "$$newTemplate=e2e_getPacketTemplate(UPDATE,$$personaFilePath)", + "step22": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$newTemplate)", + "step23": "e2e_checkStatus(processed,$$rid2)", + "step24": "$$lostUin=e2e_getUINByRid($$rid2)", + "step25": "$$vidwithoutotp=e2e_GenerateVIDWithoutOTP(Perpetual,$$lostUin)", + "step26": "e2e_wait(90)", + "step27": "e2e_demoAuthentication(name,$$lostUin,$$personaFilePath,$$vidwithoutotp)" + }, + { + "tc_no": "114", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center gets the lost UIN updates his Biometric data Later performs Bio Auth", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_wait(90)", + "step10": "$$lostTemplate=e2e_getPacketTemplate(LOST,$$personaFilePath)", + "step11": "$$modalityHashValue=e2e_getBioModalityHash(-1,Right IndexFinger@@Left LittleFinger,$$personaFilePath)", + "step12": "$$zipPacketPath=e2e_packetcreator(LOST,$$lostTemplate)", + "step13": "$$ridLost=e2e_ridsync(LOST,$$zipPacketPath)", + "step14": "e2e_configureMockAbis(-1,Right IndexFinger,true,Right IndexFinger,$$personaFilePath,$$modalityHashValue,-1,@@Duplicate)", + "step15": "e2e_packetsync($$zipPacketPath)", + "step16": "e2e_checkStatus(processed,$$ridLost)", + "step17": "$$uin2=e2e_getUINByRid($$ridLost)", + "step18": "e2e_CheckRIDStage($$ridLost,PRINT_SERVICE,PROCESSED)", + "step19": "e2e_updateDemoOrBioDetails(face,0,0,$$personaFilePath)", + "step20": "e2e_updateResidentWithUIN($$personaFilePath,$$uin)", + "step21": "$$newTemplate=e2e_getPacketTemplate(UPDATE,$$personaFilePath)", + "step22": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$newTemplate)", + "step23": "e2e_checkStatus(processed,$$rid2)", + "step24": "$$lostUin=e2e_getUINByRid($$rid2)", + "step25": "$$vidwithoutotp=e2e_GenerateVIDWithoutOTP(Perpetual,$$lostUin)", + "step26": "e2e_wait(90)", + "step27": "e2e_bioAuthentication(faceDevice,$$lostUin,$$vidwithoutotp,$$personaFilePath)" + }, + { + "tc_no": "115", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "New_Infant", + "description": "Resident Infant walk-ins to registration center gets the UIN with Preregistration with Gaurdian details", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$childPersona=e2e_getResidentData(1,infant,true,Male)", + "step5": "$$parentPersona=e2e_getResidentData(1,adult,false,Male)", + "step6": "$$parentTemplate=e2e_getPacketTemplate(NEW,$$parentPersona)", + "step7": "$$parentRid=e2e_generateAndUploadPacketSkippingPrereg($$parentPersona,$$parentTemplate)", + "step8": "e2e_checkStatus(processed,$$parentRid)", + "step9": "$$parentUin=e2e_getUINByRid($$parentRid)", + "step10": "e2e_updateResidentWithRID($$parentPersona,$$parentRid)", + "step11": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona,$$childPersona)", + "step12": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step13": "e2e_sendOtp($$childPersona)", + "step14": "e2e_validateOtp($$childPersona)", + "step15": "$$prid=e2e_preRegister($$childPersona)", + "step16": "e2e_uploadDocuments($$childPersona,$$prid)", + "step17": "e2e_updatePreRegStatus(0,$$prid,valid)", + "step18": "e2e_bookAppointment(false,$$prid,1)", + "step19": "$$childRid=e2e_generateAndUploadPacket($$prid,$$childTemplate)", + "step20": "e2e_checkStatus(processed,$$childRid)", + "step21": "$$childUin=e2e_getUINByRid($$childRid)", + "step22": "e2e_CheckRIDStage($$parentRid,PRINT_SERVICE,PROCESSED)", + "step23": "e2e_CheckRIDStage($$childRid,PRINT_SERVICE,PROCESSED)", + "step24": "e2e_CheckRIDStage($$childRid,VERIFICATION,SUCCESS)" + }, + { + "tc_no": "116", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center gets the UIN but during packet generation CBEFF is invalid", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath,80,false)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPreregWithInvalidCbeff($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(REREGISTER,$$rid)", + "step8": "e2e_CheckRIDStage($$rid,VALIDATE_PACKET,FAILED)" + }, + { + "tc_no": "117", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center tries to update the UIN with invalid UIN", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "e2e_updateResidentWithUIN($$personaFilePath,1234)", + "step6": "$$updateTemplate=e2e_getPacketTemplate(UPDATE,$$personaFilePath)", + "step7": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$updateTemplate)", + "step8": "e2e_checkStatus(REREGISTER,$$rid)", + "step9": "e2e_CheckRIDStage($$rid,VALIDATE_PACKET,ERROR)" + }, + { + "tc_no": "118", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident Infant walk-ins to registration center gets the UIN with finger and eye exception", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "e2e_UpdateBioExceptionInPersona($$personaFilePath,Finger:Left IndexFinger@@Finger:Right IndexFinger@@Iris:Left)", + "step6": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step7": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step8": "e2e_checkStatus(processed,$$rid)", + "step9": "$$uin=e2e_getUINByRid($$rid)", + "step10": "e2e_CheckRIDStage($$rid,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "119", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "New_Minor_Exc", + "description": "Resident Minor walk-ins to registration center gets the UIN with parent and child exception mark", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$parentPersona=e2e_getResidentData(1,adult,false,Male)", + "step5": "e2e_UpdateBioExceptionInPersona($$parentPersona,Finger:Left IndexFinger@@Finger:Right IndexFinger@@Iris:Left)", + "step6": "$$parentTemplate=e2e_getPacketTemplate(NEW,$$parentPersona)", + "step7": "$$parentRid=e2e_generateAndUploadPacketSkippingPrereg($$parentPersona,$$parentTemplate)", + "step8": "e2e_checkStatus(processed,$$parentRid)", + "step9": "$$parentUin=e2e_getUINByRid($$parentRid)", + "step10": "e2e_updateResidentWithUIN($$parentPersona,$$parentUin)", + "step11": "$$childPersona=e2e_getResidentData(1,minor,true,Male)", + "step12": "e2e_UpdateBioExceptionInPersona($$childPersona,Finger:Left IndexFinger@@Finger:Right IndexFinger@@Iris:Left)", + "step13": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona,$$childPersona)", + "step14": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step15": "$$childRid=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$childTemplate)", + "step16": "e2e_checkStatus(processed,$$childRid)", + "step17": "$$childUin=e2e_getUINByRid($$childRid)", + "step18": "e2e_CheckRIDStage($$childRid,INTRODUCER_VALIDATION,SUCCESS)", + "step19": "e2e_CheckRIDStage($$childRid,VERIFICATION,SUCCESS)" + }, + { + "tc_no": "120", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "New_Minor_Exc", + "description": "Resident Minor walk-ins to registration center gets the UIN with few exceptions", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$parentPersona=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$parentTemplate=e2e_getPacketTemplate(NEW,$$parentPersona)", + "step6": "$$parentRid=e2e_generateAndUploadPacketSkippingPrereg($$parentPersona,$$parentTemplate)", + "step7": "e2e_checkStatus(processed,$$parentRid)", + "step8": "$$parentUin=e2e_getUINByRid($$parentRid)", + "step9": "e2e_updateResidentWithUIN($$parentPersona,$$parentUin)", + "step10": "$$childPersona=e2e_getResidentData(1,minor,true,Male)", + "step11": "e2e_UpdateBioExceptionInPersona($$childPersona,Finger:Left IndexFinger@@Finger:Right IndexFinger@@Iris:Left)", + "step12": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona,$$childPersona)", + "step13": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step14": "$$childRid=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$childTemplate)", + "step15": "e2e_checkStatus(processed,$$childRid)", + "step16": "$$childUin=e2e_getUINByRid($$childRid)", + "step17": "e2e_CheckRIDStage($$childRid,INTRODUCER_VALIDATION,SUCCESS)", + "step18": "e2e_CheckRIDStage($$childRid,VERIFICATION,SUCCESS)" + }, + { + "tc_no": "121", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center gets the UIN with All finger and eye exception mark walk-ins to reg-client to get UIN card", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "e2e_UpdateBioExceptionInPersona($$personaFilePath,Finger:Left Thumb@@Finger:Left IndexFinger@@Finger:Left MiddleFinger@@Finger:Left RingFinger@@Finger:Left LittleFinger@@Finger:Right Thumb@@Finger:Right IndexFinger@@Finger:Right MiddleFinger@@Finger:Right RingFinger@@Finger:Right LittleFinger@@Iris:Left@@Iris:Right)", + "step6": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step7": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step8": "e2e_checkStatus(processed,$$rid)", + "step9": "$$uin=e2e_getUINByRid($$rid)", + "step10": "e2e_CheckRIDStage($$rid,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "122", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Minor_New", + "description": "Resident Minor walk-ins to registration center gets the UIN with all finger and eye exception mark", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$parentPersona=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$parentTemplate=e2e_getPacketTemplate(NEW,$$parentPersona)", + "step6": "$$parentRid=e2e_generateAndUploadPacketSkippingPrereg($$parentPersona,$$parentTemplate)", + "step7": "e2e_checkStatus(processed,$$parentRid)", + "step8": "$$parentUin=e2e_getUINByRid($$parentRid)", + "step9": "e2e_updateResidentWithUIN($$parentPersona,$$parentUin)", + "step10": "$$childPersona=e2e_getResidentData(1,minor,true,Male)", + "step11": "e2e_UpdateBioExceptionInPersona($$childPersona,Finger:Left Thumb@@Finger:Left IndexFinger@@Finger:Left MiddleFinger@@Finger:Left RingFinger@@Finger:Left LittleFinger@@Finger:Right Thumb@@Finger:Right IndexFinger@@Finger:Right MiddleFinger@@Finger:Right RingFinger@@Finger:Right LittleFinger@@Iris:Left@@Iris:Right)", + "step12": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona,$$childPersona)", + "step13": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step14": "$$childRid=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$childTemplate)", + "step15": "e2e_checkStatus(processed,$$childRid)", + "step16": "$$childUin=e2e_getUINByRid($$childRid)", + "step17": "e2e_CheckRIDStage($$childRid,INTRODUCER_VALIDATION,SUCCESS)", + "step18": "e2e_CheckRIDStage($$childRid,VERIFICATION,SUCCESS)" + }, + { + "tc_no": "123", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "New_Infant_Exc", + "description": "Resident Infant walk-ins to registration center gets the UIN with introducer exception mark", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$parentPersona=e2e_getResidentData(1,adult,false,Male)", + "step5": "e2e_UpdateBioExceptionInPersona($$parentPersona,Finger:Left IndexFinger@@Finger:Right IndexFinger@@Iris:Left)", + "step6": "$$parentTemplate=e2e_getPacketTemplate(NEW,$$parentPersona)", + "step7": "$$parentRid=e2e_generateAndUploadPacketSkippingPrereg($$parentPersona,$$parentTemplate)", + "step8": "e2e_checkStatus(processed,$$parentRid)", + "step9": "$$parentUin=e2e_getUINByRid($$parentRid)", + "step10": "e2e_updateResidentWithUIN($$parentPersona,$$parentUin)", + "step11": "$$childPersona=e2e_getResidentData(1,infant,true,Male@@false@@false@@true)", + "step12": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona,$$childPersona)", + "step13": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step14": "$$childRid=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$childTemplate)", + "step15": "e2e_checkStatus(processed,$$childRid)", + "step16": "$$childUin=e2e_getUINByRid($$childRid)", + "step17": "e2e_CheckRIDStage($$childRid,INTRODUCER_VALIDATION,SUCCESS)", + "step18": "e2e_CheckRIDStage($$childRid,VERIFICATION,SUCCESS)" + }, + { + "tc_no": "124", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Update_Adult", + "description": "Resident walk-ins to registration center updates biometrics with all exceptions and then downloads the UIN card", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_wait(90)", + "step10": "e2e_UpdateBioExceptionInPersona($$personaFilePath,Finger:Left Thumb@@Finger:Left IndexFinger@@Finger:Left MiddleFinger@@Finger:Left RingFinger@@Finger:Left LittleFinger@@Finger:Right Thumb@@Finger:Right IndexFinger@@Finger:Right MiddleFinger@@Finger:Right RingFinger@@Finger:Right LittleFinger@@Iris:Left@@Iris:Right)", + "step11": "e2e_updateResidentWithUIN($$personaFilePath,$$uin)", + "step12": "$$updateTemplate=e2e_getPacketTemplate(UPDATE,$$personaFilePath)", + "step13": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$updateTemplate)", + "step14": "e2e_checkStatus(processed,$$rid2)", + "step15": "$$uin2=e2e_getUINByRid($$rid2)", + "step16": "e2e_CheckRIDStage($$rid2,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "125", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Update_Adult", + "description": "Resident walk-ins to registration center updates biometrics with finger and eye exception and then downloads the UIN card", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_UpdateBioExceptionInPersona($$personaFilePath,Finger:Left IndexFinger@@Finger:Right IndexFinger@@Iris:Left)", + "step10": "e2e_updateResidentWithUIN($$personaFilePath,$$uin)", + "step11": "$$updateTemplate=e2e_getPacketTemplate(UPDATE,$$personaFilePath)", + "step12": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$updateTemplate)", + "step13": "e2e_checkStatus(processed,$$rid2)", + "step14": "$$uin2=e2e_getUINByRid($$rid2)", + "step15": "e2e_CheckRIDStage($$rid2,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "126", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Minor_New", + "description": "Resident Minor walk-ins to registration center updates demo details and biometrics with all exceptions and then downloads the UIN card", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$parentPersona=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$parentTemplate=e2e_getPacketTemplate(NEW,$$parentPersona)", + "step6": "$$parentRid=e2e_generateAndUploadPacketSkippingPrereg($$parentPersona,$$parentTemplate)", + "step7": "e2e_checkStatus(processed,$$parentRid)", + "step8": "$$parentUin=e2e_getUINByRid($$parentRid)", + "step9": "e2e_updateResidentWithUIN($$parentPersona,$$parentUin)", + "step10": "$$childPersona=e2e_getResidentData(1,minor,true,Male)", + "step11": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona,$$childPersona)", + "step12": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step13": "$$childRid=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$childTemplate)", + "step14": "e2e_checkStatus(processed,$$childRid)", + "step15": "$$childUin=e2e_getUINByRid($$childRid)", + "step16": "e2e_updateDemoOrBioDetails(0,0,name=AutomationName,$$childPersona)", + "step17": "e2e_UpdateBioExceptionInPersona($$childPersona,Finger:Left Thumb@@Finger:Left IndexFinger@@Finger:Left MiddleFinger@@Finger:Left RingFinger@@Finger:Left LittleFinger@@Finger:Right Thumb@@Finger:Right IndexFinger@@Finger:Right MiddleFinger@@Finger:Right RingFinger@@Finger:Right LittleFinger@@Iris:Left@@Iris:Right)", + "step18": "e2e_updateResidentWithUIN($$childPersona,$$childUin)", + "step19": "$$updateTemplate=e2e_getPacketTemplate(UPDATE,$$childPersona)", + "step20": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$updateTemplate)", + "step21": "e2e_checkStatus(processed,$$rid2)", + "step22": "$$uin2=e2e_getUINByRid($$rid2)", + "step23": "e2e_CheckRIDStage($$childRid,INTRODUCER_VALIDATION,SUCCESS)", + "step24": "e2e_CheckRIDStage($$rid2,PRINT_SERVICE,PROCESSED)", + "step25": "e2e_CheckRIDStage($$childRid,VERIFICATION,SUCCESS)" + }, + { + "tc_no": "127", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Minor_New", + "description": "Resident Minor walk-ins to registration center updates demo and biometrics with few exceptions and then downloads the UIN card", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$parentPersona=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$parentTemplate=e2e_getPacketTemplate(NEW,$$parentPersona)", + "step6": "$$parentRid=e2e_generateAndUploadPacketSkippingPrereg($$parentPersona,$$parentTemplate)", + "step7": "e2e_checkStatus(processed,$$parentRid)", + "step8": "$$parentUin=e2e_getUINByRid($$parentRid)", + "step9": "e2e_updateResidentWithUIN($$parentPersona,$$parentUin)", + "step10": "$$childPersona=e2e_getResidentData(1,minor,true,Male)", + "step11": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona,$$childPersona)", + "step12": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step13": "$$childRid=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$childTemplate)", + "step14": "e2e_checkStatus(processed,$$childRid)", + "step15": "$$childUin=e2e_getUINByRid($$childRid)", + "step16": "e2e_updateDemoOrBioDetails(0,0,name=AutomationName,$$childPersona)", + "step17": "e2e_UpdateBioExceptionInPersona($$childPersona,Finger:Left IndexFinger@@Finger:Right IndexFinger@@Iris:Left)", + "step18": "e2e_updateResidentWithUIN($$childPersona,$$childUin)", + "step19": "$$updateTemplate=e2e_getPacketTemplate(UPDATE,$$childPersona)", + "step20": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$updateTemplate)", + "step21": "e2e_checkStatus(processed,$$rid2)", + "step22": "$$uin2=e2e_getUINByRid($$rid2)", + "step23": "e2e_CheckRIDStage($$childRid,INTRODUCER_VALIDATION,SUCCESS)", + "step24": "e2e_CheckRIDStage($$rid2,PRINT_SERVICE,PROCESSED)", + "step25": "e2e_CheckRIDStage($$childRid,VERIFICATION,SUCCESS)" + }, + { + "tc_no": "128", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Update_Adult", + "description": "Resident walk-ins to registration center updates demo and biometrics with finger and eye exception and then performs demo and bio auth without exception finger", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_updateDemoOrBioDetails(0,0,name=AutomationName,$$personaFilePath)", + "step10": "e2e_UpdateBioExceptionInPersona($$personaFilePath,Finger:Left IndexFinger@@Finger:Right IndexFinger@@Iris:Left)", + "step11": "e2e_updateResidentWithUIN($$personaFilePath,$$uin)", + "step12": "$$updateTemplate=e2e_getPacketTemplate(UPDATE,$$personaFilePath)", + "step13": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$updateTemplate)", + "step14": "e2e_checkStatus(processed,$$rid2)", + "step15": "$$uin2=e2e_getUINByRid($$rid2)", + "step16": "e2e_CheckRIDStage($$rid2,PRINT_SERVICE,PROCESSED)", + "step17": "$$email=e2e_getEmailByUIN($$uin2)", + "step18": "e2e_wait(90)", + "step19": "$$vid=e2e_generateVID(Perpetual,$$uin2,$$email)", + "step20": "e2e_wait(90)", + "step21": "e2e_demoAuthentication(name,$$uin,$$personaFilePath,$$vid)", + "step22": "e2e_bioAuthentication(rightThumbDevice,$$uin,$$vid,$$personaFilePath)" + }, + { + "tc_no": "129", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Update_Adult", + "description": "Resident walk-ins to registration center updates demo and biometrics with all exception and then performs demo and bio auth with face", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_updateDemoOrBioDetails(0,0,name=AutomationName,$$personaFilePath)", + "step10": "e2e_UpdateBioExceptionInPersona($$personaFilePath,Finger:Left Thumb@@Finger:Left IndexFinger@@Finger:Left MiddleFinger@@Finger:Left RingFinger@@Finger:Left LittleFinger@@Finger:Right Thumb@@Finger:Right IndexFinger@@Finger:Right MiddleFinger@@Finger:Right RingFinger@@Finger:Right LittleFinger@@Iris:Left@@Iris:Right)", + "step11": "e2e_updateResidentWithUIN($$personaFilePath,$$uin)", + "step12": "$$updateTemplate=e2e_getPacketTemplate(UPDATE,$$personaFilePath)", + "step13": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$updateTemplate)", + "step14": "e2e_checkStatus(processed,$$rid2)", + "step15": "$$uin2=e2e_getUINByRid($$rid2)", + "step16": "e2e_CheckRIDStage($$rid2,PRINT_SERVICE,PROCESSED)", + "step17": "$$email=e2e_getEmailByUIN($$uin2)", + "step18": "e2e_wait(90)", + "step19": "$$vid=e2e_generateVID(Perpetual,$$uin2,$$email)", + "step20": "e2e_wait(90)", + "step21": "e2e_demoAuthentication(name,$$uin,$$personaFilePath,$$vid)", + "step22": "e2e_bioAuthentication(faceDevice,$$uin,$$vid,$$personaFilePath)" + }, + { + "tc_no": "130", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center completes the process and gets UIN card. Resident lost UIN and walks in to registration center and updates his phone number and address and then retrieves the UIN", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_wait(90)", + "step10": "e2e_updateDemoOrBioDetails(0,0,addressLine1=bnglr@@phoneNumber=3938333736,$$personaFilePath)", + "step11": "e2e_updateResidentWithUIN($$personaFilePath,$$uin)", + "step12": "$$lostTemplate=e2e_getPacketTemplate(LOST,$$personaFilePath)", + "step13": "$$zipPacketPath=e2e_packetcreator(LOST,$$lostTemplate)", + "step14": "$$ridLost=e2e_ridsync(LOST,$$zipPacketPath)", + "step15": "$$modalityHashValue=e2e_getBioModalityHash(-1,Right IndexFinger@@Left LittleFinger,$$personaFilePath)", + "step16": "e2e_configureMockAbis(-1,Right IndexFinger,true,Right IndexFinger,$$personaFilePath,$$modalityHashValue,-1,@@Duplicate)", + "step17": "e2e_packetsync($$zipPacketPath)", + "step18": "e2e_checkStatus(processed,$$ridLost)", + "step19": "$$uin2=e2e_getUINByRid($$ridLost)", + "step20": "e2e_CheckRIDStage($$ridLost,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "131", + "tags": "Negative_Test", + "persona_class": "ResidentFemaleAdult", + "persona": "ResidentFemaleAdult", + "group_name": "NA", + "description": "Resident walk-ins to registration center tries to register with predefined blocklisted word in her name", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Female)", + "step11": "$$blocklistedWord=e2e_GetBlocklistedWord()", + "step12": "e2e_updateDemoOrBioDetails(0,0,name=$$blocklistedWord,$$personaFilePath)", + "step14": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step15": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step16": "e2e_checkStatus(processed,$$rid)", + "step17": "e2e_CheckRIDStage($$rid,PRINT_SERVICE,PROCESSED)" +}, + { + "tc_no": "132", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Adult_New_Exception", + "description":"A differently abled resident with exception in left eye walk-ins to registration center completes the process and gets UIN card", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "e2e_UpdateBioExceptionInPersona($$personaFilePath,Iris:Left)", + "step6": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step7": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step8": "e2e_checkStatus(processed,$$rid)", + "step9": "$$uin=e2e_getUINByRid($$rid)", + "step10": "e2e_CheckRIDStage($$rid,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "133", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Minor_New", + "description": "Resident Minor Child with age less than 1 year walk-ins to registration center gets UIN with parent RID details", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$parentPersona=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$parentTemplate=e2e_getPacketTemplate(NEW,$$parentPersona)", + "step6": "$$parentRid=e2e_generateAndUploadPacketSkippingPrereg($$parentPersona,$$parentTemplate)", + "step7": "e2e_checkStatus(processed,$$parentRid)", + "step8": "$$parentUin=e2e_getUINByRid($$parentRid)", + "step9": "e2e_updateResidentWithUIN($$parentPersona,$$parentUin)", + "step10": "$$childPersona=e2e_getResidentData(1,minor,true,Male)", + "step11": "e2e_updateDemoOrBioDetails(0,0,dob=2023/08/24,$$childPersona)", + "step12": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona,$$childPersona)", + "step13": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step14": "$$childRid=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$childTemplate)", + "step15": "e2e_checkStatus(processed,$$childRid)", + "step16": "$$childUin=e2e_getUINByRid($$childRid)", + "step17": "e2e_CheckRIDStage($$childRid,INTRODUCER_VALIDATION,SUCCESS)", + "step18": "e2e_CheckRIDStage($$childRid,VERIFICATION,SUCCESS)" + }, + { + "tc_no": "134", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "New_Infant", + "description": "Resident Infant with age less than 1 year walk-ins to registration center gets UIN with parent RID details", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$parentPersona=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$parentTemplate=e2e_getPacketTemplate(NEW,$$parentPersona)", + "step6": "$$parentRid=e2e_generateAndUploadPacketSkippingPrereg($$parentPersona,$$parentTemplate)", + "step7": "e2e_checkStatus(processed,$$parentRid)", + "step8": "$$parentUin=e2e_getUINByRid($$parentRid)", + "step9": "e2e_updateResidentWithUIN($$parentPersona,$$parentUin)", + "step10": "$$childPersona=e2e_getResidentData(1,infant,true,Male@@false@@false@@true)", + "step11": "e2e_updateDemoOrBioDetails(0,0,dob=2023/08/24,$$childPersona)", + "step12": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona,$$childPersona)", + "step13": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step14": "$$childRid=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$childTemplate)", + "step15": "e2e_checkStatus(processed,$$childRid)", + "step16": "$$childUin=e2e_getUINByRid($$childRid)", + "step17": "e2e_CheckRIDStage($$childRid,INTRODUCER_VALIDATION,SUCCESS)", + "step18": "e2e_CheckRIDStage($$childRid,VERIFICATION,SUCCESS)" + }, + { + "tc_no": "135", + "tags": "Postive_Test", + "persona_class": "NonResidentMaleAdult", + "persona": "NonResidentMaleAdult", + "group_name": "Adult_New", + "description": "NonResident adult whose phone number is 11 digts walk-ins to registration center gets UIN", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "e2e_updateDemoOrBioDetails(0,0,phoneNumber=39383337361,$$personaFilePath)", + "step6": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step7": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step8": "e2e_checkStatus(processed,$$rid)", + "step9": "$$uin=e2e_getUINByRid($$rid)", + "step10": "e2e_CheckRIDStage($$rid,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "136", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Adult_New", + "description": "Resident adult without phone number and email walk-ins to registration center and tries to get UIN", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "e2e_updateDemoOrBioDetails(0,0,phoneNumber=@@email=,$$personaFilePath)", + "step6": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step7": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step8": "e2e_checkStatus(REREGISTER,$$rid)", + "step9": "e2e_CheckRIDStage($$rid,VALIDATE_PACKET,FAILED)" + }, + { + "tc_no": "137", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Adult_New_Exception", + "description": "A differently abled resident with exception in left index finger walk-ins to registration center completes the process and gets UIN card .Later updates all biometrics and using uin check for absence of exception marked modality", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "e2e_UpdateBioExceptionInPersona($$personaFilePath,Finger:Left IndexFinger)", + "step6": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step7": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step8": "e2e_checkStatus(processed,$$rid)", + "step9": "$$uin=e2e_getUINByRid($$rid)", + "step10": "e2e_updateDemoOrBioDetails(0,face@@leftEye@@rightEye@@rightIndex@@rightLittle@@rightRing@@rightMiddle@@leftIndex@@leftLittle@@leftRing@@leftMiddle@@leftThumb@@rightThumb,0,$$personaFilePath)", + "step11": "e2e_updateResidentWithUIN($$personaFilePath,$$uin)", + "step12": "$$updateTemplate=e2e_getPacketTemplate(UPDATE,$$personaFilePath)", + "step13": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$updateTemplate)", + "step14": "e2e_checkStatus(processed,$$rid2)", + "step15": "$$uin2=e2e_getUINByRid($$rid2)", + "step16": "e2e_CheckForBDBAbsence($$uin2,FINGER_Left IndexFinger)" + }, + { + "tc_no": "138", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Update_Adult", + "description": "Resident walk-ins to registration center and gets UIN .Later updates exception for Left Thumb and using UIN check if all modalities are present", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_UpdateBioExceptionInPersona($$personaFilePath,Finger:Left Thumb)", + "step10": "e2e_updateResidentWithUIN($$personaFilePath,$$uin)", + "step11": "$$updateTemplate=e2e_getPacketTemplate(UPDATE,$$personaFilePath)", + "step12": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$updateTemplate)", + "step13": "e2e_checkStatus(processed,$$rid2)", + "step14": "$$uin2=e2e_getUINByRid($$rid2)", + "step15": "e2e_CheckForBDBPresence($$uin2,FINGER_Left RingFinger@@FINGER_Right LittleFinger@@FACE@@FINGER_Left LittleFinger@@IRIS_Right@@FINGER_Left MiddleFinger@@FINGER_Left IndexFinger@@FINGER_Right IndexFinger@@IRIS_Left@@FINGER_Right RingFinger@@FINGER_Left Thumb@@FINGER_Right MiddleFinger@@FINGER_Right Thumb,false)" + }, + { + "tc_no": "139", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Adult_New_Exception", + "description": "A blind Resident walk-ins to registration center completes the process and gets UIN card .Later updates all biometrics and using uin check for the absence of exception marked modality", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "e2e_UpdateBioExceptionInPersona($$personaFilePath,Iris:Left@@Iris:Right)", + "step6": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step7": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step8": "e2e_checkStatus(processed,$$rid)", + "step9": "$$uin=e2e_getUINByRid($$rid)", + "step10": "e2e_updateDemoOrBioDetails(0,face@@leftEye@@rightEye@@rightIndex@@rightLittle@@rightRing@@rightMiddle@@leftIndex@@leftLittle@@leftRing@@leftMiddle@@leftThumb@@rightThumb,0,$$personaFilePath)", + "step11": "e2e_updateResidentWithUIN($$personaFilePath,$$uin)", + "step12": "$$updateTemplate=e2e_getPacketTemplate(UPDATE,$$personaFilePath)", + "step13": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$updateTemplate)", + "step14": "e2e_checkStatus(processed,$$rid2)", + "step15": "$$uin2=e2e_getUINByRid($$rid2)", + "step16": "e2e_CheckForBDBAbsence($$uin2,IRIS_Left@@IRIS_Right)" + }, + { + "tc_no": "140", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Adult_New", + "description": "Resident walk-ins to registration center completes the process and gets UIN card .Using rid check the presence of all the modalities", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_CheckRIDStage($$rid,PRINT_SERVICE,PROCESSED)", + "step10": "e2e_CheckForBDBPresence($$rid,FINGER_Left RingFinger@@FINGER_Right LittleFinger@@FACE@@FINGER_Left LittleFinger@@IRIS_Right@@FINGER_Left MiddleFinger@@FINGER_Left IndexFinger@@FINGER_Right IndexFinger@@IRIS_Left@@FINGER_Right RingFinger@@FINGER_Left Thumb@@FINGER_Right MiddleFinger@@FINGER_Right Thumb,false)" + }, + { + "tc_no": "141", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Adult_New", + "description": "Resident walk-ins to registration center completes the process by providing the consent and gets UIN card", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false,null,yes)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_CheckRIDStage($$rid,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "142", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Adult_New", + "description": "Resident walk-ins to registration center completes the process by not providing the consent", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false,null,no)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(reregister,$$rid)" + }, + { + "tc_no": "143", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Adult_New", + "description": "Resident walk-ins to registration center completes the process and gets UIN card. Later updates dob with invalid format", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_CheckRIDStage($$rid,PRINT_SERVICE,PROCESSED)", + "step10": "e2e_updateDemoOrBioDetails(0,0,dob=08/24/2023,$$personaFilePath)", + "step11": "e2e_updateResidentWithUIN($$personaFilePath,$$uin)", + "step12": "$$newTemplate=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step13": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$newTemplate)", + "step14": "e2e_checkStatus(reregister,$$rid2)" +}, + { + "tc_no": "144", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "NA", + "group_name": "NA", + "description": "Machine got unmapped from the center before generating the offline packet", + "step0": "$$user6=e2e_User(ADD_User,6@@Techno@123)", + "step1": "$$center6=e2e_Center(CREATE,$$user6,6,T)", + "step2": "$$details6=e2e_Machine(CREATE,$$center6,6)", + "step3": "$$details6=e2e_User(DELETE_CENTERMAPPING,6@@Techno@123,$$details6)", + "step4": "$$details6=e2e_User(CREATE_ZONESEARCH,$$details6)", + "step5": "e2e_wait(10)", + "step6": "e2e_User(DELETE_ZONEMAPPING,$$details6)", + "step7": "e2e_User(CREATE_ZONEMAPPING,$$details6)", + "step8": "e2e_User(ACTIVATE_ZONEMAPPING,$$details6,t)", + "step9": "e2e_User(CREATE_CENTERMAPPING,$$details6,6)", + "step10": "e2e_User(ACTIVATE_CENTERMAPPING,$$details6,T)", + "step11": "e2e_WritePreReq($$details6,6)", + "step12": "$$details6=e2e_ReadPreReq(6)", + "step13": "e2e_setContext(env_context,$$details6,1@@2,true)", + "step14": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step15": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step16": "e2e_Machine(REMOVE_CENTER,$$center6,6)", + "step17": "$$details6=e2e_User(DELETE_CENTERMAPPING,6@@Techno@123,$$details6)", + "step18": "$$zipPacketPath=e2e_packetcreator(NEW,$$templatePath)", + "step19": "$$rid=e2e_ridsync(NEW,$$zipPacketPath)", + "step20": "e2e_packetsync($$zipPacketPath)", + "step21": "e2e_CheckRIDStage($$rid,CMD_VALIDATION,FAILED)" + }, + { + "tc_no": "145", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "NA", + "group_name": "NA", + "description": "An offline packet is generated and machine got unmapped from the center before packet is uploaded", + "step0": "$$user6=e2e_User(ADD_User,6@@Techno@123)", + "step1": "$$center6=e2e_Center(CREATE,$$user6,6,T)", + "step2": "$$details6=e2e_Machine(CREATE,$$center6,6)", + "step3": "$$details6=e2e_User(DELETE_CENTERMAPPING,6@@Techno@123,$$details6)", + "step4": "$$details6=e2e_User(CREATE_ZONESEARCH,$$details6)", + "step5": "e2e_wait(10)", + "step6": "e2e_User(DELETE_ZONEMAPPING,$$details6)", + "step7": "e2e_User(CREATE_ZONEMAPPING,$$details6)", + "step8": "e2e_User(ACTIVATE_ZONEMAPPING,$$details6,t)", + "step9": "e2e_User(CREATE_CENTERMAPPING,$$details6,6)", + "step10": "e2e_User(ACTIVATE_CENTERMAPPING,$$details6,T)", + "step11": "e2e_WritePreReq($$details6,6)", + "step12": "$$details6=e2e_ReadPreReq(6)", + "step13": "e2e_setContext(env_context,$$details6,1@@2,true)", + "step14": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step15": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step16": "$$zipPacketPath=e2e_packetcreator(NEW,$$templatePath)", + "step17": "e2e_Machine(REMOVE_CENTER,$$center6,6)", + "step18": "$$details6=e2e_User(DELETE_CENTERMAPPING,6@@Techno@123,$$details6)", + "step19": "$$rid=e2e_ridsync(NEW,$$zipPacketPath)", + "step20": "e2e_packetsync($$zipPacketPath)", + "step21": "e2e_CheckRIDStage($$rid,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "146", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Adult_New_Exception", + "description": "A differently abled resident with exception in left and right index finger walk-ins to registration center completes the process reviewer authentication happens and gets UIN card", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false,null,null,true)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "e2e_UpdateBioExceptionInPersona($$personaFilePath,Finger:Left IndexFinger@@Finger:Right IndexFinger)", + "step6": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step7": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step8": "e2e_checkStatus(processed,$$rid)", + "step9": "$$uin=e2e_getUINByRid($$rid)", + "step10": "e2e_CheckRIDStage($$rid,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "147", + "tags": "Postive_Test", + "persona_class": "SeniorNonResidentMale", + "persona": "SeniorNonResidentMale", + "group_name": "Senior_New", + "description": "Senior Non Resident walk-ins to registration center completes the process and gets UIN card", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,senior,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_CheckRIDStage($$rid,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "148", + "tags": "Postive_Test", + "persona_class": "SeniorResidentMale", + "persona": "SeniorResidentMale", + "group_name": "Senior_New", + "description": "Senior Resident walk-ins to registration center completes the process and gets UIN card", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,senior,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_CheckRIDStage($$rid,PRINT_SERVICE,PROCESSED)" + }, + { + "tc_no": "149", + "tags": "Negative_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Adult_New", + "description": "Resident walk-ins to registration center provides future date as DOB and tries to get uin", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "e2e_updateDemoOrBioDetails(0,0,dob=08/24/2026,$$personaFilePath)", + "step6": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step7": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step8": "e2e_checkStatus(REREGISTER,$$rid)", + "step9": "e2e_CheckRIDStage($$rid,VALIDATE_PACKET,FAILED)" +}, + { + "tc_no": "150", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "New_Infant", + "description": "Resident Infant walk-ins to registration center gets UIN with parent RID details . Another infant tries to get UIN with the same demographics and parent details", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$parentPersona=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$parentTemplate=e2e_getPacketTemplate(NEW,$$parentPersona)", + "step6": "$$parentRid=e2e_generateAndUploadPacketSkippingPrereg($$parentPersona,$$parentTemplate)", + "step7": "e2e_checkStatus(processed,$$parentRid)", + "step8": "$$parentUin=e2e_getUINByRid($$parentRid)", + "step9": "e2e_updateResidentWithUIN($$parentPersona,$$parentUin)", + "step10": "$$childPersona=e2e_getResidentData(1,infant,true,Male@@false@@false@@true)", + "step11": "e2e_updateResidentWithGuardianSkippingPreReg($$parentPersona,$$childPersona)", + "step12": "$$childTemplate=e2e_getPacketTemplate(NEW,$$childPersona)", + "step13": "$$childRid1=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$childTemplate)", + "step14": "e2e_checkStatus(processed,$$childRid1)", + "step15": "$$childUin1=e2e_getUINByRid($$childRid1)", + "step16": "e2e_CheckRIDStage($$childRid1,INTRODUCER_VALIDATION,SUCCESS)", + "step17": "e2e_CheckRIDStage($$childRid1,VERIFICATION,SUCCESS)", + "step18": "$$childRid2=e2e_generateAndUploadPacketSkippingPrereg($$childPersona,$$childTemplate)", + "step19": "$$childUin2=e2e_getUINByRid($$childRid2)", + "step20": "e2e_CheckRIDStage($$childRid2,INTRODUCER_VALIDATION,SUCCESS)", + "step21": "e2e_CheckRIDStage($$childRid2,VERIFICATION,SUCCESS)" + }, + { + "tc_no": "151", + "tags": "Negative_Test", + "persona_class": "ResidentFemaleAdult", + "persona": "ResidentFemaleAdult", + "group_name": "Adult_New", + "description": "Resident walk-ins to registration center completes the process but while the packet getting created packet has invalid encrypted hash", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false,null,null,null,invalidEncryptedHash)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Female)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_CheckRIDStage($$rid,VALIDATE_PACKET,REPROCESS,RPR-PKV-FAILED-014)" + }, + { + "tc_no": "152", + "tags": "Postive_Test", + "persona_class": "ResidentFemaleAdult", + "persona": "ResidentFemaleAdult", + "group_name": "Adult_New", + "description": "Resident walk-ins to registration center and tries to complete the process . But during packet sync the checksum is invalid", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false,null,null,null,null,invalidCheckSum)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Female)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$zipPacketPath=e2e_packetcreator(NEW,$$templatePath)", + "step7": "$$rid=e2e_ridsync(NEW,$$zipPacketPath)", + "step8": "e2e_packetsync($$zipPacketPath,false)" + }, + { + "tc_no": "153", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "Adult_New", + "description": "Resident walk-ins to registration center gets UIN card . Another resident tries to get UIN with the same demographics and exception marked for all modalities except face", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "$$personaFilePath=e2e_getResidentData(1,adult,false,Male)", + "step5": "$$templatePath=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step6": "$$rid=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)", + "step7": "e2e_checkStatus(processed,$$rid)", + "step8": "$$uin=e2e_getUINByRid($$rid)", + "step9": "e2e_CheckRIDStage($$rid,PRINT_SERVICE,PROCESSED)", + "step10": "e2e_UpdateBioExceptionInPersona($$personaFilePath,Finger:Left Thumb@@Finger:Left IndexFinger@@Finger:Left MiddleFinger@@Finger:Left RingFinger@@Finger:Left LittleFinger@@Finger:Right Thumb@@Finger:Right IndexFinger@@Finger:Right MiddleFinger@@Finger:Right RingFinger@@Finger:Right LittleFinger@@Iris:Left@@Iris:Right)", + "step11": "$$templatePath1=e2e_getPacketTemplate(NEW,$$personaFilePath)", + "step12": "$$rid1=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath1)", + "step13": "e2e_checkStatus(processed,$$rid1)", + "step14": "$$uin1=e2e_getUINByRid($$rid1)", + "step15": "e2e_CheckRIDStage($$rid1,MANUAL_ADJUDICATION,SUCCESS)" + }, +{ + "tc_no": "AFTER_SUITE", + "tags": "Postive_Test", + "persona_class": "ResidentMaleAdult", + "persona": "ResidentMaleAdult", + "group_name": "NA", + "description": "Test suite run Pre-Requisite data tear down", + "step0": "e2e_getPingHealth(packetcreator)", + "step1": "$$details1=e2e_ReadPreReq(1)", + "step2": "e2e_setContext(env_context,$$details1,1@@2,false)", + "step3": "e2e_getPingHealth()", + "step4": "e2e_DeleteMockExpect()", + "step5": "e2e_Machine(DCOM,$$details1)", + "step6": "$$details1=e2e_User(DELETE_CENTERMAPPING,1@@Techno@123,$$details1)", + "step7": "e2e_Center(DCOM,$$details1,1)", + "step8": "$$details2=e2e_ReadPreReq(2)", + "step9": "e2e_Machine(DCOM,$$details2)", + "step10": "$$details2=e2e_User(DELETE_CENTERMAPPING,2@@Techno@123,$$details2)", + "step11": "e2e_Center(DCOM,$$details2,2)", + "step12": "$$details3=e2e_ReadPreReq(3)", + "step13": "e2e_Machine(DCOM,$$details3)", + "step14": "$$details3=e2e_User(DELETE_CENTERMAPPING,3@@Techno@123,$$details3)", + "step15": "e2e_Center(DCOM,$$details3,3)", + "step16": "$$details4=e2e_ReadPreReq(4)", + "step17": "e2e_Machine(DCOM,$$details4)", + "step18": "$$details4=e2e_User(DELETE_CENTERMAPPING,4@@Techno@123,$$details4)", + "step19": "e2e_Center(DCOM,$$details4,4)", + "step20": "$$details5=e2e_ReadPreReq(5)", + "step21": "e2e_Machine(DCOM,$$details5)", + "step22": "$$details5=e2e_User(DELETE_CENTERMAPPING,5@@Techno@123,$$details5)", + "step23": "e2e_Center(DCOM,$$details5,5)", + "step24": "$$details6=e2e_ReadPreReq(6)", + "step25": "e2e_Machine(DCOM,$$details6)", + "step26": "$$details6=e2e_User(DELETE_CENTERMAPPING,6@@Techno@123,$$details6)", + "step27": "e2e_Center(DCOM,$$details6,6)" + } +] \ No newline at end of file diff --git a/mosip-packet-creator/src/main/java/io/mosip/testrig/dslrig/packetcreator/controller/PacketController.java b/mosip-packet-creator/src/main/java/io/mosip/testrig/dslrig/packetcreator/controller/PacketController.java index 730ea114..c3eb9ecc 100644 --- a/mosip-packet-creator/src/main/java/io/mosip/testrig/dslrig/packetcreator/controller/PacketController.java +++ b/mosip-packet-creator/src/main/java/io/mosip/testrig/dslrig/packetcreator/controller/PacketController.java @@ -1,7 +1,5 @@ package io.mosip.testrig.dslrig.packetcreator.controller; - - import java.util.List; import org.slf4j.Logger; @@ -24,134 +22,130 @@ @RestController public class PacketController { - private static final Logger logger = LoggerFactory.getLogger(TestDataController.class); - @Value("${mosip.test.persona.configpath}") - private String personaConfigPath; - - @Autowired - PacketSyncService packetSyncService; - - @Autowired - PacketMakerService packetMakerService; - /* - * Create a packet from Resident data for the target context - * requestDto may contain PersonaRequestType.PR_Options - */ - @PostMapping(value = "/packet/create/{contextKey}") - public @ResponseBody String createPacket(@RequestBody PreRegisterRequestDto requestDto, - @PathVariable("contextKey") String contextKey) { - - try{ - if(personaConfigPath !=null && !personaConfigPath.equals("")) { - DataProviderConstants.RESOURCE = personaConfigPath; - } - - return packetMakerService.createPacketFromTemplate(requestDto.getPersonaFilePath().get(0), requestDto.getPersonaFilePath().get(1), contextKey,requestDto.getAdditionalInfoReqId()); - //return packetSyncService.createPackets(requestDto.,process,null, contextKey); - - - } catch (Exception ex){ - logger.error("createPackets", ex); - } - return "{\"Failed\"}"; - } - @PostMapping(value = "/packet/pack/{contextKey}") - public @ResponseBody String packPacket(@RequestBody PreRegisterRequestDto requestDto, - @PathVariable("contextKey") String contextKey - //@RequestParam(name="isValidChecksum",required = false) Boolean isValidcs - ) { - - try{ - if(personaConfigPath !=null && !personaConfigPath.equals("")) { - DataProviderConstants.RESOURCE = personaConfigPath; - } - boolean isValidChecksum = true; - /*if(isValidcs != null) - isValidChecksum = isValidcs; - */ - return packetMakerService.packPacketContainer(requestDto.getPersonaFilePath().get(0),null,null, contextKey,isValidChecksum); - //return packetSyncService.createPackets(requestDto.,process,null, contextKey); - - - } catch (Exception ex){ - logger.error("createPackets", ex); - } - return "{\"Failed\"}"; - } - - @PostMapping(value = "/packet/template/{process}/{qualityScore}/{genarateValidCbeff}/{contextKey}") - public @ResponseBody String createTemplate(@RequestBody PreRegisterRequestDto requestDto, - @PathVariable("process") String process, - @PathVariable("qualityScore") String qualityScore, - @PathVariable("genarateValidCbeff") boolean genarateValidCbeff, - @PathVariable("contextKey") String contextKey - ) { - - try{ - if(personaConfigPath !=null && !personaConfigPath.equals("")) { - DataProviderConstants.RESOURCE = personaConfigPath; - } - - return packetSyncService.createPacketTemplates(requestDto.getPersonaFilePath(), process, null, null, - contextKey, "Registration", qualityScore, genarateValidCbeff); - - } catch (Exception ex){ - logger.error("createTemplate", ex); - } - return "{\"Failed\"}"; - } - - @PostMapping(value = "/packet/bulkupload/{contextKey}") - public @ResponseBody String bulkUploadPackets(@RequestBody List packetPaths, - @PathVariable("contextKey") String contextKey) { - - try{ - if(personaConfigPath !=null && !personaConfigPath.equals("")) { - DataProviderConstants.RESOURCE = personaConfigPath; - } - - - return packetSyncService.bulkuploadPackets(packetPaths, contextKey) ; - - } catch (Exception ex){ - logger.error("createPackets", ex); - } - return "{\"Failed\"}"; - - } - - @GetMapping(value = "/packet/getTags/{contextKey}") - public @ResponseBody String getPacketTags( @PathVariable("contextKey") String contextKey) { - try{ - return packetSyncService.getPacketTags(contextKey); - - } catch (Exception ex){ - logger.error("get tags", ex); - } - return "{\"Failed\"}"; - } - - @ApiOperation(value = "Validate Identity Object as per ID Schema", response = String.class) - - @PostMapping(value = "/packet/validate/{process}/{contextKey}") - public @ResponseBody String validatePacket(@RequestBody PreRegisterRequestDto requestDto, - @PathVariable("process") String process, - @PathVariable("contextKey") String contextKey -){ - - try{ - if(personaConfigPath !=null && !personaConfigPath.equals("")) { - DataProviderConstants.RESOURCE = personaConfigPath; - } - - - return packetSyncService.validatePacket(requestDto.getPersonaFilePath().get(0), process, contextKey) ; - - } catch (Exception ex){ - logger.error("validatePacket", ex); - } - return "{\"Failed\"}"; - - } - + private static final Logger logger = LoggerFactory.getLogger(TestDataController.class); + @Value("${mosip.test.persona.configpath}") + private String personaConfigPath; + + @Autowired + PacketSyncService packetSyncService; + + @Autowired + PacketMakerService packetMakerService; + + /* + * Create a packet from Resident data for the target context requestDto may + * contain PersonaRequestType.PR_Options + */ + @PostMapping(value = "/packet/create/{contextKey}") + public @ResponseBody String createPacket(@RequestBody PreRegisterRequestDto requestDto, + @PathVariable("contextKey") String contextKey) { + + try { + if (personaConfigPath != null && !personaConfigPath.equals("")) { + DataProviderConstants.RESOURCE = personaConfigPath; + } + + return packetMakerService.createPacketFromTemplate(requestDto.getPersonaFilePath().get(0), + requestDto.getPersonaFilePath().get(1), contextKey, requestDto.getAdditionalInfoReqId()); + // return packetSyncService.createPackets(requestDto.,process,null, contextKey); + + } catch (Exception ex) { + logger.error("createPackets", ex); + } + return "{\"Failed\"}"; + } + + @PostMapping(value = "/packet/pack/{contextKey}") + public @ResponseBody String packPacket(@RequestBody PreRegisterRequestDto requestDto, + @PathVariable("contextKey") String contextKey + // @RequestParam(name="isValidChecksum",required = false) Boolean isValidcs + ) { + + try { + if (personaConfigPath != null && !personaConfigPath.equals("")) { + DataProviderConstants.RESOURCE = personaConfigPath; + } + boolean isValidChecksum = true; + /* + * if(isValidcs != null) isValidChecksum = isValidcs; + */ + return packetMakerService.packPacketContainer(requestDto.getPersonaFilePath().get(0), null, null, + contextKey, isValidChecksum); + // return packetSyncService.createPackets(requestDto.,process,null, contextKey); + + } catch (Exception ex) { + logger.error("createPackets", ex); + } + return "{\"Failed\"}"; + } + + @PostMapping(value = "/packet/template/{process}/{qualityScore}/{genarateValidCbeff}/{contextKey}") + public @ResponseBody String createTemplate(@RequestBody PreRegisterRequestDto requestDto, + @PathVariable("process") String process, @PathVariable("qualityScore") String qualityScore, + @PathVariable("genarateValidCbeff") boolean genarateValidCbeff, + @PathVariable("contextKey") String contextKey) { + + try { + if (personaConfigPath != null && !personaConfigPath.equals("")) { + DataProviderConstants.RESOURCE = personaConfigPath; + } + + return packetSyncService.createPacketTemplates(requestDto.getPersonaFilePath(), process, null, null, + contextKey, "Registration", qualityScore, genarateValidCbeff); + + } catch (Exception ex) { + logger.error("createTemplate", ex); + return "{\"" + ex.getMessage() + "\"}"; + } + } + + @PostMapping(value = "/packet/bulkupload/{contextKey}") + public @ResponseBody String bulkUploadPackets(@RequestBody List packetPaths, + @PathVariable("contextKey") String contextKey) { + + try { + if (personaConfigPath != null && !personaConfigPath.equals("")) { + DataProviderConstants.RESOURCE = personaConfigPath; + } + + return packetSyncService.bulkuploadPackets(packetPaths, contextKey); + + } catch (Exception ex) { + logger.error("createPackets", ex); + } + return "{\"Failed\"}"; + + } + + @GetMapping(value = "/packet/getTags/{contextKey}") + public @ResponseBody String getPacketTags(@PathVariable("contextKey") String contextKey) { + try { + return packetSyncService.getPacketTags(contextKey); + + } catch (Exception ex) { + logger.error("get tags", ex); + } + return "{\"Failed\"}"; + } + + @ApiOperation(value = "Validate Identity Object as per ID Schema", response = String.class) + + @PostMapping(value = "/packet/validate/{process}/{contextKey}") + public @ResponseBody String validatePacket(@RequestBody PreRegisterRequestDto requestDto, + @PathVariable("process") String process, @PathVariable("contextKey") String contextKey) { + + try { + if (personaConfigPath != null && !personaConfigPath.equals("")) { + DataProviderConstants.RESOURCE = personaConfigPath; + } + + return packetSyncService.validatePacket(requestDto.getPersonaFilePath().get(0), process, contextKey); + + } catch (Exception ex) { + logger.error("validatePacket", ex); + } + return "{\"Failed\"}"; + + } + } diff --git a/mosip-packet-creator/src/main/java/io/mosip/testrig/dslrig/packetcreator/controller/PersonaController.java b/mosip-packet-creator/src/main/java/io/mosip/testrig/dslrig/packetcreator/controller/PersonaController.java index 54de6fe0..5fe3870c 100644 --- a/mosip-packet-creator/src/main/java/io/mosip/testrig/dslrig/packetcreator/controller/PersonaController.java +++ b/mosip-packet-creator/src/main/java/io/mosip/testrig/dslrig/packetcreator/controller/PersonaController.java @@ -34,161 +34,135 @@ public class PersonaController { private String personaConfigPath; @Autowired PacketSyncService packetSyncService; - @Value("${mosip.test.persona.Angulipath}") - private String personaAnguliPath; - + @Value("${mosip.test.persona.Angulipath}") + private String personaAnguliPath; + private static final Logger logger = LoggerFactory.getLogger(PersonaController.class); @ApiOperation(value = "Update given persona record with the given list of attribute values", response = String.class) @PutMapping(value = "/persona/{id}/{contextKey}") - public @ResponseBody String updatePersonaData(@RequestBody List personaRequestDto , - @PathVariable("id") String id, - @PathVariable("contextKey") String contextKey - ) { - try{ - if(personaConfigPath !=null && !personaConfigPath.equals("")) { - DataProviderConstants.RESOURCE = personaConfigPath; - } - VariableManager.Init(contextKey); - - return packetSyncService.updatePersonaData(personaRequestDto,contextKey); - - } catch (Exception ex){ - logger.error("updatePersonaData", ex); - } - return "{Failed}"; - + public @ResponseBody String updatePersonaData(@RequestBody List personaRequestDto, + @PathVariable("id") String id, @PathVariable("contextKey") String contextKey) { + try { + if (personaConfigPath != null && !personaConfigPath.equals("")) { + DataProviderConstants.RESOURCE = personaConfigPath; + } + VariableManager.Init(contextKey); + + return packetSyncService.updatePersonaData(personaRequestDto, contextKey); + + } catch (Exception ex) { + logger.error("updatePersonaData", ex); + } + return "{Failed}"; + } + @ApiOperation(value = "Update given persona record with the given list of biometric exceptions", response = String.class) @PutMapping(value = "/persona/bioexceptions/{contextKey}") - public @ResponseBody String updatePersonaBioExceptions(@RequestBody BioExceptionDto personaBERequestDto - , - //@PathVariable("id") String id, + public @ResponseBody String updatePersonaBioExceptions(@RequestBody BioExceptionDto personaBERequestDto, + // @PathVariable("id") String id, @PathVariable("contextKey") String contextKey) { - try{ - if(personaConfigPath !=null && !personaConfigPath.equals("")) { - DataProviderConstants.RESOURCE = personaConfigPath; - } - return packetSyncService.updatePersonaBioExceptions(personaBERequestDto,contextKey); - - } catch (Exception ex){ - logger.error("updatePersonaData", ex); - } - return "{Failed}"; - + try { + if (personaConfigPath != null && !personaConfigPath.equals("")) { + DataProviderConstants.RESOURCE = personaConfigPath; + } + return packetSyncService.updatePersonaBioExceptions(personaBERequestDto, contextKey); + + } catch (Exception ex) { + logger.error("updatePersonaData", ex); + } + return "{Failed}"; + } + @ApiOperation(value = "Create persona record as per the given specification", response = String.class) @PostMapping(value = "/persona/{count}/{contextKey}") public @ResponseBody String generateResidentData(@RequestBody PersonaRequestDto residentRequestDto, - @PathVariable("count") int count, - @PathVariable("contextKey") String contextKey) { - - try{ - logger.info("Persona Config Path="+ personaConfigPath ); - if(personaConfigPath !=null && !personaConfigPath.equals("")) { - DataProviderConstants.RESOURCE = personaConfigPath; - } - if(personaAnguliPath !=null && !personaAnguliPath.equals("")) { - DataProviderConstants.ANGULI_PATH = personaAnguliPath; - } - logger.info("personaAnguliPath ="+ DataProviderConstants.ANGULI_PATH ); - - logger.info("Resource Path="+ DataProviderConstants.RESOURCE ); - logger.info("DOC_Template Path="+ DataProviderConstants.RESOURCE+DataProviderConstants.DOC_TEMPLATE_PATH); - - //clear all tokens - // VariableManager.setVariableValue("urlSwitched", "true"); - - return packetSyncService.generateResidentData(count,residentRequestDto, contextKey).toString(); - - } catch (Exception ex){ - logger.error("generateResidentData", ex); - } - return "{Failed}"; - } + @PathVariable("count") int count, @PathVariable("contextKey") String contextKey) { + + try { + logger.info("Persona Config Path=" + personaConfigPath); + if (personaConfigPath != null && !personaConfigPath.equals("")) { + DataProviderConstants.RESOURCE = personaConfigPath; + } + if (personaAnguliPath != null && !personaAnguliPath.equals("")) { + DataProviderConstants.ANGULI_PATH = personaAnguliPath; + } + logger.info("personaAnguliPath =" + DataProviderConstants.ANGULI_PATH); + + logger.info("Resource Path=" + DataProviderConstants.RESOURCE); + logger.info( + "DOC_Template Path=" + DataProviderConstants.RESOURCE + DataProviderConstants.DOC_TEMPLATE_PATH); + + // clear all tokens + // VariableManager.setVariableValue("urlSwitched", "true"); + + return packetSyncService.generateResidentData(count, residentRequestDto, contextKey).toString(); + + } catch (Exception ex) { + logger.error("generateResidentData", ex); + } + return "{Failed}"; + } + @ApiOperation(value = "Return from the given persona record , list of specified attribute values", response = String.class) @GetMapping(value = "/persona/{contextKey}") public @ResponseBody String getPersonaData(@RequestBody List personaRequestDto, - @PathVariable("contextKey") String contextKey - ) { - try{ - if(personaConfigPath !=null && !personaConfigPath.equals("")) { - DataProviderConstants.RESOURCE = personaConfigPath; - } - return packetSyncService.getPersonaData(personaRequestDto,contextKey); - - } catch (Exception ex){ - logger.error("getPersonaData", ex); - } - return "{Failed}"; - + @PathVariable("contextKey") String contextKey) { + try { + if (personaConfigPath != null && !personaConfigPath.equals("")) { + DataProviderConstants.RESOURCE = personaConfigPath; + } + return packetSyncService.getPersonaData(personaRequestDto, contextKey); + + } catch (Exception ex) { + logger.error("getPersonaData", ex); + } + return "{Failed}"; + } - -// @ApiOperation(value = "Set Persona specific expectations in mock ABIS, Duplicate -> True/False", response = String.class) -// @PostMapping(value = "/persona/mockabis/expectaions/{duplicate}/{contextKey}") -// public @ResponseBody String setPersonaMockABISExpectation(@RequestBody List personaFilePath, -// @PathVariable("duplicate") boolean bDuplicate, -// @PathVariable("contextKey") String contextKey -// ) { -// -// try{ -// if(personaConfigPath !=null && !personaConfigPath.equals("")) { -// DataProviderConstants.RESOURCE = personaConfigPath; -// } -// return packetSyncService.setPersonaMockABISExpectation(personaFilePath, bDuplicate,contextKey, statusCode,failureReason); -// -// } catch (Exception ex){ -// logger.error("setPersonaMockABISExpectation", ex); -// } -// return "{Failed}"; -// -// } - @ApiOperation(value = "Extended API to set Persona specific expectations in mock ABIS ", response = String.class) @PostMapping(value = "/persona/mockabis/v2/expectations/{contextKey}") - public @ResponseBody String setPersonaMockABISExpectationV2(@RequestBody List expectations, - @PathVariable("contextKey") String contextKey ) { - - try{ - if(personaConfigPath !=null && !personaConfigPath.equals("")) { - DataProviderConstants.RESOURCE = personaConfigPath; - } - return packetSyncService.setPersonaMockABISExpectationV2(expectations,contextKey); - - } catch (Exception ex){ - logger.error("setPersonaMockABISExpectation", ex); - } - return "{Failed}"; - - } - + public @ResponseBody String setPersonaMockABISExpectationV2(@RequestBody List expectations, + @PathVariable("contextKey") String contextKey) { + + try { + if (personaConfigPath != null && !personaConfigPath.equals("")) { + DataProviderConstants.RESOURCE = personaConfigPath; + } + return packetSyncService.setPersonaMockABISExpectation(expectations, contextKey); + + } catch (Exception ex) { + logger.error("setPersonaMockABISExpectation", ex); + } + return "{Failed}"; + + } + @ApiOperation(value = "Delete expectation for a given Id", response = String.class) @DeleteMapping(value = "/mock-abis-service/config/expectation/{contextKey}") - public @ResponseBody String deleteExpectations( - @PathVariable("contextKey") String contextKey) { - - return packetSyncService.deleteMockAbisExpectations( contextKey); - - } - - - - + public @ResponseBody String deleteExpectations(@PathVariable("contextKey") String contextKey) { + + return packetSyncService.deleteMockAbisExpectations(contextKey); + + } + @ApiOperation(value = "Update the machine details ", response = String.class) - @PutMapping(value = "/updateMachine/{contextKey}") - public @ResponseBody String updateMachine(@RequestBody MosipMachineModel machine, - @PathVariable("contextKey") String contextKey) { - try{ - if(personaConfigPath !=null && !personaConfigPath.equals("")) { - DataProviderConstants.RESOURCE = personaConfigPath; - } - return packetSyncService.updateMachine(machine, contextKey); - - } catch (Exception ex){ - logger.error("updateMachine", ex); - } - return "{Failed}"; - } + @PutMapping(value = "/updateMachine/{contextKey}") + public @ResponseBody String updateMachine(@RequestBody MosipMachineModel machine, + @PathVariable("contextKey") String contextKey) { + try { + if (personaConfigPath != null && !personaConfigPath.equals("")) { + DataProviderConstants.RESOURCE = personaConfigPath; + } + return packetSyncService.updateMachine(machine, contextKey); + + } catch (Exception ex) { + logger.error("updateMachine", ex); + } + return "{Failed}"; + } } diff --git a/mosip-packet-creator/src/main/java/io/mosip/testrig/dslrig/packetcreator/service/PacketSyncService.java b/mosip-packet-creator/src/main/java/io/mosip/testrig/dslrig/packetcreator/service/PacketSyncService.java index 173cc348..62e6efeb 100644 --- a/mosip-packet-creator/src/main/java/io/mosip/testrig/dslrig/packetcreator/service/PacketSyncService.java +++ b/mosip-packet-creator/src/main/java/io/mosip/testrig/dslrig/packetcreator/service/PacketSyncService.java @@ -529,8 +529,10 @@ public String uploadPacket(String path, String contextKey) throws Exception { // To do -- Need to review these two below tags once the conclusion happens what // tags will be set on the packet - VariableManager.setVariableValue(contextKey, "META_INFO-CAPTURED_REGISTERED_DEVICES-Finger", "MOSIP-FINGER01-2345678901"); - VariableManager.setVariableValue(contextKey, "META_INFO-CAPTURED_REGISTERED_DEVICES-Face", "MOSIP-FACE01-2345678901"); + VariableManager.setVariableValue(contextKey, "META_INFO-CAPTURED_REGISTERED_DEVICES-Finger", + "MOSIP-FINGER01-2345678901"); + VariableManager.setVariableValue(contextKey, "META_INFO-CAPTURED_REGISTERED_DEVICES-Face", + "MOSIP-FACE01-2345678901"); logger.debug("Tags set while generating the packet: " + VariableManager.getVariableValue(contextKey, "META_INFO-OPERATIONS_DATA-supervisorId") @@ -816,54 +818,6 @@ public String uploadDocuments(String personaFilePath, String preregId, String co return response; } - public String createPacket(PersonaRequestDto personaRequest, String process, String preregId, String contextKey, - String purpose, String qualityScore, boolean genarateValidCbeff) throws IOException { - - Path packetDir = null; - JSONArray packetPaths = new JSONArray(); - boolean isFileCreated = false; - - packetDir = Files.createTempDirectory("packets_"); - VariableManager.setVariableValue(contextKey, "packets_", packetDir.toFile().getAbsolutePath()); - - Properties personaFiles = personaRequest.getRequests().get(PersonaRequestType.PR_ResidentList); - Properties options = personaRequest.getRequests().get(PersonaRequestType.PR_Options); - - List lstObjects = Arrays.asList(personaFiles.values().toArray()); - List personaFilePaths = new ArrayList(); - for (Object o : lstObjects) { - personaFilePaths.add(o.toString()); - } - - if (!packetDir.toFile().exists()) { - isFileCreated = packetDir.toFile().createNewFile(); - if (isFileCreated) - RestClient.logInfo(contextKey, "isFileCreated" + isFileCreated); - - } - PacketTemplateProvider packetTemplateProvider = new PacketTemplateProvider(); - - for (String path : personaFilePaths) { - ResidentModel resident = ResidentModel.readPersona(path); - String packetPath = packetDir.toString() + File.separator + resident.getId(); - - Properties props = contextUtils.loadServerContext(contextKey); - packetTemplateProvider.generate("registration_client", process, resident, packetPath, preregId, machineId, - centerId, contextKey, props, new JSONObject(), purpose, qualityScore, genarateValidCbeff); - - JSONObject obj = new JSONObject(); - obj.put("id", resident.getId()); - obj.put("path", packetPath); - RestClient.logInfo(contextKey, "createPacket:" + packetPath); - packetPaths.put(obj); - - } - JSONObject response = new JSONObject(); - response.put("packets", packetPaths); - return response.toString(); - - } - public String createPacketTemplates(List personaFilePaths, String process, String outDir, String preregId, String contextKey, String purpose, String qualityScore, boolean genarateValidCbeff) throws IOException { boolean packetDirCreated = false; @@ -911,10 +865,11 @@ public String createPacketTemplates(List personaFilePaths, String proces centerId = VariableManager.getVariableValue(contextKey, MOSIP_TEST_REGCLIENT_CENTERID).toString(); - if (packetTemplateProvider.generate("registration_client", process, resident, packetPath, preregId, + String returnMsg = packetTemplateProvider.generate("registration_client", process, resident, packetPath, preregId, machineId, centerId, contextKey, props, preregResponse, purpose, qualityScore, - genarateValidCbeff) == false) - return "{\"Failed\"}"; + genarateValidCbeff); + if (!returnMsg.equalsIgnoreCase("Success")) + return "{\"" + returnMsg + "\"}"; JSONObject obj = new JSONObject(); obj.put("id", resident.getId()); @@ -926,6 +881,7 @@ public String createPacketTemplates(List personaFilePaths, String proces } } catch (Exception e) { logger.error("createPacketTemplates", e); + return "{\"" + e.getMessage() + "\"}"; } JSONObject response = new JSONObject(); @@ -1409,34 +1365,6 @@ public String getPacketTags(String contextKey) { } - public String setPersonaMockABISExpectation(List personaFilePath, boolean bDuplicate, String contextKey, - String statusCode, String failureReason) throws JSONException, NoSuchAlgorithmException, IOException { - - String bdbString = ""; - String[] duplicateBdbs; - - RestClient.logInfo(contextKey, "setPersonaMockABISExpectation"); - - loadServerContextProperties(contextKey); - for (String personaPath : personaFilePath) { - - ResidentModel persona = ResidentModel.readPersona(personaPath); - List capDetails = persona.getBiometric().getCapture() - .get(DataProviderConstants.MDS_DEVICE_TYPE_FINGER); - bdbString = capDetails.get(0).getBioValue(); - - if (bDuplicate) { - duplicateBdbs = new String[2]; - duplicateBdbs[0] = capDetails.get(1).getBioValue(); - duplicateBdbs[1] = capDetails.get(2).getBioValue(); - } else - duplicateBdbs = null; - MosipDataSetup.configureMockABISBiometric(bdbString, bDuplicate, duplicateBdbs, - DataProviderConstants.DEFAULT_ABIS_DELAY, null, contextKey, statusCode, failureReason); - } - return STATUS_SUCCESS; - } - String getRegIdFromPacketPath(String packetPath) { // leaf node of packet path is regid return Path.of(packetPath).getFileName().toString(); @@ -1466,7 +1394,7 @@ public String validatePacket(String packetPath, String processArg, String contex return ret.toString(); } - public String setPersonaMockABISExpectationV2(List expectations, String contextKey) + public String setPersonaMockABISExpectation(List expectations, String contextKey) throws JSONException, NoSuchAlgorithmException, IOException { String bdbString = ""; diff --git a/mosipTestDataProvider/src/io/mosip/testrig/dslrig/dataprovider/BiometricDataProvider.java b/mosipTestDataProvider/src/io/mosip/testrig/dslrig/dataprovider/BiometricDataProvider.java index 82f4842a..8f9cc695 100644 --- a/mosipTestDataProvider/src/io/mosip/testrig/dslrig/dataprovider/BiometricDataProvider.java +++ b/mosipTestDataProvider/src/io/mosip/testrig/dslrig/dataprovider/BiometricDataProvider.java @@ -103,7 +103,7 @@ public class BiometricDataProvider { private static final String SCENARIO = "scenario"; static String buildBirIris(String irisInfo, String irisName, String jtwSign, String payload, String qualityScore, - boolean genarateValidCbeff, String exception,String contextKey) throws ParserConfigurationException, + boolean genarateValidCbeff, String exception, String contextKey) throws ParserConfigurationException, FactoryConfigurationError, TransformerException, FileNotFoundException { String today = CommonUtil.getUTCDateTime(null); XMLBuilder builder = XMLBuilder.create("BIR").a(XMLNS, "http://standards.iso.org/iso-iec/19785/-3/ed-2/") @@ -130,8 +130,9 @@ static String buildBirIris(String irisInfo, String irisName, String jtwSign, Str static String buildBirFinger(String fingerInfo, String fingerName, String jtwSign, String payload, - String qualityScore, boolean generateValidCbeff, String exception,String contextKey) throws ParserConfigurationException, - FactoryConfigurationError, TransformerException, FileNotFoundException { + String qualityScore, boolean generateValidCbeff, String exception, String contextKey) + throws ParserConfigurationException, FactoryConfigurationError, TransformerException, + FileNotFoundException { String today = CommonUtil.getUTCDateTime(null); XMLBuilder builder = null; String bdbKey = "BDB"; @@ -160,7 +161,7 @@ static String buildBirFinger(String fingerInfo, String fingerName, String jtwSig } static String buildBirFace(String faceInfo, String jtwSign, String payload, String qualityScore, - boolean genarateValidCbeff, String exception,String contextKey) throws ParserConfigurationException, + boolean genarateValidCbeff, String exception, String contextKey) throws ParserConfigurationException, FactoryConfigurationError, TransformerException, FileNotFoundException { String today = CommonUtil.getUTCDateTime(null); XMLBuilder builder = XMLBuilder.create("BIR").a(XMLNS, "http://standards.iso.org/iso-iec/19785/-3/ed-2/") @@ -187,7 +188,7 @@ static String buildBirFace(String faceInfo, String jtwSign, String payload, Stri } static String buildBirExceptionPhoto(String faceInfo, String jtwSign, String payload, String qualityScore, - boolean genarateValidCbeff, String exception,String contextKey) throws ParserConfigurationException, + boolean genarateValidCbeff, String exception, String contextKey) throws ParserConfigurationException, FactoryConfigurationError, TransformerException, FileNotFoundException { String today = CommonUtil.getUTCDateTime(null); XMLBuilder builder = XMLBuilder.create("BIR").a(XMLNS, "http://standards.iso.org/iso-iec/19785/-3/ed-2/") @@ -320,15 +321,14 @@ public static MDSRCaptureModel regenBiometricViaMDS(ResidentModel resident, Stri steps.setMDSscore(portAsPerKey.get("port_" + contextKey), "Biometric Device", qualityScore, contextKey); RestClient.logInfo(contextKey, "mds score is changed to : " + qualityScore); biodata = resident.getBiometric(); - // This condition will address those scenarios where we are not passing any biometrics + // This condition will address those scenarios where we are not passing any + // biometrics if (biodata.getFaceHash() == null && biodata.getFingerHash() == null && biodata.getIris() == null) return new MDSRCaptureModel(); - } catch ( - - Throwable t) { + } catch (Throwable t) { logger.error(" Port issue " + contextKey, t); t.getStackTrace(); - return capture; + return null; } // Get Exceptions modalities abd add them to list of string @@ -352,6 +352,7 @@ public static MDSRCaptureModel regenBiometricViaMDS(ResidentModel resident, Stri catch (Throwable t) { logger.error(" Face get capture fail" + contextKey, t); t.getStackTrace(); + return null; } // Step 2 : IRIS get capture @@ -418,6 +419,7 @@ public static MDSRCaptureModel regenBiometricViaMDS(ResidentModel resident, Stri catch (Throwable t) { logger.error(" IRIS get capture fail" + contextKey, t); t.getStackTrace(); + return null; } try { @@ -479,10 +481,11 @@ public static MDSRCaptureModel regenBiometricViaMDS(ResidentModel resident, Stri catch (Throwable t) { logger.error("Finger get capture fail" + contextKey, t); t.getStackTrace(); + return null; } try { - // Step 4 : Exceptionphoto face capture + // Step 4 : Exception photo face capture if (bioExceptions != null && !bioExceptions.isEmpty()) { List exceptionfaceDevices = mds.getRegDeviceInfo(DataProviderConstants.MDS_DEVICE_TYPE_FACE); @@ -495,6 +498,7 @@ public static MDSRCaptureModel regenBiometricViaMDS(ResidentModel resident, Stri } catch (Throwable t) { logger.error("Exception photo capture failure" + contextKey, t); t.getStackTrace(); + return null; } } @@ -504,6 +508,7 @@ public static MDSRCaptureModel regenBiometricViaMDS(ResidentModel resident, Stri catch (Throwable t) { logger.error("Exceptionphoto face capture", t); t.getStackTrace(); + return null; } mds.removeProfile(mdsprofilePath, profileName, port, contextKey); @@ -540,7 +545,8 @@ public static String toCBEFFFromCapture(List bioFilter, MDSRCaptureModel contextKey); if (exceptionlist != null && !exceptionlist.isEmpty()) { - builder = xmlbuilderFingerExep(bioFilter, exceptionlist, bioSubType, builder, genarateValidCbeff,contextKey); + builder = xmlbuilderFingerExep(bioFilter, exceptionlist, bioSubType, builder, genarateValidCbeff, + contextKey); } } catch (Exception e) { logger.error("xmlbuilderFinger failed" + e.getMessage()); @@ -556,7 +562,7 @@ public static String toCBEFFFromCapture(List bioFilter, MDSRCaptureModel bioSubType.add("face"); String faceXml = buildBirFace(lstFaceData.get(0).getBioValue(), lstFaceData.get(0).getSb(), lstFaceData.get(0).getPayload(), lstFaceData.get(0).getQualityScore(), genarateValidCbeff, - FALSE,contextKey); + FALSE, contextKey); builder = builder.importXMLBuilder(XMLBuilder.parse(faceXml)); } @@ -574,7 +580,8 @@ public static String toCBEFFFromCapture(List bioFilter, MDSRCaptureModel contextKey); if (exceptionlist != null && !exceptionlist.isEmpty()) { - builder = xmlbuilderIrisExcep(bioFilter, exceptionlist, bioSubType, builder, genarateValidCbeff,contextKey); + builder = xmlbuilderIrisExcep(bioFilter, exceptionlist, bioSubType, builder, genarateValidCbeff, + contextKey); } } catch (Exception e) { logger.error("xmlbuilderIris failed"); @@ -589,7 +596,7 @@ public static String toCBEFFFromCapture(List bioFilter, MDSRCaptureModel bioSubType.add("exceptionphoto"); String faceXml = buildBirExceptionPhoto(lstFaceData.get(1).getBioValue(), lstFaceData.get(1).getSb(), lstFaceData.get(1).getPayload(), lstFaceData.get(1).getQualityScore(), genarateValidCbeff, - FALSE,contextKey); + FALSE, contextKey); builder = builder.importXMLBuilder(XMLBuilder.parse(faceXml)); } } catch (Exception e) { @@ -636,14 +643,14 @@ private static XMLBuilder xmlbuilderIris(List bioFilter, List bioFilter, List bioFilter, List lstIrisData, - List bioSubType, XMLBuilder builder, boolean genarateValidCbeff,String contextKey) { + List bioSubType, XMLBuilder builder, boolean genarateValidCbeff, String contextKey) { try { if (lstIrisData != null) { for (BioModality finger : lstIrisData) { @@ -665,7 +672,7 @@ private static XMLBuilder xmlbuilderIrisExcep(List bioFilter, List bioFilter, List= 0 && fingerData != null && currentCM != null) { String strFinger = DataProviderConstants.displayFingerName[i]; String strFingerXml = buildBirFinger(fingerData, strFinger, currentCM.getSb(), - currentCM.getPayload(), currentCM.getQualityScore(), genarateValidCbeff, FALSE,contextKey); + currentCM.getPayload(), currentCM.getQualityScore(), genarateValidCbeff, FALSE, + contextKey); XMLBuilder fbuilder = XMLBuilder.parse(strFingerXml); builder = builder.importXMLBuilder(fbuilder); } @@ -745,7 +753,7 @@ private static XMLBuilder xmlbuilderFinger(List bioFilter, List bioFilter, List lstFingerData, - List bioSubType, XMLBuilder builder, boolean genarateValidCbeff,String contextKey) + List bioSubType, XMLBuilder builder, boolean genarateValidCbeff, String contextKey) throws ParserConfigurationException, FactoryConfigurationError, TransformerException, SAXException, IOException { @@ -755,7 +763,7 @@ private static XMLBuilder xmlbuilderFingerExep(List bioFilter, List bioFilter, List bioFilter, BiometricDataModel biometricDataModel, String toFile, - boolean genarateValidCbeff,String contextKey) throws Exception { + boolean genarateValidCbeff, String contextKey) throws Exception { String retXml = ""; XMLBuilder builder = XMLBuilder.create("BIR").a(XMLNS, "http://standards.iso.org/iso-iec/19785/-3/ed-2/") @@ -799,7 +807,7 @@ public static String toCBEFF(List bioFilter, BiometricDataModel biometri if (i >= 0) { String strFinger = DataProviderConstants.displayFingerName[i]; String strFingerXml = buildBirFinger(fingerPrint[i], strFinger, null, null, qualityScore, - genarateValidCbeff, FALSE,contextKey); + genarateValidCbeff, FALSE, contextKey); XMLBuilder fbuilder = XMLBuilder.parse(strFingerXml); builder = builder.importXMLBuilder(fbuilder); @@ -811,7 +819,7 @@ public static String toCBEFF(List bioFilter, BiometricDataModel biometri if (bioFilter.contains("Face")) { if (biometricDataModel.getEncodedPhoto() != null) { String faceXml = buildBirFace(biometricDataModel.getEncodedPhoto(), null, null, qualityScore, - genarateValidCbeff, "true",contextKey); + genarateValidCbeff, "true", contextKey); builder = builder.importXMLBuilder(XMLBuilder.parse(faceXml)); } } @@ -821,13 +829,13 @@ public static String toCBEFF(List bioFilter, BiometricDataModel biometri if (irisInfo != null) { String irisXml = ""; if (bioFilter.contains(LEFTEYE)) { - irisXml = buildBirIris(irisInfo.getLeft(), "Left", null, null, qualityScore, genarateValidCbeff, - "true",contextKey); + irisXml = buildBirIris(irisInfo.getLeft(), "Left", null, null, qualityScore, genarateValidCbeff, "true", + contextKey); builder = builder.importXMLBuilder(XMLBuilder.parse(irisXml)); } if (bioFilter.contains(RIGHTEYE)) { - irisXml = buildBirIris(irisInfo.getRight(), RIGHT, null, null, qualityScore, genarateValidCbeff, - "true",contextKey); + irisXml = buildBirIris(irisInfo.getRight(), RIGHT, null, null, qualityScore, genarateValidCbeff, "true", + contextKey); builder = builder.importXMLBuilder(XMLBuilder.parse(irisXml)); } } @@ -1232,7 +1240,7 @@ public static void main(String[] args) { try { - String value = buildBirFinger("addfdfd", "finger", "jwtSign", PAYLOAD, null, true, FALSE,null); + String value = buildBirFinger("addfdfd", "finger", "jwtSign", PAYLOAD, null, true, FALSE, null); logger.info(value); } catch (FileNotFoundException e2) { logger.error(e2.getMessage()); @@ -1268,7 +1276,7 @@ public static void main(String[] args) { lstBioAttributes.add(RIGHTEYE); try { - xml = toCBEFF(lstBioAttributes, bio, "cbeffallfingersOut.xml", true,null); + xml = toCBEFF(lstBioAttributes, bio, "cbeffallfingersOut.xml", true, null); } catch (Exception e) { logger.error(e.getMessage()); diff --git a/mosipTestDataProvider/src/io/mosip/testrig/dslrig/dataprovider/PacketTemplateProvider.java b/mosipTestDataProvider/src/io/mosip/testrig/dslrig/dataprovider/PacketTemplateProvider.java index 85c68785..933e9675 100644 --- a/mosipTestDataProvider/src/io/mosip/testrig/dslrig/dataprovider/PacketTemplateProvider.java +++ b/mosipTestDataProvider/src/io/mosip/testrig/dslrig/dataprovider/PacketTemplateProvider.java @@ -112,7 +112,7 @@ public ContextSchemaDetail getSchema(String contextKey) { } // generate un encrypted template - public boolean generate(String source, String process, ResidentModel resident, String packetFilePath, + public String generate(String source, String process, ResidentModel resident, String packetFilePath, String preregId, String machineId, String centerId, String contextKey, Properties props, JSONObject preregResponse, String purpose, String qualityScore, boolean genarateValidCbeff) throws IOException { @@ -163,14 +163,15 @@ public boolean generate(String source, String process, ResidentModel resident, S String idJson = null; try { - idJson = generateIDJsonV2(resident, fileInfo, contextKey, props, preregResponse, purpose, - contextSchemaDetail, qualityScore, genarateValidCbeff); + idJson = generateIDJson(resident, fileInfo, contextKey, props, preregResponse, purpose, contextSchemaDetail, + qualityScore, genarateValidCbeff); - if (idJson != null && idJson.isEmpty()) - return false; + if (idJson != null && idJson.equalsIgnoreCase("Failed to generate biometric via mds")) + return "Failed to generate biometric via mds"; } catch (Throwable e) { logger.error("generate", e); + return e.getMessage(); } JSONObject processMVEL = processMVEL(resident, idJson, process, contextSchemaDetail, contextKey); idJson = processMVEL.toString(); @@ -181,7 +182,7 @@ public boolean generate(String source, String process, ResidentModel resident, S // Generate evidence json - String evidenceJson = generateEvidenceJsonV2(resident, fileInfo, contextKey, props, contextSchemaDetail); + String evidenceJson = generateEvidenceJson(resident, fileInfo, contextKey, props, contextSchemaDetail); Files.write(Paths.get(rid_evidence_folder + ID_JSON), evidenceJson.getBytes()); Files.write(Paths.get(rid_evidence_folder + PACKET_META_INFO_JSON), metadataJson.getBytes()); @@ -197,7 +198,7 @@ public boolean generate(String source, String process, ResidentModel resident, S idJson = genRID_PacketTypeJson(source, process, "optional", contextSchemaDetail); Files.write(Paths.get(processFolder + File.separator + "/rid_optional.json"), idJson.getBytes()); - return true; + return "Success"; } @@ -298,134 +299,6 @@ static Map getIdentityObject(List schemas, String } String generateEvidenceJson(ResidentModel resident, HashMap fileInfo, String contextKey, - ContextSchemaDetail contextSchemaDetail) { - - JSONObject identity = new JSONObject(); - - List missList = resident.getMissAttributes(); - - for (MosipIDSchema s : contextSchemaDetail.getSchema()) { - String primVal = ""; - String secVal = ""; - if (s.getFieldCategory().equals(EVIDENCE) && (s.getInputRequired() || s.getRequired())) { - - if (s.getRequired() && s.getRequiredOn() != null && !s.getRequiredOn().isEmpty()) { - continue; - } - - if (s.getType().equals(DOCUMENTTYPE)) { - - int index = 0; - for (MosipDocument doc : resident.getDocuments()) { - if (CommonUtil.isExists(missList, doc.getDocCategoryCode())) - continue; - index = 0; - if (doc.getDocCategoryCode().toLowerCase().equals(s.getSubType().toLowerCase())) { - index = CommonUtil.generateRandomNumbers(1, doc.getDocs().size() - 1, 0)[0]; - String docFile = doc.getDocs().get(index); - RestClient.logInfo(contextKey, - DOCFILE + docFile + DTYPE + s.getSubType() + CAT + s.getId()); - - JSONObject o = new JSONObject(); - o.put(FORMAT, "pdf"); - o.put("type", doc.getType().get(index).getCode()); - String[] v = fileInfo.get(RID_EVIDENCE); - v[1] = s.getId() + ".pdf"; - fileInfo.put(RID_EVIDENCE, v); - o.put(VALUE, s.getId()); - - identity.put(s.getId(), o); - - String outFile = fileInfo.get(RID_EVIDENCE)[0] + "/" + fileInfo.get(RID_EVIDENCE)[1]; - try { - Files.copy(Paths.get(docFile), Paths.get(outFile)); - - } catch (Exception e) { - logger.error(e.getMessage()); - } - break; - } - - } - continue; - } else if (s.getId().toLowerCase().equals("uin")) { - if (resident.getUIN() == null || resident.getUIN().equals("")) - identity.put(s.getId(), JSONObject.NULL); - else - identity.put(s.getId(), resident.getUIN()); - continue; - } else if ((s.getGroup().toLowerCase().equals(GUARDIANDETAILS) - || s.getGroup().toLowerCase().equals(INTRODUCERDETAILS)) - && (s.getSubType().toLowerCase().matches(".*guard.*uin") - || s.getSubType().toLowerCase().equals("uin"))) { - if (resident.isMinor() || resident.isInfant()) { - if (resident.getGuardian().getUIN() == null || resident.getGuardian().getUIN().equals("")) { - // skip if null - } else - identity.put(s.getId(), resident.getGuardian().getUIN()); - } - continue; - } else if ((s.getGroup().toLowerCase().equals(GUARDIANDETAILS) - || s.getGroup().toLowerCase().equals(INTRODUCERDETAILS)) - && (s.getId().toLowerCase().matches(".*guard.*rid") - || s.getSubType().toLowerCase().equals("rid"))) { - if (resident.isMinor() || resident.isInfant()) { - if (resident.getGuardian() != null && (resident.getGuardian().getRID() == null - || resident.getGuardian().getRID().equals(""))) { - } else - identity.put(s.getId(), resident.getGuardian().getRID()); - } - continue; - } else if ((s.getGroup().toLowerCase().equals(GUARDIANDETAILS) - || s.getGroup().toLowerCase().equals(INTRODUCERDETAILS)) - && (s.getId().toLowerCase().matches(".*guard.*name") - || s.getSubType().toLowerCase().equals(INTRODUCERNAME))) { - if (resident.isMinor() || resident.isInfant()) { - String primValue = ""; - String secValue = ""; - JSONObject o = new JSONObject(); - o.put(LANGUAGE, resident.getPrimaryLanguage()); - if (resident.getGuardian() != null) - primValue = resident.getGuardian().getName().getFirstName(); - - if (resident.getSecondaryLanguage() != null) { - if (resident.getGuardian() != null && resident.getGuardian().getName_seclang() != null) - secValue = resident.getGuardian().getName_seclang().getFirstName(); - } - - updateSimpleType(s.getId(), identity, primValue, secValue, resident.getPrimaryLanguage(), - resident.getSecondaryLanguage(), resident.getThirdLanguage(), contextKey); - - } - continue; - } else if (s.getId().toLowerCase().contains("consent")) { - continue; - } else if (s.getControlType().equals(CHECKBOX)) { - primVal = "Y"; - secVal = "Y"; - } else { - primVal = "Some text value"; - if (resident.getSecondaryLanguage() != null) - secVal = Translator.translate(resident.getSecondaryLanguage(), primVal, contextKey); - - } - if (s.getType().equals(SIMPLETYPE)) { - - updateSimpleType(s.getId(), identity, primVal, secVal, resident.getPrimaryLanguage(), - resident.getSecondaryLanguage(), resident.getThirdLanguage(), contextKey); - - } else { - identity.put(s.getId(), primVal.equals("") ? JSONObject.NULL : primVal); - } - } - } - JSONObject retObject = new JSONObject(); - retObject.put(IDENTITY, identity); - return retObject.toString(); - - } - - String generateEvidenceJsonV2(ResidentModel resident, HashMap fileInfo, String contextKey, Properties prop, ContextSchemaDetail contextSchemaDetail) { VariableManager.setVariableValue(contextKey, "INTRODUCER_AVAILABILITY", "false"); @@ -479,7 +352,8 @@ String generateEvidenceJsonV2(ResidentModel resident, HashMap } continue; - } else if (VariableManager.getVariableValue(contextKey, "uin") != null && s.getId().equals(VariableManager.getVariableValue(contextKey, "uin"))) { + } else if (VariableManager.getVariableValue(contextKey, "uin") != null + && s.getId().equals(VariableManager.getVariableValue(contextKey, "uin"))) { if (resident.getUIN() == null || resident.getUIN().equals("")) identity.put(s.getId(), JSONObject.NULL); else @@ -491,7 +365,7 @@ String generateEvidenceJsonV2(ResidentModel resident, HashMap if (resident.getGuardian().getUIN() == null || resident.getGuardian().getUIN().equals("")) { } else { identity.put(s.getId(), resident.getGuardian().getUIN()); - VariableManager.setVariableValue(contextKey, "INTRODUCER_AVAILABILITY", "true"); + VariableManager.setVariableValue(contextKey, "INTRODUCER_AVAILABILITY", "true"); } } continue; @@ -501,9 +375,9 @@ String generateEvidenceJsonV2(ResidentModel resident, HashMap if ((resident.getGuardian().getRID() == null || resident.getGuardian().getRID().equals(""))) { } else { identity.put(s.getId(), resident.getGuardian().getRID()); - VariableManager.setVariableValue(contextKey, "INTRODUCER_AVAILABILITY", "true"); - } + VariableManager.setVariableValue(contextKey, "INTRODUCER_AVAILABILITY", "true"); } + } continue; } @@ -513,9 +387,9 @@ else if (prop.getProperty("parentOrGuardianuin") != null if (resident.getGuardian().getUIN() == null || resident.getGuardian().getUIN().equals("")) { } else { identity.put(s.getId(), resident.getGuardian().getUIN()); - VariableManager.setVariableValue(contextKey, "INTRODUCER_AVAILABILITY", "true"); - } + VariableManager.setVariableValue(contextKey, "INTRODUCER_AVAILABILITY", "true"); } + } continue; } else if (prop.getProperty("parentOrGuardianrid") != null && s.getId().equals(prop.getProperty("parentOrGuardianrid"))) { @@ -524,14 +398,14 @@ else if (prop.getProperty("parentOrGuardianuin") != null || resident.getGuardian().getRID().equals(""))) { } else { identity.put(s.getId(), resident.getGuardian().getRID()); - VariableManager.setVariableValue(contextKey, "INTRODUCER_AVAILABILITY", "true"); - } + VariableManager.setVariableValue(contextKey, "INTRODUCER_AVAILABILITY", "true"); } + } continue; } else if (VariableManager.getVariableValue(contextKey, "introducerName") != null - && s.getId().equals(VariableManager.getVariableValue(contextKey, "introducerName"))) { + && s.getId().equals(VariableManager.getVariableValue(contextKey, "introducerName"))) { if (resident.isMinor() || resident.isInfant()) { String primValue = ""; @@ -723,11 +597,11 @@ Boolean generateCBEFF(ResidentModel resident, List bioAttrib, String out String strVal = VariableManager.getVariableValue(VariableManager.NS_DEFAULT, "usemds").toString(); boolean bMDS = Boolean.valueOf(strVal); - String cbeff =null; - - if(resident.getBioExceptions() == null || resident.getBioExceptions().isEmpty()) - cbeff = resident.getBiometric().getCbeff(); - + String cbeff = null; + + if (resident.getBioExceptions() == null || resident.getBioExceptions().isEmpty()) + cbeff = resident.getBiometric().getCbeff(); + if (bMDS) { if (cbeff == null) { MDSRCaptureModel capture = BiometricDataProvider.regenBiometricViaMDS(resident, contextKey, purpose, @@ -755,7 +629,7 @@ Boolean generateCBEFF(ResidentModel resident, List bioAttrib, String out if (cbeff == null) { String strCBeff = BiometricDataProvider.toCBEFF(bioAttrib, resident.getBiometric(), outFile, - genarateValidCbeff,contextKey); + genarateValidCbeff, contextKey); resident.getBiometric().setCbeff(strCBeff); } else { @@ -771,11 +645,12 @@ Boolean generateCBEFF(ResidentModel resident, List bioAttrib, String out // check the dynamic field logic and change here public static boolean processGender(MosipIDSchema s, ResidentModel resident, JSONObject identity, Hashtable> genderTypesLang, - Hashtable> dynaFields,String contextKey) { + Hashtable> dynaFields, String contextKey) { boolean processed = false; - if ((s.getSubType() != null && s.getSubType().toLowerCase().equals(VariableManager.getVariableValue(contextKey, "gender"))) + if ((s.getSubType() != null + && s.getSubType().toLowerCase().equals(VariableManager.getVariableValue(contextKey, "gender"))) || s.getId().toLowerCase().equals(VariableManager.getVariableValue(contextKey, "gender"))) { String primLang = resident.getPrimaryLanguage(); @@ -945,7 +820,8 @@ private static Boolean updateFromAdditionalAttribute(JSONObject identity, MosipI return bRet; } - public static Boolean processDynamicFields(MosipIDSchema s, JSONObject identity, ResidentModel resident,String contextKey) { + public static Boolean processDynamicFields(MosipIDSchema s, JSONObject identity, ResidentModel resident, + String contextKey) { String primaryLanguage = resident.getPrimaryLanguage(); String secLanguage = resident.getSecondaryLanguage(); @@ -955,7 +831,7 @@ public static Boolean processDynamicFields(MosipIDSchema s, JSONObject identity, if (s.getFieldType().equals("dynamic")) { - found = processGender(s, resident, identity, genderTypes, dynaFields,contextKey); + found = processGender(s, resident, identity, genderTypes, dynaFields, contextKey); if (found) return found; @@ -992,293 +868,7 @@ public static Boolean processDynamicFields(MosipIDSchema s, JSONObject identity, return found; } - String generateIDJson(ResidentModel resident, HashMap fileInfo, String contextKey, String purpose, - ContextSchemaDetail contextSchemaDetail, String qualityScore, boolean genarateValidCbeff) { - - String idjson = ""; - - JSONObject identity = new JSONObject(); - - String primaryLanguage = resident.getPrimaryLanguage(); - String secLanguage = resident.getSecondaryLanguage(); - Hashtable locations = resident.getLocation(); - Hashtable locations_seclang = resident.getLocation_seclang(); - - Set locationSet = locations.keySet(); - - Set locationSet_sec = null; - if (locations_seclang != null) - locationSet_sec = locations_seclang.keySet(); - List lstMissedAttributes = resident.getMissAttributes(); - for (MosipIDSchema s : contextSchemaDetail.getSchema()) { - RestClient.logInfo(contextKey, s.toJSONString()); - // if not reqd field , skip it - if (!CommonUtil.isExists(contextSchemaDetail.getRequiredAttribs(), s.getId())) - continue; - - if (lstMissedAttributes != null - && lstMissedAttributes.stream().anyMatch(v -> v.equalsIgnoreCase(s.getId()))) { - continue; - } - - if (s.getId().equalsIgnoreCase("idschemaVersion")) { - identity.put(s.getId(), contextSchemaDetail.getSchemaVersion()); - continue; - } - - if (s.getId().equalsIgnoreCase("uin")) { - String uin = resident.getUIN(); - if (uin != null && !uin.trim().equals("")) { - identity.put(s.getId(), uin.trim()); - } - continue; - } - if (!s.getRequired() && !s.getInputRequired()) { - continue; - } - if (!s.getRequired() && !(s.getRequiredOn() != null && s.getRequiredOn().size() > 0)) { - continue; - } - if (updateFromAdditionalAttribute(identity, s, resident, contextKey)) { - continue; - } - if (processDynamicFields(s, identity, resident,contextKey)) - continue; - - if (s.getFieldCategory().equals("pvt") || s.getFieldCategory().equals("kyc")) { - String primaryValue = ""; - String secValue = ""; - if (s.getId().toLowerCase().equals(FULLNAME)) { - primaryValue = resident.getName().getFirstName() + " " + resident.getName().getMidName() + " " - + resident.getName().getSurName(); - if (secLanguage != null) - secValue = resident.getName_seclang().getFirstName() + " " - + resident.getName_seclang().getMidName() + " " - + resident.getName_seclang().getSurName(); - } else if (s.getId().toLowerCase().equals(FIRSTNAME)) { - primaryValue = resident.getName().getFirstName(); - if (secLanguage != null) - secValue = resident.getName_seclang().getFirstName(); - } else if (s.getId().toLowerCase().equals(LASTNAME) || s.getId().toLowerCase().equals("surname")) { - primaryValue = resident.getName().getSurName(); - if (secLanguage != null) - secValue = resident.getName_seclang().getSurName(); - } else if (s.getId().toLowerCase().equals(MIDDLENAME) || s.getId().toLowerCase().equals("midname")) { - primaryValue = resident.getName().getMidName(); - if (secLanguage != null) - secValue = resident.getName_seclang().getMidName(); - } else if (s.getId().toLowerCase().equals(DATEOFBIRTH) || s.getId().toLowerCase().equals("dob") - || s.getId().toLowerCase().equals("birthdate")) { - primaryValue = resident.getDob(); - secValue = primaryValue; - } else if (s.getId().equalsIgnoreCase(GENDER)) { - primaryValue = "Female"; - if (resident.getGender() == Gender.Male) - primaryValue = "Male"; - secValue = primaryValue; - } else if (s.getId().toLowerCase().contains("address") - && (s.getGroup() != null && !s.getGroup().toLowerCase().equals(DOCUMENTS))) { - if (s.getControlType().equals(CHECKBOX)) { - primaryValue = "Y"; - if (secLanguage != null) - secValue = "Y"; - } else { - Pair addrLines = processAddresslines(s, resident, identity, contextKey); - primaryValue = addrLines.getValue0(); - secValue = addrLines.getValue1(); - } - } else if (s.getSubType().toLowerCase().contains("residenceStatus")) { - primaryValue = resident.getResidentStatus().getCode(); - secValue = primaryValue; - } else if (s.getId().toLowerCase().contains(EMAIL) || s.getId().toLowerCase().contains("mail")) { - primaryValue = resident.getContact().getEmailId(); - } - - else if (s.getId().toLowerCase().contains("blood")) { - primaryValue = resident.getBloodgroup().getCode(); - secValue = primaryValue; - } else if (s.getType().equals(BIOMETRICSTYPE) - && (s.getGroup() != null && s.getGroup().equals("Biometrics")) - && s.getId().toLowerCase().contains("individual")) { - JSONObject o = new JSONObject(); - o.put(FORMAT, CBEFF); - o.put(VERSION, 1.0f); - String[] v = fileInfo.get(RID_FOLDER); - v[1] = s.getId() + BIO_CBEFF_XML; - fileInfo.put(RID_FOLDER, v); - o.put(VALUE, s.getId() + BIO_CBEFF); - identity.put(s.getId(), o); - - String outFile = fileInfo.get(RID_FOLDER)[0] + "/" + fileInfo.get(RID_FOLDER)[1]; - try { - List missAttribs = resident.getMissAttributes(); - List bioAttrib = s.getBioAttributes(); - if (missAttribs != null && !missAttribs.isEmpty()) - bioAttrib.removeAll(missAttribs); - if (resident.getFilteredBioAttribtures() == null) - resident.setFilteredBioAttribtures(bioAttrib); - if (resident.getSkipFace()) - bioAttrib.removeAll(List.of("face")); - if (resident.getSkipIris()) - bioAttrib.removeAll(List.of("leftEye", "rightEye")); - if (resident.getSkipFinger()) { - bioAttrib.removeAll(List.of(DataProviderConstants.schemaFingerNames)); - } - generateCBEFF(resident, bioAttrib, outFile, contextKey, purpose, qualityScore, missAttribs, - genarateValidCbeff); - - } catch (Exception e) { - logger.error(e.getMessage()); - } - continue; - } else if (s.getType().equals(BIOMETRICSTYPE) - && (s.getGroup() != null && s.getGroup().equals("Biometrics")) - && s.getSubType().equals(INTRODUCER)) { - - if ((resident.isMinor() || resident.isInfant()) && resident.getGuardian() != null) { - JSONObject o = new JSONObject(); - o.put(FORMAT, CBEFF); - o.put(VERSION, 1.0f); - String[] v = fileInfo.get(RID_FOLDER); - v[2] = s.getId() + BIO_CBEFF_XML; - fileInfo.put(RID_FOLDER, v); - o.put(VALUE, s.getId() + BIO_CBEFF); - identity.put(s.getId(), o); - - String outFile = fileInfo.get(RID_FOLDER)[0] + "/" + v[2]; - try { - // Implement excetpions by parsing 'Miss' list - List missAttribs = resident.getMissAttributes(); - List bioAttrib = s.getBioAttributes(); - if (missAttribs != null && !missAttribs.isEmpty()) - bioAttrib.removeAll(missAttribs); - - generateCBEFF(resident.getGuardian(), bioAttrib, outFile, contextKey, purpose, qualityScore, - missAttribs, genarateValidCbeff); - - } catch (Exception e) { - logger.error(e.getMessage()); - } - - } - continue; - } else if (s.getType().equals(BIOMETRICSTYPE)) { - continue; - } else if (s.getType().equals(DOCUMENTTYPE)) { - - int index = 0; - for (MosipDocument doc : resident.getDocuments()) { - - if (CommonUtil.isExists(lstMissedAttributes, doc.getDocCategoryCode())) - continue; - index = 0; - if (doc.getDocCategoryCode().toLowerCase().equals(s.getSubType().toLowerCase())) { - - index = resident.getDocIndexes().get(doc.getDocCategoryCode()); - - String docFile = doc.getDocs().get(0); - RestClient.logInfo(contextKey, - DOCFILE + docFile + DTYPE + s.getSubType() + CAT + s.getId()); - - JSONObject o = new JSONObject(); - o.put(FORMAT, "pdf"); - o.put("type", doc.getType().get(0).getCode()); - String[] v = fileInfo.get(RID_FOLDER); - v[1] = s.getId() + ".pdf"; - fileInfo.put(RID_FOLDER, v); - o.put(VALUE, s.getId()); - - identity.put(s.getId(), o); - - String outFile = fileInfo.get(RID_FOLDER)[0] + "/" + fileInfo.get(RID_FOLDER)[1]; - try { - Files.copy(Paths.get(docFile), Paths.get(outFile)); - - } catch (Exception e) { - logger.error(e.getMessage()); - } - break; - } - - } - continue; - } else if (s.getSubType() != null - && (s.getSubType().equals("parentOrGuardianName") || s.getSubType().equals(INTRODUCERNAME) - || (s.getGroup() != null && (s.getGroup().toLowerCase().equals(GUARDIANDETAILS) - || s.getGroup().toLowerCase().contains(INTRODUCER))))) { // this line added by - // alok - if (resident.getGuardian() != null) { - - String primValue = null; - String secGValue = null; - if (resident.getGuardian() != null) - primValue = resident.getGuardian().getName().getFirstName(); - if (resident.getGuardian() != null && resident.getGuardian().getName_seclang() != null) - secGValue = resident.getGuardian().getName_seclang().getFirstName(); - - updateSimpleType(s.getId(), identity, primValue, secGValue, resident.getPrimaryLanguage(), - resident.getSecondaryLanguage(), resident.getThirdLanguage(), contextKey); - - } - } else if (s.getInputRequired() && s.getId().contains("IdentityNumber")) { - List validators = s.getValidators(); - if (validators != null) { - primaryValue = generateDefaultAttributes(s, resident, identity); - } else { - primaryValue = resident.getId(); - } - - identity.put(s.getId(), primaryValue); - continue; - } - for (String locKey : locationSet) { - MosipLocationModel locModel = locations.get(locKey); - - if (s.getId().toLowerCase().endsWith(locModel.getHierarchyName().toLowerCase()) - || s.getSubType().toLowerCase().endsWith(locModel.getHierarchyName().toLowerCase())) { - primaryValue = locModel.getName(); - - break; - } - } - if (locations_seclang != null) - for (String locKey : locationSet_sec) { - MosipLocationModel locModel = locations_seclang.get(locKey); - - if (s.getId().toLowerCase().endsWith(locModel.getHierarchyName().toLowerCase())) { - secValue = locModel.getName(); - break; - } - } - - if (primaryValue == null || primaryValue.equals("")) { - primaryValue = generateDefaultAttributes(s, resident, identity); - if (secLanguage != null) { - secValue = Translator.translate(secLanguage, primaryValue, contextKey); - } - } - - if (s.getType().equals(SIMPLETYPE)) { - - updateSimpleType(s.getId(), identity, primaryValue, secValue, primaryLanguage, secLanguage, - resident.getThirdLanguage(), contextKey); - - } else { - if (primaryValue.equals("")) // && !s.getType().equals("string")) - identity.put(s.getId(), JSONObject.NULL); - else - identity.put(s.getId(), primaryValue); - } - } - - } - JSONObject retObject = new JSONObject(); - retObject.put(IDENTITY, identity); - idjson = retObject.toString(); - return idjson; - } - - String generateIDJsonV2(ResidentModel resident, HashMap fileInfo, String contextKey, + String generateIDJson(ResidentModel resident, HashMap fileInfo, String contextKey, Properties prop, JSONObject preregResponse, String purpose, ContextSchemaDetail contextSchemaDetail, String qualityScore, boolean genarateValidCbeff) { @@ -1298,9 +888,6 @@ String generateIDJsonV2(ResidentModel resident, HashMap fileIn locationSet_sec = locations_seclang.keySet(); List lstMissedAttributes = resident.getMissAttributes(); -// loadMapperProp(contextKey, prop); - // load mapped property - for (MosipIDSchema s : contextSchemaDetail.getSchema()) { RestClient.logInfo(contextKey, s.toJSONString()); // if not reqd field , skip it @@ -1312,7 +899,8 @@ String generateIDJsonV2(ResidentModel resident, HashMap fileIn continue; } - if (VariableManager.getVariableValue(contextKey, "uin") != null && s.getId().equals(VariableManager.getVariableValue(contextKey, "uin"))) { + if (VariableManager.getVariableValue(contextKey, "uin") != null + && s.getId().equals(VariableManager.getVariableValue(contextKey, "uin"))) { String uin = resident.getUIN(); if (uin != null && !uin.trim().equals("")) { identity.put(s.getId(), uin.trim()); @@ -1323,12 +911,12 @@ String generateIDJsonV2(ResidentModel resident, HashMap fileIn continue; } - // DEV2 if (!s.getRequired() && !(s.getRequiredOn() != null && s.getRequiredOn().size() > 0)) { continue; } - if (VariableManager.getVariableValue(contextKey, "IDSchemaVersion") != null && s.getId().equals(VariableManager.getVariableValue(contextKey, "IDSchemaVersion") )) { + if (VariableManager.getVariableValue(contextKey, "IDSchemaVersion") != null + && s.getId().equals(VariableManager.getVariableValue(contextKey, "IDSchemaVersion"))) { identity.put(s.getId(), contextSchemaDetail.getSchemaVersion()); continue; } @@ -1336,13 +924,14 @@ String generateIDJsonV2(ResidentModel resident, HashMap fileIn if (updateFromAdditionalAttribute(identity, s, resident, contextKey)) { continue; } - if (processDynamicFields(s, identity, resident,contextKey)) + if (processDynamicFields(s, identity, resident, contextKey)) continue; if (s.getFieldCategory().equals("pvt") || s.getFieldCategory().equals("kyc")) { String primaryValue = ""; String secValue = ""; - if (VariableManager.getVariableValue(contextKey, "name")!= null && VariableManager.getVariableValue(contextKey, "name").toString().contains(s.getId())) { + if (VariableManager.getVariableValue(contextKey, "name") != null + && VariableManager.getVariableValue(contextKey, "name").toString().contains(s.getId())) { primaryValue = resident.getName().getFirstName() + " " + resident.getName().getMidName() + " " + resident.getName().getSurName(); if (secLanguage != null) @@ -1361,7 +950,8 @@ String generateIDJsonV2(ResidentModel resident, HashMap fileIn primaryValue = resident.getName().getMidName(); if (secLanguage != null) secValue = resident.getName_seclang().getMidName(); - } else if (VariableManager.getVariableValue(contextKey, "dob") != null && s.getId().equals(VariableManager.getVariableValue(contextKey, "dob") )) { + } else if (VariableManager.getVariableValue(contextKey, "dob") != null + && s.getId().equals(VariableManager.getVariableValue(contextKey, "dob"))) { primaryValue = resident.getDob(); secValue = primaryValue; } else if (prop.getProperty("addressgroup") != null @@ -1375,12 +965,12 @@ String generateIDJsonV2(ResidentModel resident, HashMap fileIn primaryValue = addrLines.getValue0(); secValue = addrLines.getValue1(); } - } - else if (s.getSubType().toLowerCase().contains("residenceStatus")) { + } else if (s.getSubType().toLowerCase().contains("residenceStatus")) { primaryValue = resident.getResidentStatus().getCode(); VariableManager.setVariableValue(contextKey, "ID_OBJECT-residenceStatus", primaryValue); secValue = primaryValue; - } else if (VariableManager.getVariableValue(contextKey, "emailId") != null && s.getId().equals(VariableManager.getVariableValue(contextKey, "emailId"))) { + } else if (VariableManager.getVariableValue(contextKey, "emailId") != null + && s.getId().equals(VariableManager.getVariableValue(contextKey, "emailId"))) { primaryValue = resident.getContact().getEmailId(); } @@ -1424,7 +1014,7 @@ else if (s.getId().toLowerCase().contains("blood")) { missAttribs, genarateValidCbeff); if (bret == false) - return ""; + return "Failed to generate biometric via mds"; if (prop.containsKey("mosip.test.regclient.officerBiometricFileName")) { RestClient.logInfo(contextKey, preregResponse.toString()); @@ -1456,7 +1046,7 @@ else if (s.getId().toLowerCase().contains("blood")) { } continue; } else if ((VariableManager.getVariableValue(contextKey, "introducerBiometrics") != null - && s.getId().equals(VariableManager.getVariableValue(contextKey, "introducerBiometrics")))) + && s.getId().equals(VariableManager.getVariableValue(contextKey, "introducerBiometrics")))) { if ((resident.isMinor() || resident.isInfant()) && resident.getGuardian() != null) {