Skip to content

Commit

Permalink
MOSIP-31687 (#375)
Browse files Browse the repository at this point in the history
* MOSIP-31687

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>

* MOSIP-31687

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>

* MOSIP-32859

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>

* MOSIP-32859

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>

* MOSIP-32859

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>

* MOSIP-32859

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>

* MOSIP-33047

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>

* MOSIP-33047

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>

* Delete androidReg-clientTest/.classpath

Signed-off-by: jayesh12234 <111957576+jayesh12234@users.noreply.github.com>

---------

Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>
Signed-off-by: jayesh12234 <111957576+jayesh12234@users.noreply.github.com>
Co-authored-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>
  • Loading branch information
jayesh12234 and Jayesh Kharode authored Jun 28, 2024
1 parent d43cf16 commit 6a33da4
Show file tree
Hide file tree
Showing 47 changed files with 1,148 additions and 180 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ public AcknowledgementPage(AppiumDriver driver) {
public abstract boolean isBiometricsInformationInAcknowledgementPageDisplayed();

public abstract DemographicDetailsPage clickOnDemographicDetailsTitle();


}
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ public ApplicantBiometricsPage(AppiumDriver driver) {
public abstract boolean isExceptionScan();

public abstract boolean isCommentHeaderDisplyed();

public abstract boolean isExceptionCountDisplyed();


}
48 changes: 30 additions & 18 deletions androidReg-clientTest/src/main/java/regclient/page/BasePage.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@

import java.io.IOException;
import java.time.Duration;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Collections;
import java.util.Locale;

public class BasePage {
protected AppiumDriver driver;
Expand Down Expand Up @@ -70,26 +74,11 @@ protected boolean isElementEnabled(WebElement element) {
protected void clickAndsendKeysToTextBox(WebElement element, String text) {
this.waitForElementToBeVisible(element);
element.click();
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
waitTime(1);
element.clear();
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
waitTime(1);
element.sendKeys(text);
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
waitTime(1);
((HidesKeyboard) driver).hideKeyboard();
}

Expand Down Expand Up @@ -173,4 +162,27 @@ public static void disableAutoRotation() {
throw new RuntimeException(e);
}
}

protected String getCurrentDate() {
LocalDateTime currentDateTime = LocalDateTime.now();
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
return currentDateTime.format(formatter);
}

protected String getCurrentDateWord() {
LocalDate today = LocalDate.now();
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("EEEE dd MMMM", Locale.ENGLISH);
String formattedDate = today.format(formatter);
return formattedDate;
}

public void waitTime(int sec) {
try {
Thread.sleep(sec*1000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,15 @@ public DemographicDetailsPage(AppiumDriver driver) {
public abstract void selectCurrentCalenderDate();

public abstract void closeCalender();

public abstract boolean checkDateFormatAndCurrectDate();

public abstract boolean checkAddress1SecondLanguageTextBoxNotNull();

public abstract boolean checkAddress2SecondLanguageTextBoxNotNull();

public abstract boolean checkAddress3SecondLanguageTextBoxNotNull();

public abstract boolean checkIntroducerNameTextBoxSecondLangaugeTextBoxNotNull();

}
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,10 @@ public DocumentUploadPage(AppiumDriver driver) {
public abstract boolean isScanButtonDobProofEnabled();

public abstract boolean isScanButtonRelationshipProoffEnabled();

public abstract void enterReferenceNumberInAdressProof();

public abstract void enterReferenceNumberInIdentityProof();

public abstract void enterReferenceNumberInDobProof();
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@ public OperationalTaskPage(AppiumDriver driver) {
public abstract SupervisorBiometricVerificationpage clickOnUpdateOperatorBiometricsButton();

public abstract boolean isOperationalTaskPageLoaded();

public abstract void clickSynchronizeDataButton();

public abstract boolean checkLastSyncDate();
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ public PreviewPage(AppiumDriver driver) {
public abstract boolean isBothIrisImageDisplayed();

public abstract boolean isSingleIrisImageDisplayed();

public abstract boolean isFingerExceptionText() ;


}
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ public class ApplicantBiometricsPageArabic extends ApplicantBiometricsPage {
@AndroidFindBy(uiAutomator = "new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().descriptionContains(\"التعليقات\"))")
private WebElement commentsHeader;

@AndroidFindBy(xpath = "//android.view.View[@content-desc=\"الاستثناءات\"]/following-sibling::android.view.View[@content-desc=\"1\"]")
private WebElement exceptionCount;



public ApplicantBiometricsPageArabic(AppiumDriver driver) {
Expand Down Expand Up @@ -244,5 +247,13 @@ public boolean isExceptionScan() {
public boolean isCommentHeaderDisplyed() {
return isElementDisplayed(commentsHeader);
}

public boolean isExceptionCountDisplyed() {
if(!isElementDisplayedOnScreen(exceptionCount)) {
swipeOrScroll();
isElementDisplayed(exceptionCount);
}
return isElementDisplayed(exceptionCount);
}

}
Loading

0 comments on commit 6a33da4

Please sign in to comment.