Skip to content

Commit

Permalink
Merge pull request #147 from anup-nehe/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
aranaravi authored Aug 1, 2023
2 parents 2275831 + 71e9e1e commit b828c37
Show file tree
Hide file tree
Showing 76 changed files with 6,382 additions and 2,258 deletions.
40 changes: 19 additions & 21 deletions pmptest/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Admin Automation
# PMP Automation

## Overview
Selenium webdriver based Admin Portal Automation covers CRUD(create, read, update and delete) operation performed via UI with Chrome driver
Expand All @@ -11,35 +11,33 @@ Selenium webdriver based Admin Portal Automation covers CRUD(create, read, updat
## Configurations
1. Update below keys from `Config.properties`
* langcode:eng -- Admin login page language selection description placed in `TestData.json`
* bulkwait:10000 -- Bulk upload wait


2. Update below keys from `TestData.json`
* setExcludedGroups:"" -- To run all the scenario mentioned below
* setExcludedGroups:"BL,CT" -- To exclude testcases execution based on below tags

* To run in hardless mode "hedless":"yes"
* To run it in regular "hedless": "no"
3. Chrome driver place under working directory inside folder name chromedriver

## Below tags with scenarios
* blocklistedwordsCRUD: BL
* bulkUploadCRUD: BU
* centerCRUD: CTR
* centerTypeCRUD: CT
* deviceSpecCRUD: DS
* deviceCRUD: D
* deviceTypesCRUD: DT
* documentCategoriesCRUD: DOC
* documentTypesCRUD: DOCT
* dynamicFieldCRUD: DF
* holidaysCRUD: H
* machineSpecCRUD: MS
* machineCRUD: M
* machineTypesCRUD: MT
* templateCRUD: T

*
"1AdminAuthPolicyTest.class": "groups = AP, dependsOnGroups = PG ,
"2AdminDataSharePolicyTest.class":"groups = DSP, dependsOnGroups = AP,
"3AdminDeviceDetailsTest.class":"groups = DD, dependsOnGroups = SD,AP
"4AdminFtmDetailsTest.class":"groups = FD, dependsOnGroups = RFTM ",
"5AdminPartnerPolicyMappingTest.class":"groups = PPM, dependsOnGroups = RAC ",
"6AdminPolicyGroupTest.class":"groups = PG, dependsOnGroups = UFCC ",
"7AdminSbiDetailsTest.class":"groups = SD, dependsOnGroups = RSD ",
"8AdminUploadCaCertTest.class":"groups = UFCC, dependsOnGroups = ",
"9PartnerLoginAuthCredTest.class":"groups = PLAC, dependsOnGroups = PPM ",
"10PartnerRegisterAuthCredTest.class":"groups = RAC, dependsOnGroups = UFCC,DSP ",
"11PartnerRegisterFTMTest.class":"groups = RFTM, dependsOnGroups = UFCC ",
"12PartnerRegisterSbiDeviceTest.class":"groups = RSD, dependsOnGroups = UFCC,DSP ",
## Execution result and logs
1. Verify the failure in the logs file `\logs\AutomationLogs.log`
1. Execution results present under test-output folder file `emailable-report.html`

2. Execution results present under test-output folder file `emailable-report.html`
3. for extent reports find it in `partner-management-portal\pmptest\Reports`
## License
This project is licensed under the terms of [Mozilla Public License 2.0](../LICENSE).

1,143 changes: 1,143 additions & 0 deletions pmptest/Reports/pmp0622175900.html

Large diffs are not rendered by default.

Binary file added pmptest/Screenshots/1686766974064.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 32 additions & 23 deletions pmptest/TestData.json
Original file line number Diff line number Diff line change
@@ -1,57 +1,66 @@
{
"identity": {
"BELOW_ARE_KEYWORDS_FOR_HELP": "Below Keys use to put in setExcludedGroups to exclude scenarios eg BL for blocklistedwordsCRUD to ignore this execution",
"ALL": "AP,DP,SD,DD,FD,PG,PPM",
"1blocklistedwordsCRUD": "BL",
"2bulkUploadCRUD": "BU",
"3centerCRUD": "CTR",
"4centerTypeCRUD": "CT",
"5deviceSpecCRUD": "DS",
"6deviceCRUD": "D",
"7deviceTypesCRUD": "DT",
"8documentCategoriesCRUD": "DOC",
"9documentTypesCRUD": "DOCT",
"10dynamicFieldCRUD": "DF",
"11holidaysCRUD": "H",
"12machineSpecCRUD": "MS",
"13machineCRUD": "M",
"14machineTypesCRUD": "MT",
"15templateCRUD": "T",
"ALL": "AP,DSP,DD,FD,PPM,PG,SD,UFCC,PLAC,RAC,RFTM,RSD,API",
"1AdminAuthPolicyTest.class": "groups = AP, dependsOnGroups = PG , Parameters = DSP,DD,FD,PPM,SD,PLAC,RAC,RFTM,RSD",
"2AdminDataSharePolicyTest.class":"groups = DSP, dependsOnGroups = AP, Parameters= DD,FD,PPM,SD,PLAC,RAC,RFTM,RSD",
"3AdminDeviceDetailsTest.class":"groups = DD, dependsOnGroups = SD,AP Parameters= FD,PPM,PLAC,RAC,RFTM ",
"4AdminFtmDetailsTest.class":"groups = FD, dependsOnGroups = RFTM ",
"5AdminPartnerPolicyMappingTest.class":"groups = PPM, dependsOnGroups = RAC ",
"6AdminPolicyGroupTest.class":"groups = PG, dependsOnGroups = UFCC ",
"7AdminSbiDetailsTest.class":"groups = SD, dependsOnGroups = RSD ",
"8AdminUploadCaCertTest.class":"groups = UFCC, dependsOnGroups = ",
"9PartnerLoginAuthCredTest.class":"groups = PLAC, dependsOnGroups = PPM ",
"10PartnerRegisterAuthCredTest.class":"groups = RAC, dependsOnGroups = UFCC,DSP ",
"11PartnerRegisterFTMTest.class":"groups = RFTM, dependsOnGroups = UFCC ",
"12PartnerRegisterSbiDeviceTest.class":"groups = RSD, dependsOnGroups = UFCC,DSP ",

"Kill Chrome exe": "taskkill /F /IM chrome.exe",
"Kill driver exe":"taskkill /F /IM chromedriver.exe",


"BELOW_ARE_STATIC_KEYWORDS": "We are using this setExcludedGroups to exclude scenarios",
"setExcludedGroups": "AP,SD,DD,FD,PPM,PG",
"setExcludedGroups": "",
"holidayDateCenter": "27/12/2022",
"holidayDate": "12/27/2022",
"loginlang": "eng",
"jsonObjName": "identity",
"bulkwait": "10000",
"sbivalidDate":"12/27/2022",
"sbiexpiryDate":"12/27/2024",
"policyData": "{\"authTokenType\":\"policy\",\"allowedKycAttributes\":[{\"attributeName\":\"fullName\"},{\"attributeName\":\"gender\"},{\"attributeName\":\"residenceStatus\"},{\"attributeName\":\"dateOfBirth\"},{\"attributeName\":\"photo\"},{\"attributeName\":\"civilRegistryNumber\"},{\"attributeName\":\"birthCertificateNumber\"},{\"attributeName\":\"flagidcs\"},{\"attributeName\":\"listCountry\"},{\"attributeName\":\"placeOfBirth\"},{\"attributeName\":\"flagb\"},{\"attributeName\":\"passportNumber\"},{\"attributeName\":\"referenceResidencyNumber\"},{\"attributeName\":\"resOuPass\"}],\"allowedAuthTypes\":[{\"authSubType\":\"IRIS\",\"authType\":\"bio\",\"mandatory\":false},{\"authSubType\":\"FINGER\",\"authType\":\"bio\",\"mandatory\":false},{\"authSubType\":\"\",\"authType\":\"otp\",\"mandatory\":false},{\"authSubType\":\"FACE\",\"authType\":\"bio\",\"mandatory\":false},{\"authSubType\":\"\",\"authType\":\"otp-request\",\"mandatory\":false},{\"authSubType\":\"\",\"authType\":\"kyc\",\"mandatory\":false},{\"authSubType\":\"\",\"authType\":\"demo\",\"mandatory\":false}]}",
"dataSharepolicyData":"{\"shareableAttributes\":[{\"attributeName\":\"biometrics\",\"source\":[{\"attribute\":\"registration-client\\/NEW\\/individualBiometrics\",\"filter\":[{\"type\":\"Iris\"}]},{\"attribute\":\"CNIE\\/verification\\/biometrics\",\"filter\":[{\"type\":\"Finger\"}]},{\"attribute\":\"CNIE\\/verification\\/biometrics\",\"filter\":[{\"type\":\"Face\"}]}],\"encrypted\":true,\"format\":\"extraction\"}],\"dataSharePolicies\":{\"typeOfShare\":\"DataShare\",\"validForInMinutes\":\"30\",\"transactionsAllowed\":\"2\",\"encryptionType\":\"PartnerBased\",\"shareDomain\":\"datashare-service\",\"source\":\"PacketManager\"}}",
"dataSharepolicyData":"{\"shareableAttributes\":[{\"attributeName\":\"fullName\",\"source\":[{\"attribute\":\"fullName\"}],\"encrypted\":true},{\"attributeName\":\"dateOfBirth\",\"source\":[{\"attribute\":\"dateOfBirth\"}],\"encrypted\":true},{\"attributeName\":\"gender\",\"source\":[{\"attribute\":\"gender\"}],\"encrypted\":true},{\"attributeName\":\"residenceStatus\",\"source\":[{\"attribute\":\"residenceStatus\"}],\"encrypted\":true},{\"attributeName\":\"phone\",\"source\":[{\"attribute\":\"phone\"}],\"encrypted\":true},{\"attributeName\":\"email\",\"source\":[{\"attribute\":\"email\"}],\"encrypted\":true},{\"attributeName\":\"dualCitizenshipAvailability\",\"source\":[{\"attribute\":\"dualCitizenshipAvailability\"}],\"encrypted\":true},{\"attributeName\":\"fatherName\",\"source\":[{\"attribute\":\"fatherName\"}],\"encrypted\":true},{\"attributeName\":\"shortenedPrintedName\",\"source\":[{\"attribute\":\"shortenedPrintedName\"}],\"encrypted\":true},{\"attributeName\":\"layName\",\"source\":[{\"attribute\":\"layName\"}],\"encrypted\":true},{\"attributeName\":\"nationalIdentityNumber\",\"source\":[{\"attribute\":\"nationalIdentityNumber\"}],\"encrypted\":true},{\"attributeName\":\"permanentAddress\",\"source\":[{\"attribute\":\"permanentAddress\"}],\"encrypted\":true},{\"attributeName\":\"temporaryAddress\",\"source\":[{\"attribute\":\"temporaryAddress\"}],\"encrypted\":true},{\"attributeName\":\"addressLine1\",\"source\":[{\"attribute\":\"addressLine1\"}],\"encrypted\":true},{\"attributeName\":\"addressLine2\",\"source\":[{\"attribute\":\"addressLine2\"}],\"encrypted\":true},{\"attributeName\":\"addressLine3\",\"source\":[{\"attribute\":\"addressLine3\"}],\"encrypted\":true},{\"attributeName\":\"region\",\"source\":[{\"attribute\":\"region\"}],\"encrypted\":true},{\"attributeName\":\"province\",\"source\":[{\"attribute\":\"province\"}],\"encrypted\":true},{\"attributeName\":\"profession\",\"source\":[{\"attribute\":\"profession\"}],\"encrypted\":true},{\"attributeName\":\"city\",\"source\":[{\"attribute\":\"city\"}],\"encrypted\":true},{\"attributeName\":\"postalCode\",\"source\":[{\"attribute\":\"postalCode\"}],\"encrypted\":true},{\"attributeName\":\"zone\",\"source\":[{\"attribute\":\"zone\"}],\"encrypted\":true},{\"attributeName\":\"preferredLang\",\"source\":[{\"attribute\":\"preferredLang\"}],\"encrypted\":false},{\"attributeName\":\"individualBiometrics\",\"group\":\"CBEFF\",\"source\":[{\"attribute\":\"individualBiometrics\"}],\"encrypted\":true,\"format\":\"extraction\"}],\"dataSharePolicies\":{\"typeOfShare\":\"Data Share\",\"validForInMinutes\":\"30\",\"transactionsAllowed\":\"2\",\"encryptionType\":\"Partner Based\",\"shareDomain\":\"datashare.datashare\",\"source\":\"IDRepository\"}}",
"publicKey": "ZAEACwACAHIAIINxl2dEhLP4GpDMjUal1yT9UtduBlILZPKh2hszFGmqABAAFwALCAAAAQABAQDCHegKJ3vRn__8h1knXKiLA8qfO5LebzBlRO2tAcI3HvLyL9rPkVrXWYQ6wAn4VQk015C1hViU-7k752dYE5WUAUbgsxOHvvDPH1t72CNHNj9dyE86wGqR9AtK3yz0yf1IP_xgtWpiaQ2V9t2d3LtgPYWnRuPJbcl97nLXXL6PGfh1mRwsQUi94coEBPMZ9YLLOAFckPuDZt-lEcXIMkj8r0uNwAZUSEvGifTNWbLjC5BRlJBmvScIlptXqIwBaq2kSMVK2X1KbQ6TM8zkA_co4LEAIZfcpMgPn6RdW0yFtcx24HqrCY8v0DHregwoCPPpw8HvB-r5aR09mXG64zsJ",
"signPublicKey": "AAZABAAEAHIAAAAQABQACwgAAAEAAQEAr93rKokeZGIzcCtFX3iyCvwpmfnd9jz0nF__0bxWr0mH8Zs0rhlG6vKRagx31I4CdrLAECOwMZ0r7Y3utTqHqelQE3MJLtboKITOqYRpBkqHSm1jGaEb8a1E9yoJri3tZrBCrAShimrN_SbtS1uKbJUG3cuVuE0gtGLI1d5wMfS_4PSz3RwvZtGHisEb3zbV6SLcJkgcDeMbUD7P25SVJd1xrJybuGIgyeSZxOgLzy1P-qHCiOXiAO9o06fwyIhIYbeZYz5th4rq7Rb6mRK9EWFpLrLvBL0F6USiidl8qNCxxZZFUp3W5xFANVYfRvgLKI33zBYniZ7aTE8PgrYa2w",
"headless": "yes",
"langcode": [
{
"language": "tam",
"value": "தமிழ்"
"value": "தமிழ�"
},
{
"language": "kan",
"value": "ಕನ್ನಡ"
"value": "ಕನ�ನಡ"
},
{
"language": "hin",
"value": "hin"
},
{
"language": "eng1",
"value": "English"
},
{
"language": "eng",
"value": "eng"
"value": "English"
},
{
"language": "fra",
"value": "Français"
"value": "Français"
},
{
"language": "ara",
"value": "ara"
"value": "Arabic"
}
]
}
Expand Down
Loading

0 comments on commit b828c37

Please sign in to comment.