Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
a0bfe00
MOSIP-42652: ARC UI automation
damodarguru Nov 14, 2025
08a28ea
MOSIP-42652: ARC UI automation
damodarguru Nov 14, 2025
721b9fc
MOSIP-42652: ARC UI automation
damodarguru Nov 14, 2025
3a12146
MOSIP-42652: ARC UI automation
damodarguru Nov 14, 2025
59b0551
MOSIP-42652: ARC UI automation
damodarguru Nov 14, 2025
13a5216
MOSIP-42652: ARC UI automation
damodarguru Nov 16, 2025
d491e34
MOSIP-42652: ARC UI automation
damodarguru Nov 16, 2025
0ab2c46
MOSIP-42652: ARC UI automation
damodarguru Nov 16, 2025
e8fc791
MOSIP-42652: ARC UI automation
damodarguru Nov 17, 2025
33c2c6d
MOSIP-42652: ARC UI automation
damodarguru Nov 17, 2025
59533f0
MOSIP-42652: ARC UI automation
damodarguru Nov 17, 2025
226ead9
MOSIP-43667:ARC UI automation add testcases and move to develop branch
damodarguru Dec 1, 2025
16859d2
MOSIP-43667:ARC UI automation add testcases and move to develop branch
damodarguru Dec 1, 2025
6f6439c
MOSIP-43667:ARC UI automation add testcases and move to develop branch
damodarguru Dec 1, 2025
62556f7
MOSIP-43667:ARC UI automation add testcases and move to develop branch
damodarguru Dec 2, 2025
b1e9686
MOSIP-43667:ARC UI automation add testcases and move to develop branch
damodarguru Dec 3, 2025
ffba7b1
MOSIP-43667:ARC UI automation add testcases and move to develop branch
damodarguru Dec 3, 2025
9448a75
MOSIP-43667:ARC UI automation add testcases and move to develop branch
damodarguru Dec 4, 2025
c23865d
MOSIP-43667:ARC UI automation add testcases and move to develop branch
damodarguru Dec 10, 2025
1724c69
MOSIP-43667:ARC UI automation add testcases and move to develop branch
damodarguru Dec 10, 2025
6ca07a5
MOSIP-43667:ARC UI automation add testcases and move to develop branch
damodarguru Dec 10, 2025
a6a0116
MOSIP-43667:ARC UI automation add testcases and move to develop branch
damodarguru Dec 19, 2025
ceb9e9e
MOSIP-43667:ARC UI automation add testcases and move to develop branch
damodarguru Dec 19, 2025
e84a07b
MOSIP-43667:ARC UI automation add testcases and move to develop branch
damodarguru Dec 19, 2025
93665c5
MOSIP-44176:ARC - Run the ARC UI automation in Arab language
damodarguru Jan 21, 2026
c559239
MOSIP-44176:ARC - Run the ARC UI automation in Arab language
damodarguru Jan 21, 2026
b12ffc9
Merge branch 'mosip:develop' into develop
damodarguru Jan 21, 2026
748c6dd
Merge branch 'develop' of https://github.com/damodarguru/android-regi…
damodarguru Jan 21, 2026
56542a7
MOSIP-44311:Fix and optimize ARC UI automation failures
damodarguru Jan 22, 2026
ce7ba60
MOSIP-44311:Fix and optimize ARC UI automation failures
damodarguru Jan 23, 2026
7e60e54
MOSIP-44311:Fix and optimize ARC UI automation failures
damodarguru Jan 23, 2026
1b5da3e
MOSIP-44311:Fix and optimize ARC UI automation failures
damodarguru Jan 23, 2026
d1ae633
MOSIP-44311:Fix and optimize ARC UI automation failures
damodarguru Jan 23, 2026
6162928
MOSIP-44176:ARC - Run the ARC UI automation in Arab language
damodarguru Feb 9, 2026
815e0f3
MOSIP-44176:ARC - Run the ARC UI automation in Arab language
damodarguru Feb 9, 2026
5242d5e
MOSIP-44176:ARC - Run the ARC UI automation in Arab language
damodarguru Feb 9, 2026
c0bddbd
MOSIP-44176:ARC - Run the ARC UI automation in Arab language
damodarguru Feb 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -436,14 +436,15 @@ public void adultBiometricCorrection() throws InterruptedException {
}

assertTrue(previewPage.isNewRegistrationTitleDisplayed(), "Verify if new Registration title is displayed");
// assertTrue(previewPage.isApplicationIDPreviewPagePageDisplayed(),
// "Verify if application ID In PreviewPage is displayed");
assertTrue(previewPage.isApplicationIDPreviewPagePageDisplayed(),
"Verify if application ID In PreviewPage is displayed");

assertTrue(previewPage.isDemographicInformationInPreviewPageDisplayed(),
"Verify if Demographic Information In PreviewPage is displayed");
assertTrue(previewPage.isDocumentsInformationInPreviewPageDisplayed(),
"Verify if Documents Information In PreviewPage is displayed");
// assertTrue(previewPage.isBiometricsInformationInPreviewPagePageDisplayed(),"Verify if Biometrics Information In PreviewPage is displayed");
assertTrue(previewPage.isBiometricsInformationInPreviewPagePageDisplayed(),
"Verify if Biometrics Information In PreviewPage is displayed");
String Aid = previewPage.getAID();
previewPage.clickOnContinueButton();
if ("eng".equalsIgnoreCase(language)) {
Expand Down Expand Up @@ -595,33 +596,10 @@ public void adultBiometricCorrection() throws InterruptedException {

// Return to mocksbi page
mockSBIPage.switchToMockSBI();
mockSBIPage.clickOnMockSbiSettingsButton();
mockSBIPage.setAllModalityHighScore();
mockSBIPage.switchBackToArcApp();
// biocorrection flow
if ("eng".equalsIgnoreCase(language)) {
loginPage = new LoginPageEnglish(driver);
} else if ("hin".equalsIgnoreCase(language)) {
loginPage = new LoginPageHindi(driver);
} else if ("fra".equalsIgnoreCase(language)) {
loginPage = new LoginPageFrench(driver);
} else if ("kan".equalsIgnoreCase(language)) {
loginPage = new LoginPageKannada(driver);
} else if ("tam".equalsIgnoreCase(language)) {
loginPage = new LoginPageTamil(driver);
} else if ("ara".equalsIgnoreCase(language)) {
loginPage = new LoginPageArabic(driver);
} else {
throw new IllegalStateException("Unsupported language in testdata.json: " + language);
}
loginPage.selectLanguage();

assertTrue(loginPage.isWelcomeMessageInSelectedLanguageDisplayed(),
"verify if the welcome msg in selected language displayed");
loginPage.enterUserName(KeycloakUserManager.moduleSpecificUser);
loginPage.clickOnNextButton();

loginPage.enterPassword(ArcConfigManager.getIAMUsersPassword());
loginPage.clickOnloginButton();

if ("eng".equalsIgnoreCase(language)) {
registrationTasksPage = new RegistrationTasksPageEnglish(driver);
Expand All @@ -638,10 +616,10 @@ public void adultBiometricCorrection() throws InterruptedException {
} else {
throw new IllegalStateException("Unsupported language in testdata.json: " + language);
}
registrationTasksPage.handleLocationPermission();

assertTrue(registrationTasksPage.isRegistrationTasksPageLoaded(),
"Verify if registration tasks page is loaded");
registrationTasksPage.clickOnRegistrationTasksTab();

assertTrue(registrationTasksPage.isBiometricCorrectionTitleDisplayed(),
"Verify if biometric correction is displayed");
Expand Down Expand Up @@ -820,7 +798,6 @@ public void adultBiometricCorrection() throws InterruptedException {
assertTrue(previewPage.isBiometricCorrectionTitleDisplayed(),
"Verify if biometric correction title is displayed");

previewPage.clickOnContinueButton();
if ("eng".equalsIgnoreCase(language)) {
authenticationPage = new AuthenticationPageEnglish(driver);
} else if ("hin".equalsIgnoreCase(language)) {
Expand All @@ -836,10 +813,21 @@ public void adultBiometricCorrection() throws InterruptedException {
} else {
throw new IllegalStateException("Unsupported language in testdata.json: " + language);
}
assertTrue(authenticationPage.isAuthenticationPageDisplayed(),
"Verify if authentication details page is displayed");
boolean isAuthenticationPageDisplayed = false;

for (int i = 0; i < 3; i++) {
previewPage.clickOnContinueButton();
Thread.sleep(2000);
if (authenticationPage.isAuthenticationPageDisplayed()) {
isAuthenticationPageDisplayed = true;
break;
}
}

assertTrue(isAuthenticationPageDisplayed, "Authentication page not displayed after retries");
authenticationPage.enterUserName(KeycloakUserManager.moduleSpecificUser);
authenticationPage.enterPassword(ArcConfigManager.getIAMUsersPassword());
BasePage.waitTime(1);
authenticationPage.clickOnAuthenticatenButton();
if ("eng".equalsIgnoreCase(language)) {
acknowledgementPage = new AcknowledgementPageEnglish(driver);
Expand Down Expand Up @@ -966,6 +954,27 @@ public void adultBiometricCorrection() throws InterruptedException {
break;
}
manageApplicationsPage.clickOnBackButton();
registrationTasksPage.clickProfileButton();

if ("eng".equalsIgnoreCase(language)) {
profilePage = new ProfilePageEnglish(driver);
} else if ("hin".equalsIgnoreCase(language)) {
profilePage = new ProfilePageHindi(driver);
} else if ("fra".equalsIgnoreCase(language)) {
profilePage = new ProfilePageFrench(driver);
} else if ("kan".equalsIgnoreCase(language)) {
profilePage = new ProfilePageKannada(driver);
} else if ("tam".equalsIgnoreCase(language)) {
profilePage = new ProfilePageTamil(driver);
} else if ("ara".equalsIgnoreCase(language)) {
profilePage = new ProfilePageArabic(driver);
} else {
throw new IllegalStateException("Unsupported language in testdata.json: " + language);
}

profilePage.clickOnLogoutButton();
assertTrue(loginPage.isLoginPageLoaded(), "verify if login page is displayeded in Selected language");

}

@Test(priority = 1, description = "Verify minor biometric correction")
Expand Down Expand Up @@ -1352,13 +1361,13 @@ public void minorBiometricCorrection() throws InterruptedException {
}

assertTrue(previewPage.isNewRegistrationTitleDisplayed(), "Verify if new Registration title is displayed");
// assertTrue(previewPage.isApplicationIDPreviewPagePageDisplayed(),
// "Verify if application ID In PreviewPage is displayed");
assertTrue(previewPage.isApplicationIDPreviewPagePageDisplayed(),
"Verify if application ID In PreviewPage is displayed");
assertTrue(previewPage.isDemographicInformationInPreviewPageDisplayed(),
"Verify if Demographic Information In PreviewPage is displayed");
assertTrue(previewPage.isDocumentsInformationInPreviewPageDisplayed(),
"Verify if Documents Information In PreviewPage is displayed");
// assertTrue(previewPage.isBiometricsInformationInPreviewPagePageDisplayed(),"Verify if Biometrics Information In PreviewPage is displayed");
assertTrue(previewPage.isBiometricsInformationInPreviewPagePageDisplayed(),"Verify if Biometrics Information In PreviewPage is displayed");
String Aid = previewPage.getAID();
previewPage.clickOnContinueButton();
if ("eng".equalsIgnoreCase(language)) {
Expand Down Expand Up @@ -1507,7 +1516,8 @@ public void minorBiometricCorrection() throws InterruptedException {
manageApplicationsPage.clickOnBackButton();

// Biometric correction packet process
// Reset biometric capabilities back to individual biometrics for correction flow
// Reset biometric capabilities back to individual biometrics for correction
// flow

assertTrue(registrationTasksPage.isOperationalTaskDisplayed(), "Verify if operation tasks page is loaded");

Expand Down Expand Up @@ -1689,14 +1699,9 @@ public void minorBiometricCorrection() throws InterruptedException {
}
}

// assertTrue(previewPage.isApplicationIDPreviewPagePageDisplayed(),
// "Verify if application ID In PreviewPage is displayed");
assertTrue(previewPage.isDemographicInformationInPreviewPageDisplayed(),
"Verify if Demographic Information In PreviewPage is displayed");
assertTrue(previewPage.isDocumentsInformationInPreviewPageDisplayed(),
"Verify if Documents Information In PreviewPage is displayed");
// assertTrue(previewPage.isBiometricsInformationInPreviewPagePageDisplayed(),"Verify if Biometrics Information In PreviewPage is displayed");
previewPage.clickOnContinueButton();
assertTrue(previewPage.isBiometricCorrectionTitleDisplayed(),
"Verify if biometric correction title is displayed");

if ("eng".equalsIgnoreCase(language)) {
authenticationPage = new AuthenticationPageEnglish(driver);
} else if ("hin".equalsIgnoreCase(language)) {
Expand All @@ -1712,8 +1717,18 @@ public void minorBiometricCorrection() throws InterruptedException {
} else {
throw new IllegalStateException("Unsupported language in testdata.json: " + language);
}
assertTrue(authenticationPage.isAuthenticationPageDisplayed(),
"Verify if authentication details page is displayed");
boolean isAuthenticationPageDisplayed = false;

for (int i = 0; i < 3; i++) {
previewPage.clickOnContinueButton();

if (authenticationPage.isAuthenticationPageDisplayed()) {
isAuthenticationPageDisplayed = true;
break;
}
}

assertTrue(isAuthenticationPageDisplayed, "Authentication page not displayed after retries");
authenticationPage.enterUserName(KeycloakUserManager.moduleSpecificUser);
authenticationPage.enterPassword(ArcConfigManager.getIAMUsersPassword());
authenticationPage.clickOnAuthenticatenButton();
Expand Down Expand Up @@ -1859,10 +1874,11 @@ public void minorBiometricCorrection() throws InterruptedException {
} else {
throw new IllegalStateException("Unsupported language in testdata.json: " + language);
}

profilePage.clickOnLogoutButton();
assertTrue(loginPage.isLoginPageLoaded(), "verify if login page is displayeded in Selected language");


}


}
51 changes: 16 additions & 35 deletions ui-test/src/main/java/regclient/androidTestCases/LoginTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@ public void userloginTest() {
assertTrue(loginPage.isMosipLogoDisplayed(), "verify if mosip logo is displayeded");
assertTrue(loginPage.isWelcomeMessageInSelectedLanguageDisplayed(),
"Verify if welcome note \"welcome to community registration client!\" message should be displayeded.");
// assertTrue(loginPage.isHelpButtonDisplayed(),"Verify if check help button on
// the top right of the page");

loginPage.enterUserName(KeycloakUserManager.moduleSpecificUser);

Expand Down Expand Up @@ -227,8 +225,7 @@ public void userloginTest() {
} else {
throw new IllegalStateException("Unsupported language in testdata.json: " + language);
}
// assertTrue(profilePage.isProfileTitleDisplayed(),"Verify if profile title
// display on Profilepage");

profilePage.clickOnLogoutButton();

profilePage.clickOnLogoutButton();
Expand Down Expand Up @@ -314,8 +311,8 @@ public void onboardingTest() {
throw new IllegalStateException("Unsupported language in testdata.json: " + language);
}

assertTrue(supervisorBiometricVerificationpage.isSupervisorBiometricVerificationPageLoaded(),
"Verify if operational tasks page is loaded");
assertTrue(supervisorBiometricVerificationpage.isOperatorBiometricVerificationPageLoaded(),
"Verify if operator biometric verification page is loaded");

if (FetchUiSpec.eye.equals("yes")) {
supervisorBiometricVerificationpage.clickOnIrisScan();
Expand All @@ -336,11 +333,10 @@ public void onboardingTest() {
assertTrue(supervisorBiometricVerificationpage.checkThresholdValueIris(),
"Verify if biometric score exceeds/meets the threshold for iris");

supervisorBiometricVerificationpage.clickOnBackButton();
supervisorBiometricVerificationpage.clickOnNextButton();
}

if (FetchUiSpec.rightHand.equals("yes")) {
supervisorBiometricVerificationpage.clickOnRightHandScanIcon();

assertTrue(supervisorBiometricVerificationpage.isRightHandScanTitleDisplayed(),
"Verify if applicant right hand scan is displayed");
Expand All @@ -359,11 +355,10 @@ public void onboardingTest() {
assertTrue(supervisorBiometricVerificationpage.checkThresholdValueRightHand(),
"Verify if biometric score exceeds/meets the threshold for right hand");

supervisorBiometricVerificationpage.clickOnBackButton();
supervisorBiometricVerificationpage.clickOnNextButton();
}

if (FetchUiSpec.leftHand.equals("yes")) {
supervisorBiometricVerificationpage.clickOnLeftHandScanIcon();
assertTrue(supervisorBiometricVerificationpage.isLeftHandScanTitleDisplayed(),
"Verify if applicant right hand scan is displayed");
supervisorBiometricVerificationpage.clickOnMarkExceptionButton();
Expand All @@ -381,11 +376,10 @@ public void onboardingTest() {
assertTrue(supervisorBiometricVerificationpage.checkThresholdValueLeftHand(),
"Verify if biometric score exceeds/meets the threshold for left hand");

supervisorBiometricVerificationpage.clickOnBackButton();
supervisorBiometricVerificationpage.clickOnNextButton();
}

if (FetchUiSpec.thumb.equals("yes")) {
supervisorBiometricVerificationpage.clickOnThumbsScanIcon();
assertTrue(supervisorBiometricVerificationpage.isThumbsScanTitleDisplayed(),
"Verify if thumbs scan page is displayed");
supervisorBiometricVerificationpage.clickOnMarkExceptionButton();
Expand All @@ -405,12 +399,10 @@ public void onboardingTest() {
assertTrue(supervisorBiometricVerificationpage.checkThresholdValueThumbs(),
"Verify if biometric score exceeds/meets the threshold for thumbs");

supervisorBiometricVerificationpage.clickOnBackButton();
supervisorBiometricVerificationpage.clickOnNextButton();
}

if (FetchUiSpec.face.equals("yes")) {
supervisorBiometricVerificationpage.clickOnFaceScanIcon();

assertTrue(supervisorBiometricVerificationpage.isFaceScanTitleDisplayed(),
"Verify if face scan page is displayed");
supervisorBiometricVerificationpage.clickOnMarkExceptionButton();
Expand All @@ -425,10 +417,10 @@ public void onboardingTest() {
"Verify if face scan threshold , Quality displayed");
assertTrue(supervisorBiometricVerificationpage.checkThresholdValueFace(),
"Verify if biometric score exceeds/meets the threshold for face");
supervisorBiometricVerificationpage.clickOnBackButton();
supervisorBiometricVerificationpage.clickOnNextButton();
}

assertTrue(supervisorBiometricVerificationpage.isSupervisorBiometricVerificationPageLoaded(),
assertTrue(supervisorBiometricVerificationpage.isOperatorBiometricVerificationPageLoaded(),
"Verify if operational tasks page is loaded");
assertTrue(supervisorBiometricVerificationpage.isVerifyAndSaveButtonEnabled(),
"Verify if verify and save button is display and enable");
Expand Down Expand Up @@ -560,8 +552,6 @@ public void updateOperatorBiometrics() {
assertTrue(UpdateOperatorBiometricspage.isExceptionTypeTitleDisplayed(),
"Verify if mark exception is displayed");
UpdateOperatorBiometricspage.markOneEyeException();
// UpdateOperatorBiometricspage.clickOnExceptionTypeTemporaryButton();
// assertTrue(UpdateOperatorBiometricspage.isCommentHeaderDisplyed(),"Verify if Comments header is displayed");

UpdateOperatorBiometricspage.clickOnIrisScanTitle();
UpdateOperatorBiometricspage.clickOnScanButton();
Expand All @@ -574,17 +564,14 @@ public void updateOperatorBiometrics() {
assertTrue(UpdateOperatorBiometricspage.checkThresholdValueIris(),
"Verify if biometric score exceeds/meets the threshold for iris");

UpdateOperatorBiometricspage.clickOnBackButton();
UpdateOperatorBiometricspage.clickOnNextButton();
}
if (FetchUiSpec.rightHand.equals("yes")) {
UpdateOperatorBiometricspage.clickOnRightHandScanIcon();

// righthand
assertTrue(UpdateOperatorBiometricspage.isRightHandScanTitleDisplayed(),
"Verify if applicant right hand scan is displayed");
UpdateOperatorBiometricspage.clickOnMarkExceptionButton();

// assertTrue(UpdateOperatorBiometricspage.isZoomButtonDisplyed(),"Verify if zoom button is displayed");
assertTrue(UpdateOperatorBiometricspage.isZoomButtonDisplayed(), "Verify if zoom button is displayed");
UpdateOperatorBiometricspage.clickOnRightHandScanTitle();
UpdateOperatorBiometricspage.clickOnScanButton();

Expand All @@ -596,12 +583,10 @@ public void updateOperatorBiometrics() {
assertTrue(UpdateOperatorBiometricspage.checkThresholdValueRightHand(),
"Verify if biometric score exceeds/meets the threshold for right hand");

UpdateOperatorBiometricspage.clickOnBackButton();
UpdateOperatorBiometricspage.clickOnNextButton();
}
// lefthand
if (FetchUiSpec.leftHand.equals("yes")) {
UpdateOperatorBiometricspage.clickOnLeftHandScanIcon();

assertTrue(UpdateOperatorBiometricspage.isLeftHandScanTitleDisplayed(),
"Verify if applicant right hand scan is displayed");
UpdateOperatorBiometricspage.clickOnMarkExceptionButton();
Expand All @@ -618,12 +603,10 @@ public void updateOperatorBiometrics() {
assertTrue(UpdateOperatorBiometricspage.checkThresholdValueLeftHand(),
"Verify if biometric score exceeds/meets the threshold for left hand");

UpdateOperatorBiometricspage.clickOnBackButton();
UpdateOperatorBiometricspage.clickOnNextButton();
}
// thumbs
if (FetchUiSpec.thumb.equals("yes")) {
UpdateOperatorBiometricspage.clickOnThumbsScanIcon();

assertTrue(UpdateOperatorBiometricspage.isThumbsScanTitleDisplayed(),
"Verify if thumbs scan page is displayed");
UpdateOperatorBiometricspage.clickOnMarkExceptionButton();
Expand All @@ -646,12 +629,10 @@ public void updateOperatorBiometrics() {
"Verify if thumbs scan threshold , Quality displayed");
assertTrue(UpdateOperatorBiometricspage.checkThresholdValueThumbs(),
"Verify if biometric score exceeds/meets the threshold for thumbs");
UpdateOperatorBiometricspage.clickOnBackButton();
UpdateOperatorBiometricspage.clickOnNextButton();
}
// face
if (FetchUiSpec.face.equals("yes")) {
UpdateOperatorBiometricspage.clickOnFaceScanIcon();

assertTrue(UpdateOperatorBiometricspage.isFaceScanTitleDisplayed(),
"Verify if face scan page is displayed");
UpdateOperatorBiometricspage.clickOnMarkExceptionButton();
Expand Down Expand Up @@ -683,10 +664,10 @@ public void updateOperatorBiometrics() {

if (UpdateOperatorBiometricspage.isOperatorBiometricsUpdatedPopupLoaded()) {
updateBiometricsAndWaitPopup = true;
break; // success
break;
}

BasePage.waitTime(10);
BasePage.waitTime(20);
}

assertTrue(updateBiometricsAndWaitPopup, "Biometrics update success popup not displayed after 5 retries.");
Expand Down
Loading