Skip to content

Commit

Permalink
MOSIP-38404
Browse files Browse the repository at this point in the history
Signed-off-by: Jayesh Kharode <[email protected]>
  • Loading branch information
Jayesh Kharode committed Dec 17, 2024
1 parent 5519191 commit 3ca765c
Showing 1 changed file with 254 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19875,6 +19875,260 @@
"Action": "$$uin2=e2e_getUINByRid($$rid2)"
}
},
{
"Scenario": "178",
"Tag": "Postive_Test",
"Persona": "ResidentFemaleAdult",
"Group": "Adult_New",
"Description": "Generate UIN1 by creating RID1 in Profile1 then update UIN1 with Profile1 by capturing all biometrics",
"Step-0": {
"Description": "Performs health check of given component",
"Input Parameters": "Keyword to check, only packetcreator is supported",
"Return Value": "NA",
"Action": "e2e_getPingHealth(packetcreator)"
},
"Step-1": {
"Description": "Reads the pre-requisite data at the given index",
"Input Parameters": "Details can be found in in-line comments on the parameters",
"Return Value": "pre-requiste details",
"Action": "$$details1=e2e_ReadPreReq(1/*PRE_REQUISITE_DATA_INDEX*/)"
},
"Step-2": {
"Description": "Sets the context for scenario execution",
"Input Parameters": "Enviornment and user details. Other prarameters details can be found in-line",
"Return Value": "NA",
"Action": "e2e_setContext(env_context,$$details1,false/*GENERATE_PRIVATE_KEY*/)"
},
"Step-3": {
"Description": "Performs health check of required server components to run end-to-end scenarios",
"Input Parameters": "NA",
"Return Value": "NA",
"Action": "e2e_getPingHealth(targetenv)"
},
"Step-4": {
"Description": "Generates persona data",
"Input Parameters": "Details are in parameter in-line comments",
"Return Value": "Persona file path",
"Action": "$$personaFilePath=e2e_getResidentData(adult/*PERSONA_TYPE*/,false,Female)"
},
"Step-5": {
"Description": "Generates packet template based on the persona data",
"Input Parameters": "Process and persona file path",
"Return Value": "Generated Template file path",
"Action": "$$templatePath=e2e_getPacketTemplate(NEW/*PACKET_TYPE*/,$$personaFilePath)"
},
"Step-6": {
"Description": "Genertes and uploads packet with given persona and packet template skipping pre-registration step",
"Input Parameters": "Persona file path and template file path",
"Return Value": "RID",
"Action": "$$rid1=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)"
},
"Step-7": {
"Description": "Checkes the RID status against given packet processing status",
"Input Parameters": "Packet processing status and RID",
"Return Value": "NA",
"Action": "e2e_checkStatus(PROCESSED/*PACKET_STATUS*/,$$rid1)"
},
"Step-8": {
"Description": "Gets the UIN for the given RID",
"Input Parameters": "RID",
"Return Value": "UIN",
"Action": "$$uin1=e2e_getUINByRid($$rid1)"
},
"Step-9": {
"Description": "Generates the hash for the given modalities",
"Input Parameters": "Modalitie and persona file path. Other details can be found in the parameter in-line comments",
"Return Value": "Hash value",
"Action": "$$modalityHashValue=e2e_getBioModalityHash(-1/*CHECK_PERSONA_PRESENCE*/,Right IndexFinger@@Left LittleFinger,$$personaFilePath)"
},
"Step-10": {
"Description": "Sets expectatation on mock ABIS",
"Input Parameters": "Modalities hash value. Other details can be found in the parameter in-line comments",
"Return Value": "NA",
"Action": "e2e_configureMockAbis(-1/*CHECK_PERSONA_PRESENCE*/,Right IndexFinger,false/*DUPLICATE_FLAG*/,Right IndexFinger,$$personaFilePath,$$modalityHashValue,-1/*DEFAULT_MOCK_DELAY*/,@@Duplicate/*STATUS_CODE*/)"
},
"Step-11": {
"Description": "Updates Demo graphic details and biometric in the persona file",
"Input Parameters": "Data to update and persona file path. Other details can be found in the parameter in-line comments",
"Return Value": "NA",
"Action": "e2e_updateDemoOrBioDetails(face@@finger@@iris/*BIO_TYPE*/,0,0/*UPDATE_ATTRIBUTES*/,$$personaFilePath/*PERSONA_TO_UPDATE*/)"
},
"Step-12": {
"Description": "Updates persona with UIN",
"Input Parameters": "Persona file path and UIN",
"Return Value": "NA",
"Action": "e2e_updateResidentWithUIN($$personaFilePath,$$uin1)"
},
"Step-13": {
"Description": "Generates packet template based on the persona data",
"Input Parameters": "Process and persona file path",
"Return Value": "Generated Template file path",
"Action": "$$updateTemplate=e2e_getPacketTemplate(UPDATE/*PACKET_TYPE*/,$$personaFilePath)"
},
"Step-14": {
"Description": "Genertes and uploads packet with given persona and packet template skipping pre-registration step",
"Input Parameters": "Persona file path and template file path",
"Return Value": "RID",
"Action": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$updateTemplate)"
},
"Step-15": {
"Description": "Checks the RID status against given packet processing status",
"Input Parameters": "Packet processing status and RID",
"Return Value": "NA",
"Action": "e2e_checkStatus(Failed/*PACKET_STATUS*/,$$rid2)"
}
},
{
"Scenario": "179",
"Tag": "Postive_Test",
"Persona": "ResidentFemaleAdult",
"Group": "Adult_New",
"Description": "ResidentA get uin and ResidentB marking FPs and Iris as exception got their UINs and ResidentA is trying to update ResidentB with his biometric",
"Step-0": {
"Description": "Performs health check of given component",
"Input Parameters": "Keyword to check, only packetcreator is supported",
"Return Value": "NA",
"Action": "e2e_getPingHealth(packetcreator)"
},
"Step-1": {
"Description": "Reads the pre-requisite data at the given index",
"Input Parameters": "Details can be found in in-line comments on the parameters",
"Return Value": "pre-requiste details",
"Action": "$$details1=e2e_ReadPreReq(1/*PRE_REQUISITE_DATA_INDEX*/)"
},
"Step-2": {
"Description": "Sets the context for scenario execution",
"Input Parameters": "Enviornment and user details. Other prarameters details can be found in-line",
"Return Value": "NA",
"Action": "e2e_setContext(env_context,$$details1,false/*GENERATE_PRIVATE_KEY*/)"
},
"Step-3": {
"Description": "Performs health check of required server components to run end-to-end scenarios",
"Input Parameters": "NA",
"Return Value": "NA",
"Action": "e2e_getPingHealth(targetenv)"
},
"Step-4": {
"Description": "Generates persona data",
"Input Parameters": "Details are in parameter in-line comments",
"Return Value": "Persona file path",
"Action": "$$personaFilePath1=e2e_getResidentData(adult/*PERSONA_TYPE*/,false,Female)"
},
"Step-5": {
"Description": "Generates packet template based on the persona data",
"Input Parameters": "Process and persona file path",
"Return Value": "Generated Template file path",
"Action": "$$templatePath1=e2e_getPacketTemplate(NEW/*PACKET_TYPE*/,$$personaFilePath1)"
},
"Step-6": {
"Description": "Genertes and uploads packet with given persona and packet template skipping pre-registration step",
"Input Parameters": "Persona file path and template file path",
"Return Value": "RID",
"Action": "$$rid1=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath1,$$templatePath1)"
},
"Step-7": {
"Description": "Checkes the RID status against given packet processing status",
"Input Parameters": "Packet processing status and RID",
"Return Value": "NA",
"Action": "e2e_checkStatus(PROCESSED/*PACKET_STATUS*/,$$rid1)"
},
"Step-8": {
"Description": "Gets the UIN for the given RID",
"Input Parameters": "RID",
"Return Value": "UIN",
"Action": "$$uin1=e2e_getUINByRid($$rid1)"
},
"Step-9": {
"Description": "Sets the context for scenario execution",
"Input Parameters": "Enviornment and user details. Other details can be found in the parameter in-line comments",
"Return Value": "NA",
"Action": "e2e_setContext(env_context,$$details1,false/*GENERATE_PRIVATE_KEY*/,null/*PUT_SCENARIO_DETAILS_IN_CONTEXT*/@@99/*SWITCH_DEMOGRAPHIC_DATA*/)"
},
"Step-10": {
"Description": "Generates persona data",
"Input Parameters": "Details are in parameter in-line comments",
"Return Value": "Persona file path",
"Action": "$$personaFilePath2=e2e_getResidentData(adult/*PERSONA_TYPE*/,false,Female)"
},
"Step-11": {
"Description": "Updates persona with Biometric exception",
"Input Parameters": "Persona and exception modalities details.",
"Return Value": "NA",
"Action": "e2e_UpdateBioExceptionInPersona($$personaFilePath2,Finger:Left IndexFinger@@Finger:Right IndexFinger@@Iris:Left)"
},
"Step-12": {
"Description": "Generates packet template based on the persona data",
"Input Parameters": "Process and persona file path",
"Return Value": "Generated Template file path",
"Action": "$$templatePath2=e2e_getPacketTemplate(NEW/*PACKET_TYPE*/,$$personaFilePath2)"
},
"Step-13": {
"Description": "Genertes and uploads packet with given persona and packet template skipping pre-registration step",
"Input Parameters": "Persona file path and template file path",
"Return Value": "RID",
"Action": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath2,$$templatePath2)"
},
"Step-14": {
"Description": "Checkes the RID status against given packet processing status",
"Input Parameters": "Packet processing status and RID",
"Return Value": "NA",
"Action": "e2e_checkStatus(PROCESSED/*PACKET_STATUS*/,$$rid2)"
},
"Step-15": {
"Description": "Gets the UIN for the given RID",
"Input Parameters": "RID",
"Return Value": "UIN",
"Action": "$$uin2=e2e_getUINByRid($$rid2)"
},
"Step-16": {
"Description": "Generates the hash for the given modalities",
"Input Parameters": "Modalitie and persona file path. Other details can be found in the parameter in-line comments",
"Return Value": "Hash value",
"Action": "$$modalityHashValue=e2e_getBioModalityHash(-1/*CHECK_PERSONA_PRESENCE*/,Left@@Right,$$personaFilePath2)"
},
"Step-17": {
"Description": "Sets expectatation on mock ABIS",
"Input Parameters": "Modalities hash value. Other details can be found in the parameter in-line comments",
"Return Value": "NA",
"Action": "e2e_configureMockAbis(-1/*CHECK_PERSONA_PRESENCE*/,Left@@Right,true/*DUPLICATE_FLAG*/,Right IndexFinger,$$personaFilePath2,$$modalityHashValue,-1/*DEFAULT_MOCK_DELAY*/,@@Duplicate/*STATUS_CODE*/)"
},
"Step-18": {
"Description": "Updates Demo graphic details and biometric in the persona file",
"Input Parameters": "Data to update and persona file path. Other details can be found in the parameter in-line comments",
"Return Value": "NA",
"Action": "e2e_updateDemoOrBioDetails(iris/*BIO_TYPE*/,0,0/*UPDATE_ATTRIBUTES*/,$$personaFilePath1/*PERSONA_TO_UPDATE*/,$$personaFilePath2/*PERSONA_TO_UPDATE_WITH*/)"
},
"Step-19": {
"Description": "Updates persona with UIN",
"Input Parameters": "Persona file path and UIN",
"Return Value": "NA",
"Action": "e2e_updateResidentWithUIN($$personaFilePath1,$$uin2)"
},
"Step-20": {
"Description": "Generates packet template based on the persona data",
"Input Parameters": "Process and persona file path",
"Return Value": "Generated Template file path",
"Action": "$$updateTemplate=e2e_getPacketTemplate(UPDATE/*PACKET_TYPE*/,$$personaFilePath1)"
},
"Step-21": {
"Description": "Genertes and uploads packet with given persona and packet template skipping pre-registration step",
"Input Parameters": "Persona file path and template file path",
"Return Value": "RID",
"Action": "$$rid3=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath1,$$updateTemplate)"
},
"Step-22": {
"Description": "Checks the RID status against given packet processing status",
"Input Parameters": "Packet processing status and RID",
"Return Value": "NA",
"Action": "e2e_checkStatus(PROCESSED/*PACKET_STATUS*/,$$rid3)"
},
"Step-23": {
"Description": "Gets the UIN for the given RID",
"Input Parameters": "RID",
"Return Value": "UIN",
"Action": "$$uin3=e2e_getUINByRid($$rid3)"
}
},
{
"Scenario": "AFTER_SUITE",
"Tag": "Postive_Test",
Expand Down

0 comments on commit 3ca765c

Please sign in to comment.