From 2152c982df909d8ec1fcd3bd63a5bf5bed557e04 Mon Sep 17 00:00:00 2001 From: kamalsinghthoughtworks <120381388+kamalsinghthoughtworks@users.noreply.github.com> Date: Fri, 10 Nov 2023 10:49:15 +0530 Subject: [PATCH] MOSIP-28901 | Regression test cases added for android (#1001) * Test script updated for new apk Signed-off-by: kamalsingh * new test cases added Signed-off-by: kamalsingh * new test cases added from master sheet Signed-off-by: kamalsingh * Test cases added from regression sheet Signed-off-by: kamalsingh --------- Signed-off-by: kamalsingh --- .../mob/inji/pages/DetailedVcViewPage.java | 91 +++++++++- .../test/mob/inji/pages/HistoryPage.java | 42 ++++- .../mosip/test/mob/inji/pages/HomePage.java | 6 + .../mob/inji/pages/OtpVerificationPage.java | 25 +++ .../test/mob/inji/pages/RetrieveIdPage.java | 5 + .../mosip/test/mob/inji/pages/ScanPage.java | 15 +- .../mob/inji/testcases/ActivateVcTest.java | 29 +++- .../inji/testcases/GenerateUinOrVidTest.java | 37 ++++ .../inji/testcases/NoNetworkAndroidTest.java | 47 ++++++ .../test/mob/inji/testcases/ShareVcTest.java | 34 ++++ .../VcDownloadAndVerifyUsingUinTest.java | 64 +++++-- .../VcDownloadAndVerifyUsingVidTest.java | 35 +++- .../mob/inji/testcases/VerifyHistoryTest.java | 158 +++++++++++++++++- injitest/src/main/resources/TestData.json | 7 +- 14 files changed, 563 insertions(+), 32 deletions(-) create mode 100644 injitest/src/main/java/io/mosip/test/mob/inji/testcases/ShareVcTest.java diff --git a/injitest/src/main/java/io/mosip/test/mob/inji/pages/DetailedVcViewPage.java b/injitest/src/main/java/io/mosip/test/mob/inji/pages/DetailedVcViewPage.java index 38f9aeb11..121f75748 100644 --- a/injitest/src/main/java/io/mosip/test/mob/inji/pages/DetailedVcViewPage.java +++ b/injitest/src/main/java/io/mosip/test/mob/inji/pages/DetailedVcViewPage.java @@ -10,6 +10,42 @@ public class DetailedVcViewPage extends BasePage{ @AndroidFindBy(xpath = "//*[contains(@text,'ID Details')]") private WebElement detailedVcViewPageTitle; + @AndroidFindBy(accessibility = "fullNameValue") + private WebElement fullNameValue; + + @AndroidFindBy(accessibility = "genderValue") + private WebElement genderValue; + + @AndroidFindBy(accessibility = "dateOfBirthValue") + private WebElement dateOfBirthValue; + + @AndroidFindBy(accessibility = "nationalCard") + private WebElement idTypeValue; + + @AndroidFindBy(accessibility = "valid") + private WebElement statusValue; + + @AndroidFindBy(accessibility = "uinNumber") + private WebElement uinNumberValue; + + @AndroidFindBy(accessibility = "generatedOnValue") + private WebElement generatedOnValue; + + @AndroidFindBy(accessibility = "phoneNumberValue") + private WebElement phoneNumberValue; + + @AndroidFindBy(accessibility = "emailIdValue") + private WebElement emailIdValue; + + @AndroidFindBy(accessibility = "enableVerification") + private WebElement activateButton; + + @AndroidFindBy(accessibility = "profileAuthenticated") + private WebElement profileAuthenticated; + + @AndroidFindBy(accessibility = "close") + private WebElement crossIcon; + public DetailedVcViewPage(AppiumDriver driver) { super(driver); } @@ -18,8 +54,57 @@ public boolean isDetailedVcViewPageLoaded() { return this.isElementDisplayed(detailedVcViewPageTitle, "detailed Vc view page title page"); } - public boolean isDetailedVcViewLoaded(String name) { - By fullName = By.xpath("//*[contains(@name,'" + name + "') or contains(@text,'" + name + "')]"); - return this.isElementDisplayed(fullName, 60, "Name on downloaded card"); + public String getNameInDetailedVcView() { + return getTextFromLocator(fullNameValue); + } + + public String getGenderInDetailedVcView() { + return getTextFromLocator(genderValue); + } + + public String getDateOfBirthInDetailedVcView() { + return getTextFromLocator(dateOfBirthValue); + } + + public String getIdTypeValueInDetailedVcView() { + return getTextFromLocator(idTypeValue); + } + + public String getStatusInDetailedVcView() { + return getTextFromLocator(statusValue); + } + + public String getUinInDetailedVcView() { + return getTextFromLocator(uinNumberValue); + } + + public String getGeneratedOnValueInDetailedVcView() { + return getTextFromLocator(generatedOnValue); + } + + public String getPhoneInDetailedVcView() { + return getTextFromLocator(phoneNumberValue); + } + + public String getEmailInDetailedVcView() { + return getTextFromLocator(emailIdValue); + } + + public boolean isActivateButtonDisplayed() { + return this.isElementDisplayed(activateButton, "activate button"); + } + + public PleaseConfirmPopupPage clickOnActivateButton(){ + clickOnElement(activateButton); + return new PleaseConfirmPopupPage(driver); + } + + public boolean isProfileAuthenticatedDisplayed() { + return this.isElementDisplayed(profileAuthenticated, "Credentials are enabled for online authentication"); + } + + public HomePage clickOnCrossIcon(){ + clickOnElement(crossIcon); + return new HomePage(driver); } } diff --git a/injitest/src/main/java/io/mosip/test/mob/inji/pages/HistoryPage.java b/injitest/src/main/java/io/mosip/test/mob/inji/pages/HistoryPage.java index 86c4b6756..5dc2150a8 100644 --- a/injitest/src/main/java/io/mosip/test/mob/inji/pages/HistoryPage.java +++ b/injitest/src/main/java/io/mosip/test/mob/inji/pages/HistoryPage.java @@ -30,8 +30,6 @@ private boolean verifyHistoryIos(String vcNumber) { By locator = By.xpath("//*[contains(@name,'" + vcNumber + " downloaded')]"); return this.isElementDisplayed(locator, "Downloaded VC in ios"); } - - private boolean verifyHistoryAndroid(String vcNumber) { By locator = By.xpath("//*[contains(@text,'" + vcNumber + " downloaded')]"); @@ -87,4 +85,44 @@ public boolean verifyDeleteHistory(String vcNumber, Target os) { } return false; } + + public boolean verifyActivationFailedRecordInHistory(String vcNumber, Target os) { + switch (os) { + case ANDROID: + return verifyActivationFailedRecordAndroid(vcNumber); + case IOS: + return verifyActivationFailedRecordIos(vcNumber); + } + return false; + } + + private boolean verifyActivationFailedRecordIos(String vcNumber) { + By locator = By.xpath("//*[contains(@name,'" + vcNumber + " Activation failed')]"); + return this.isElementDisplayed(locator, "Downloaded VC in ios"); + } + + private boolean verifyActivationFailedRecordAndroid(String vcNumber) { + By locator = By.xpath("//*[contains(@text,'" + vcNumber + " Activation failed')]"); + return this.isElementDisplayed(locator, "Downloaded VC in android"); + } + + public boolean verifyActivationSuccessfulRecordInHistory(String vcNumber, Target os) { + switch (os) { + case ANDROID: + return verifyActivationFailedRecordAndroid(vcNumber); + case IOS: + return verifyActivationFailedRecordIos(vcNumber); + } + return false; + } + + private boolean verifyActivationSuccessfulRecordIos(String vcNumber) { + By locator = By.xpath("//*[contains(@name,'" + vcNumber + " Activation successful')]"); + return this.isElementDisplayed(locator, "Downloaded VC in ios"); + } + + private boolean verifyActivationSuccessfulRecordAndroid(String vcNumber) { + By locator = By.xpath("//*[contains(@text,'" + vcNumber + " Activation successful')]"); + return this.isElementDisplayed(locator, "Downloaded VC in android"); + } } diff --git a/injitest/src/main/java/io/mosip/test/mob/inji/pages/HomePage.java b/injitest/src/main/java/io/mosip/test/mob/inji/pages/HomePage.java index b85a3321a..904b5cd2a 100644 --- a/injitest/src/main/java/io/mosip/test/mob/inji/pages/HomePage.java +++ b/injitest/src/main/java/io/mosip/test/mob/inji/pages/HomePage.java @@ -55,6 +55,9 @@ public class HomePage extends BasePage { @AndroidFindBy(xpath = "//*[contains(@text,'Scan')]") private WebElement scanButton; + @AndroidFindBy(accessibility = "nationalCard") + private WebElement idTypeValue; + public HomePage(AppiumDriver driver) { super(driver); @@ -130,5 +133,8 @@ public ScanPage clickOnScanButton(){ clickOnElement(scanButton); return new ScanPage(driver); } + public boolean isIdTypeDisplayed() { + return this.isElementDisplayed(idTypeValue, "Name on downloaded card"); + } } diff --git a/injitest/src/main/java/io/mosip/test/mob/inji/pages/OtpVerificationPage.java b/injitest/src/main/java/io/mosip/test/mob/inji/pages/OtpVerificationPage.java index 92a7e3628..40cb33523 100644 --- a/injitest/src/main/java/io/mosip/test/mob/inji/pages/OtpVerificationPage.java +++ b/injitest/src/main/java/io/mosip/test/mob/inji/pages/OtpVerificationPage.java @@ -15,6 +15,15 @@ public class OtpVerificationPage extends BasePage { @AndroidFindBy(xpath = "//*[contains(@text,'OTP is invalid')]") private WebElement invalidOtpMessage; + @AndroidFindBy(xpath = "//*[contains(@text,'Something is wrong. Please try again later!')]") + private WebElement invalidOtpMessageInVcActivation; + + @AndroidFindBy(xpath = "//*[contains(@text,'Cancel')]") + private WebElement cancelButton; + + @AndroidFindBy(accessibility = "close") + private WebElement crossIcon; + public OtpVerificationPage(AppiumDriver driver) { super(driver); } @@ -32,4 +41,20 @@ public HomePage enterOtp(String otp, Target os) { public boolean invalidOtpMessageDisplayed() { return this.isElementDisplayed(invalidOtpMessage, "OTP is invalid"); } + + public boolean somethingWetWrongInVcActivationDisplayed() { + return this.isElementDisplayed(invalidOtpMessageInVcActivation, "Something is wrong. Please try again later!"); + } + + public boolean isCancelButtonDisplayed() { + return this.isElementDisplayed(cancelButton, "Cancel button"); + } + + public MoreOptionsPage clickOnCancelButton(){ + clickOnElement(cancelButton); + return new MoreOptionsPage(driver); + } + public void clickOnCrossIcon(){ + clickOnElement(crossIcon); + } } diff --git a/injitest/src/main/java/io/mosip/test/mob/inji/pages/RetrieveIdPage.java b/injitest/src/main/java/io/mosip/test/mob/inji/pages/RetrieveIdPage.java index 709765d2e..2f99aeb32 100644 --- a/injitest/src/main/java/io/mosip/test/mob/inji/pages/RetrieveIdPage.java +++ b/injitest/src/main/java/io/mosip/test/mob/inji/pages/RetrieveIdPage.java @@ -51,6 +51,11 @@ public boolean isRetrieveIdPageLoaded() { } public RetrieveIdPage setEnterIdTextBox(String uinOrVid) { + try { + Thread.sleep(1000); + } catch (InterruptedException e) { + throw new RuntimeException(e); + } sendKeysToTextBox(enterIdTextBox, uinOrVid, "uin or vid textbox"); return this; } diff --git a/injitest/src/main/java/io/mosip/test/mob/inji/pages/ScanPage.java b/injitest/src/main/java/io/mosip/test/mob/inji/pages/ScanPage.java index 462ff29c4..f7334e830 100644 --- a/injitest/src/main/java/io/mosip/test/mob/inji/pages/ScanPage.java +++ b/injitest/src/main/java/io/mosip/test/mob/inji/pages/ScanPage.java @@ -18,10 +18,13 @@ public class ScanPage extends BasePage{ @AndroidFindBy(uiAutomator = "new UiSelector().textContains(\"Allow\")") private WebElement allowButton; - + + @AndroidFindBy(uiAutomator = "new UiSelector().textContains(\"No shareable cards are available.\")") + private WebElement noShareableCards; + @AndroidFindBy(className = "android.widget.ImageView") private WebElement flipCamera; - + @AndroidFindBy(xpath = "//*[contains(@text,'Hold the phone steady and scan the QR code')]") private WebElement holdCameraSteady; @@ -38,11 +41,15 @@ public ScanPage acceptPermissionPopup(){ public boolean isCameraOpen(){ return isElementDisplayed(camera, "camera"); } - + + public boolean isNoShareableCardsMessageDisplayed(){ + return isElementDisplayed(noShareableCards, "No shareable cards are available."); + } + public boolean isCameraPageLoaded() { return this.isElementEnabled(holdCameraSteady); } - + public boolean isFlipCameraClickable() { return this.isElementEnabled(flipCamera); } diff --git a/injitest/src/main/java/io/mosip/test/mob/inji/testcases/ActivateVcTest.java b/injitest/src/main/java/io/mosip/test/mob/inji/testcases/ActivateVcTest.java index 6caf1ab41..a8d4f8b99 100644 --- a/injitest/src/main/java/io/mosip/test/mob/inji/testcases/ActivateVcTest.java +++ b/injitest/src/main/java/io/mosip/test/mob/inji/testcases/ActivateVcTest.java @@ -87,7 +87,7 @@ public void noPreDownloadedVCAndNoHistoryInFreshInstallation() { } @Test - public void verifyInvalidUinErrorMessage() { + public void verifyInvalidOtpMessage() { ChooseLanguagePage chooseLanguagePage = new ChooseLanguagePage(driver); assertTrue(chooseLanguagePage.isChooseLanguagePageLoaded(), "Verify if choose language page is displayed"); @@ -113,13 +113,17 @@ public void verifyInvalidUinErrorMessage() { RetrieveIdPage retrieveIdPage = addNewCardPage.clickOnDownloadViaUin(); assertTrue(retrieveIdPage.isRetrieveIdPageLoaded(), "Verify if retrieve id page is displayed"); - retrieveIdPage.setEnterIdTextBox("00").clickOnGenerateCardButton(); + OtpVerificationPage otpVerification = retrieveIdPage.setEnterIdTextBox(BaseTestCase.uin).clickOnGenerateCardButton(); + + assertTrue(otpVerification.isOtpVerificationPageLoaded(), "Verify if otp verification page is displayed"); + otpVerification.enterOtp(TestDataReader.readData("invalidOtp"), target); + + assertTrue(otpVerification.invalidOtpMessageDisplayed(), "Verify if OTP is invalid message is displayed"); - assertTrue(retrieveIdPage.isIncorrectInputFormatErrorMessageDisplayed()); } @Test - public void verifyInvalidOtpMessage() { + public void activateVcFromDetailedViewPage() throws InterruptedException { ChooseLanguagePage chooseLanguagePage = new ChooseLanguagePage(driver); assertTrue(chooseLanguagePage.isChooseLanguagePageLoaded(), "Verify if choose language page is displayed"); @@ -145,12 +149,23 @@ public void verifyInvalidOtpMessage() { RetrieveIdPage retrieveIdPage = addNewCardPage.clickOnDownloadViaUin(); assertTrue(retrieveIdPage.isRetrieveIdPageLoaded(), "Verify if retrieve id page is displayed"); - OtpVerificationPage otpVerification = retrieveIdPage.setEnterIdTextBox(BaseTestCase.uin).clickOnGenerateCardButton(); + OtpVerificationPage otpVerification = retrieveIdPage.setEnterIdTextBox(TestDataReader.readData("uin")).clickOnGenerateCardButton(); assertTrue(otpVerification.isOtpVerificationPageLoaded(), "Verify if otp verification page is displayed"); - otpVerification.enterOtp(TestDataReader.readData("invalidOtp"), target); + otpVerification.enterOtp(GetOtp(), target); - assertTrue(otpVerification.invalidOtpMessageDisplayed(), "Verify if OTP is invalid message is displayed"); + assertTrue(homePage.isNameDisplayed(TestDataReader.readData("fullName")), "Verify if full name is displayed"); + + DetailedVcViewPage detailedVcViewPage = homePage.openDetailedVcView(TestDataReader.readData("fullName")); + assertTrue(detailedVcViewPage.isDetailedVcViewPageLoaded(), "Verify if detailed Vc view page is displayed"); + PleaseConfirmPopupPage pleaseConfirmPopupPage = detailedVcViewPage.clickOnActivateButton(); + + assertTrue(pleaseConfirmPopupPage.isPleaseConfirmPopupPageLoaded(), "Verify if pop up page is displayed"); + OtpVerificationPage otpVerificationPage = pleaseConfirmPopupPage.clickOnConfirmButton(); + + assertTrue(otpVerificationPage.isOtpVerificationPageLoaded(), "Verify if otp verification page is displayed"); + otpVerificationPage.enterOtp(TestDataReader.readData("passcode"), target); + assertTrue(detailedVcViewPage.isProfileAuthenticatedDisplayed(), "Verify if VC is activated"); } } diff --git a/injitest/src/main/java/io/mosip/test/mob/inji/testcases/GenerateUinOrVidTest.java b/injitest/src/main/java/io/mosip/test/mob/inji/testcases/GenerateUinOrVidTest.java index f76504959..a8ddb56a9 100644 --- a/injitest/src/main/java/io/mosip/test/mob/inji/testcases/GenerateUinOrVidTest.java +++ b/injitest/src/main/java/io/mosip/test/mob/inji/testcases/GenerateUinOrVidTest.java @@ -51,5 +51,42 @@ public void generateUinOrVidUsingAid() { assertTrue(homePage.isNameDisplayed(TestDataReader.readData("fullName")), "Verify if full name is displayed"); } + + @Test + public void goBackToGenerateUinOrVidUsingAidFromOtpVerificationPage() { + ChooseLanguagePage chooseLanguagePage = new ChooseLanguagePage(driver); + + assertTrue(chooseLanguagePage.isChooseLanguagePageLoaded(), "Verify if choose language page is displayed"); + WelcomePage welcomePage = chooseLanguagePage.clickOnSavePreference(); + + assertTrue(welcomePage.isWelcomePageLoaded(), "Verify if welcome page is loaded"); + AppUnlockMethodPage appUnlockMethodPage = welcomePage.clickOnSkipButton(); + + assertTrue(appUnlockMethodPage.isAppUnlockMethodPageLoaded(), "Verify if app unlocked page is displayed"); + SetPasscode setPasscode = appUnlockMethodPage.clickOnUsePasscode(); + + assertTrue(setPasscode.isSetPassCodePageLoaded(), "Verify if set passcode page is displayed"); + ConfirmPasscode confirmPasscode = setPasscode.enterPasscode(TestDataReader.readData("passcode"), target); + + assertTrue(confirmPasscode.isConfirmPassCodePageLoaded(), "Verify if confirm passcode page is displayed"); + HomePage homePage = confirmPasscode.confirmPasscode(TestDataReader.readData("passcode"), target); + + assertTrue(homePage.isHomePageLoaded(), "Verify if home page is displayed"); + AddNewCardPage addNewCardPage = homePage.downloadCard(); + + assertTrue(addNewCardPage.isAddNewCardPageLoaded(), "Verify if add new card page is displayed"); + RetrieveIdPage retrieveIdPage = addNewCardPage.clickOnDownloadViaUin(); + + assertTrue(retrieveIdPage.isRetrieveIdPageLoaded(), "Verify if retrieve id page is displayed"); + GenerateUinOrVidPage generateUinOrVidPage = retrieveIdPage.clickOnGetItNowText(); + + assertTrue(generateUinOrVidPage.isGenerateUinOrVidPageLoaded(), "Verify if generate uin or vid page page is displayed"); + OtpVerificationPage otpVerification = generateUinOrVidPage.enterApplicationID(TestDataReader.readData("aid")).clickOnGetUinOrVidButton(); + + assertTrue(otpVerification.isOtpVerificationPageLoaded(), "Verify if otp verification page is displayed"); + otpVerification.clickOnCrossIcon(); + assertTrue(generateUinOrVidPage.isGenerateUinOrVidPageLoaded(), "Verify if generate uin or vid page page is displayed"); + + } } \ No newline at end of file diff --git a/injitest/src/main/java/io/mosip/test/mob/inji/testcases/NoNetworkAndroidTest.java b/injitest/src/main/java/io/mosip/test/mob/inji/testcases/NoNetworkAndroidTest.java index 88025561d..0945880a8 100644 --- a/injitest/src/main/java/io/mosip/test/mob/inji/testcases/NoNetworkAndroidTest.java +++ b/injitest/src/main/java/io/mosip/test/mob/inji/testcases/NoNetworkAndroidTest.java @@ -76,4 +76,51 @@ public void openCameraOnFlightMode() { assertTrue(homePage.clickOnScanButton().acceptPermissionPopup().isCameraOpen()); CommonMethods.disableAirplaneMode(); } + @Test + public void activateVcWithoutInternet() throws InterruptedException { + ChooseLanguagePage chooseLanguagePage = new ChooseLanguagePage(driver); + + assertTrue(chooseLanguagePage.isChooseLanguagePageLoaded(), "Verify if choose language page is displayed"); + WelcomePage welcomePage = chooseLanguagePage.clickOnSavePreference(); + + assertTrue(welcomePage.isWelcomePageLoaded(), "Verify if welcome page is loaded"); + AppUnlockMethodPage appUnlockMethodPage = welcomePage.clickOnSkipButton(); + + assertTrue(appUnlockMethodPage.isAppUnlockMethodPageLoaded(), "Verify if app unlocked page is displayed"); + SetPasscode setPasscode = appUnlockMethodPage.clickOnUsePasscode(); + + assertTrue(setPasscode.isSetPassCodePageLoaded(), "Verify if set passcode page is displayed"); + ConfirmPasscode confirmPasscode = setPasscode.enterPasscode(TestDataReader.readData("passcode"), target); + + assertTrue(confirmPasscode.isConfirmPassCodePageLoaded(), "Verify if confirm passcode page is displayed"); + HomePage homePage = confirmPasscode.confirmPasscode(TestDataReader.readData("passcode"), target); + + assertTrue(homePage.isHomePageLoaded(), "Verify if home page is displayed"); + + AddNewCardPage addNewCardPage = homePage.downloadCard(); + + assertTrue(addNewCardPage.isAddNewCardPageLoaded(), "Verify if add new card page is displayed"); + RetrieveIdPage retrieveIdPage = addNewCardPage.clickOnDownloadViaUin(); + + assertTrue(retrieveIdPage.isRetrieveIdPageLoaded(), "Verify if retrieve id page is displayed"); + OtpVerificationPage otpVerification = retrieveIdPage.setEnterIdTextBox(TestDataReader.readData("uin")).clickOnGenerateCardButton(); + + assertTrue(otpVerification.isOtpVerificationPageLoaded(), "Verify if otp verification page is displayed"); + otpVerification.enterOtp(GetOtp(), target); + + assertTrue(homePage.isNameDisplayed(TestDataReader.readData("fullName")), "Verify if full name is displayed"); + CommonMethods.enableAirplaneMode(); + + MoreOptionsPage moreOptionsPage = homePage.clickOnMoreOptionsButton(); + + assertTrue(moreOptionsPage.isMoreOptionsPageLoaded(), "Verify if more options page is displayed"); + PleaseConfirmPopupPage pleaseConfirmPopupPage = moreOptionsPage.clickOnActivationPending(); + + assertTrue(pleaseConfirmPopupPage.isPleaseConfirmPopupPageLoaded(), "Verify if pop up page is displayed"); + OtpVerificationPage otpVerificationPage = pleaseConfirmPopupPage.clickOnConfirmButton(); + + assertTrue(otpVerificationPage.somethingWetWrongInVcActivationDisplayed(), "Verify if Something is wrong. Please try again later! is displayed"); + CommonMethods.disableAirplaneMode(); + + } } diff --git a/injitest/src/main/java/io/mosip/test/mob/inji/testcases/ShareVcTest.java b/injitest/src/main/java/io/mosip/test/mob/inji/testcases/ShareVcTest.java new file mode 100644 index 000000000..5e1638ae0 --- /dev/null +++ b/injitest/src/main/java/io/mosip/test/mob/inji/testcases/ShareVcTest.java @@ -0,0 +1,34 @@ +package io.mosip.test.mob.inji.testcases; + +import io.mosip.test.mob.inji.pages.*; +import io.mosip.test.mob.inji.utils.TestDataReader; +import org.testng.annotations.Test; + +import static org.testng.Assert.assertTrue; + +public class ShareVcTest extends BaseTest{ + + @Test + public void noCardsAvailableToShare() { + ChooseLanguagePage chooseLanguagePage = new ChooseLanguagePage(driver); + + assertTrue(chooseLanguagePage.isChooseLanguagePageLoaded(), "Verify if choose language page is displayed"); + WelcomePage welcomePage = chooseLanguagePage.clickOnSavePreference(); + + assertTrue(welcomePage.isWelcomePageLoaded(), "Verify if welcome page is loaded"); + AppUnlockMethodPage appUnlockMethodPage = welcomePage.clickOnSkipButton(); + + assertTrue(appUnlockMethodPage.isAppUnlockMethodPageLoaded(), "Verify if app unlocked page is displayed"); + SetPasscode setPasscode = appUnlockMethodPage.clickOnUsePasscode(); + + assertTrue(setPasscode.isSetPassCodePageLoaded(), "Verify if set passcode page is displayed"); + ConfirmPasscode confirmPasscode = setPasscode.enterPasscode(TestDataReader.readData("passcode"), target); + + assertTrue(confirmPasscode.isConfirmPassCodePageLoaded(), "Verify if confirm passcode page is displayed"); + HomePage homePage = confirmPasscode.confirmPasscode(TestDataReader.readData("passcode"), target); + + assertTrue(homePage.isHomePageLoaded(), "Verify if home page is displayed"); + ScanPage scanPage = homePage.clickOnScanButton(); + assertTrue(scanPage.isNoShareableCardsMessageDisplayed(), "Verify if no shareable cards are available message is displayed"); + } +} diff --git a/injitest/src/main/java/io/mosip/test/mob/inji/testcases/VcDownloadAndVerifyUsingUinTest.java b/injitest/src/main/java/io/mosip/test/mob/inji/testcases/VcDownloadAndVerifyUsingUinTest.java index 5887239d6..d1a4507f7 100644 --- a/injitest/src/main/java/io/mosip/test/mob/inji/testcases/VcDownloadAndVerifyUsingUinTest.java +++ b/injitest/src/main/java/io/mosip/test/mob/inji/testcases/VcDownloadAndVerifyUsingUinTest.java @@ -6,8 +6,8 @@ import io.mosip.test.mob.inji.pages.*; import io.mosip.test.mob.inji.utils.TestDataReader; -import static org.testng.Assert.assertTrue; import static org.testng.Assert.assertEquals; +import static org.testng.Assert.assertTrue; public class VcDownloadAndVerifyUsingUinTest extends BaseTest { @Test @@ -36,17 +36,26 @@ public void downloadAndVerifyVcUsingUin() { RetrieveIdPage retrieveIdPage = addNewCardPage.clickOnDownloadViaUin(); assertTrue(retrieveIdPage.isRetrieveIdPageLoaded(), "Verify if retrieve id page is displayed"); - OtpVerificationPage otpVerification = retrieveIdPage.setEnterIdTextBox(BaseTestCase.uin).clickOnGenerateCardButton(); + OtpVerificationPage otpVerification = retrieveIdPage.setEnterIdTextBox(TestDataReader.readData("uin")).clickOnGenerateCardButton(); assertTrue(otpVerification.isOtpVerificationPageLoaded(), "Verify if otp verification page is displayed"); otpVerification.enterOtp(GetOtp(), target); assertTrue(homePage.isNameDisplayed(TestDataReader.readData("fullName")), "Verify if full name is displayed"); - DetailedVcViewPage detailedVcViewPage = homePage.openDetailedVcView(TestDataReader.readData("fullName")); - assertTrue(detailedVcViewPage.isDetailedVcViewPageLoaded(), "Verify if detailed Vc view page is displayed"); - assertTrue(detailedVcViewPage.isDetailedVcViewLoaded(TestDataReader.readData("fullName"))); + assertTrue(homePage.isIdTypeDisplayed(), "Verify if id type is displayed"); + DetailedVcViewPage detailedVcViewPage = homePage.openDetailedVcView(TestDataReader.readData("fullName")); + assertTrue(detailedVcViewPage.isDetailedVcViewPageLoaded(), "Verify if detailed Vc view page is displayed"); + assertEquals(detailedVcViewPage.getNameInDetailedVcView(), TestDataReader.readData("fullName"), "Verify if full name is displayed"); + assertEquals(detailedVcViewPage.getDateOfBirthInDetailedVcView(), TestDataReader.readData("dateOfBirth"), "Verify if date of birth is displayed"); + assertEquals(detailedVcViewPage.getGenderInDetailedVcView(), TestDataReader.readData("gender"), "Verify if gender is displayed"); + assertEquals(detailedVcViewPage.getIdTypeValueInDetailedVcView(), TestDataReader.readData("idType"), "Verify if id type is displayed"); + assertEquals(detailedVcViewPage.getStatusInDetailedVcView(), TestDataReader.readData("status"), "Verify if status is displayed"); + assertEquals(detailedVcViewPage.getUinInDetailedVcView(), TestDataReader.readData("uin"), "Verify if uin is displayed"); + assertEquals(detailedVcViewPage.getPhoneInDetailedVcView(), TestDataReader.readData("phoneNumber"), "Verify if phone number is displayed"); + assertEquals(detailedVcViewPage.getEmailInDetailedVcView(), TestDataReader.readData("externalemail"), "Verify if email is displayed"); + assertTrue(detailedVcViewPage.isActivateButtonDisplayed(), "Verify if activate vc button displayed"); } @Test @@ -97,7 +106,7 @@ public void downloadMultipleVcUsingDifferentUin() { assertTrue(homePage.isNameDisplayed(TestDataReader.readData("fullName")), "Verifying again if first VC is still exists."); } - + @Test public void downloadWithEmptyUin() { ChooseLanguagePage chooseLanguagePage = new ChooseLanguagePage(driver); @@ -126,9 +135,9 @@ public void downloadWithEmptyUin() { assertTrue(retrieveIdPage.isRetrieveIdPageLoaded(), "Verify if retrieve id page is displayed"); OtpVerificationPage otpVerification = retrieveIdPage.setEnterIdTextBox("").clickOnGenerateCardButton(); assertTrue(retrieveIdPage.isRetrieveIdPageLoaded(), "Verify if retrieve id page is displayed"); - + } - + @Test public void generateMultipleVcWithSameUin() throws InterruptedException { ChooseLanguagePage chooseLanguagePage = new ChooseLanguagePage(driver); @@ -161,7 +170,7 @@ public void generateMultipleVcWithSameUin() throws InterruptedException { otpVerification.enterOtp(GetOtp(), target); assertTrue(homePage.isNameDisplayed(TestDataReader.readData("fullName")), "Verify if full name is displayed"); - + homePage.downloadCard(); assertTrue(addNewCardPage.isAddNewCardPageLoaded(), "Verify if add new card page is displayed"); @@ -178,10 +187,41 @@ public void generateMultipleVcWithSameUin() throws InterruptedException { assertTrue(historyPage.isHistoryPageLoaded(), "Verify if history page is displayed"); assertTrue(historyPage.verifyHistory(BaseTestCase.uin, target)); - + historyPage.getNumberOfRecordsInHistory(BaseTestCase.uin, target,"Verify two download records inhistory page"); assertEquals(historyPage.getNumberOfRecordsInHistory(BaseTestCase.uin, target,""),2); - + + } + + @Test + public void verifyInvalidUinErrorMessage() { + ChooseLanguagePage chooseLanguagePage = new ChooseLanguagePage(driver); + + assertTrue(chooseLanguagePage.isChooseLanguagePageLoaded(), "Verify if choose language page is displayed"); + WelcomePage welcomePage = chooseLanguagePage.clickOnSavePreference(); + + assertTrue(welcomePage.isWelcomePageLoaded(), "Verify if welcome page is loaded"); + AppUnlockMethodPage appUnlockMethodPage = welcomePage.clickOnSkipButton(); + + assertTrue(appUnlockMethodPage.isAppUnlockMethodPageLoaded(), "Verify if app unlocked page is displayed"); + SetPasscode setPasscode = appUnlockMethodPage.clickOnUsePasscode(); + + assertTrue(setPasscode.isSetPassCodePageLoaded(), "Verify if set passcode page is displayed"); + ConfirmPasscode confirmPasscode = setPasscode.enterPasscode(TestDataReader.readData("passcode"), target); + + assertTrue(confirmPasscode.isConfirmPassCodePageLoaded(), "Verify if confirm passcode page is displayed"); + HomePage homePage = confirmPasscode.confirmPasscode(TestDataReader.readData("passcode"), target); + + assertTrue(homePage.isHomePageLoaded(), "Verify if home page is displayed"); + + AddNewCardPage addNewCardPage = homePage.downloadCard(); + + assertTrue(addNewCardPage.isAddNewCardPageLoaded(), "Verify if add new card page is displayed"); + RetrieveIdPage retrieveIdPage = addNewCardPage.clickOnDownloadViaUin(); + + assertTrue(retrieveIdPage.isRetrieveIdPageLoaded(), "Verify if retrieve id page is displayed"); + retrieveIdPage.setEnterIdTextBox("00").clickOnGenerateCardButton(); + + assertTrue(retrieveIdPage.isIncorrectInputFormatErrorMessageDisplayed()); } - } diff --git a/injitest/src/main/java/io/mosip/test/mob/inji/testcases/VcDownloadAndVerifyUsingVidTest.java b/injitest/src/main/java/io/mosip/test/mob/inji/testcases/VcDownloadAndVerifyUsingVidTest.java index aaef9538e..5f46e34e9 100644 --- a/injitest/src/main/java/io/mosip/test/mob/inji/testcases/VcDownloadAndVerifyUsingVidTest.java +++ b/injitest/src/main/java/io/mosip/test/mob/inji/testcases/VcDownloadAndVerifyUsingVidTest.java @@ -4,6 +4,8 @@ import io.mosip.test.mob.inji.api.BaseTestCase; import io.mosip.test.mob.inji.pages.*; import io.mosip.test.mob.inji.utils.TestDataReader; + +import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertTrue; public class VcDownloadAndVerifyUsingVidTest extends BaseTest { @@ -41,7 +43,7 @@ public void downloadAndVerifyVcUsingVid() { assertTrue(homePage.isNameDisplayed(TestDataReader.readData("fullName")), "Verify if full name is displayed"); DetailedVcViewPage detailedVcViewPage = homePage.openDetailedVcView(TestDataReader.readData("fullName")); assertTrue(detailedVcViewPage.isDetailedVcViewPageLoaded(), "Verify if detailed Vc view page is displayed"); - assertTrue(detailedVcViewPage.isDetailedVcViewLoaded(TestDataReader.readData("fullName"))); + assertEquals(detailedVcViewPage.getNameInDetailedVcView(), TestDataReader.readData("fullName"), "Verify if full name is displayed"); } @Test @@ -100,5 +102,36 @@ public void downloadTwoVcDeleteOneUsingVid() throws InterruptedException { assertTrue(homePage.isNameDisplayed(TestDataReader.readData("fullName")), "Verify if full name is displayed"); } + + @Test + public void verifyInvalidVidErrorMessage() { + ChooseLanguagePage chooseLanguagePage = new ChooseLanguagePage(driver); + + assertTrue(chooseLanguagePage.isChooseLanguagePageLoaded(), "Verify if choose language page is displayed"); + WelcomePage welcomePage = chooseLanguagePage.clickOnSavePreference(); + + assertTrue(welcomePage.isWelcomePageLoaded(), "Verify if welcome page is loaded"); + AppUnlockMethodPage appUnlockMethodPage = welcomePage.clickOnSkipButton(); + + assertTrue(appUnlockMethodPage.isAppUnlockMethodPageLoaded(), "Verify if app unlocked page is displayed"); + SetPasscode setPasscode = appUnlockMethodPage.clickOnUsePasscode(); + + assertTrue(setPasscode.isSetPassCodePageLoaded(), "Verify if set passcode page is displayed"); + ConfirmPasscode confirmPasscode = setPasscode.enterPasscode(TestDataReader.readData("passcode"), target); + + assertTrue(confirmPasscode.isConfirmPassCodePageLoaded(), "Verify if confirm passcode page is displayed"); + HomePage homePage = confirmPasscode.confirmPasscode(TestDataReader.readData("passcode"), target); + + assertTrue(homePage.isHomePageLoaded(), "Verify if home page is displayed"); + AddNewCardPage addNewCardPage = homePage.downloadCard(); + + assertTrue(addNewCardPage.isAddNewCardPageLoaded(), "Verify if add new card page is displayed"); + RetrieveIdPage retrieveIdPage = addNewCardPage.clickOnDownloadViaUin(); + + assertTrue(retrieveIdPage.isRetrieveIdPageLoaded(), "Verify if retrieve id page is displayed"); + OtpVerificationPage otpVerification = retrieveIdPage.clickOnVid(target).setEnterIdTextBox("00").clickOnGenerateCardButton(); + + assertTrue(retrieveIdPage.isIncorrectInputFormatErrorMessageDisplayed()); + } } diff --git a/injitest/src/main/java/io/mosip/test/mob/inji/testcases/VerifyHistoryTest.java b/injitest/src/main/java/io/mosip/test/mob/inji/testcases/VerifyHistoryTest.java index 67c58ba69..909c587db 100644 --- a/injitest/src/main/java/io/mosip/test/mob/inji/testcases/VerifyHistoryTest.java +++ b/injitest/src/main/java/io/mosip/test/mob/inji/testcases/VerifyHistoryTest.java @@ -10,7 +10,7 @@ public class VerifyHistoryTest extends BaseTest { @Test - public void generateAndVerifyHistory() { + public void downloadVcAndVerifyHistory() { ChooseLanguagePage chooseLanguagePage = new ChooseLanguagePage(driver); assertTrue(chooseLanguagePage.isChooseLanguagePageLoaded(), "Verify if choose language page is displayed"); @@ -47,4 +47,160 @@ public void generateAndVerifyHistory() { assertTrue(historyPage.verifyHistory(BaseTestCase.uin, target)); } + + @Test + public void verifyActivationFailedRecordInHistory() throws InterruptedException { + ChooseLanguagePage chooseLanguagePage = new ChooseLanguagePage(driver); + + assertTrue(chooseLanguagePage.isChooseLanguagePageLoaded(), "Verify if choose language page is displayed"); + WelcomePage welcomePage = chooseLanguagePage.clickOnSavePreference(); + + assertTrue(welcomePage.isWelcomePageLoaded(), "Verify if welcome page is loaded"); + AppUnlockMethodPage appUnlockMethodPage = welcomePage.clickOnSkipButton(); + + assertTrue(appUnlockMethodPage.isAppUnlockMethodPageLoaded(), "Verify if app unlocked page is displayed"); + SetPasscode setPasscode = appUnlockMethodPage.clickOnUsePasscode(); + + assertTrue(setPasscode.isSetPassCodePageLoaded(), "Verify if set passcode page is displayed"); + ConfirmPasscode confirmPasscode = setPasscode.enterPasscode(TestDataReader.readData("passcode"), target); + + assertTrue(confirmPasscode.isConfirmPassCodePageLoaded(), "Verify if confirm passcode page is displayed"); + HomePage homePage = confirmPasscode.confirmPasscode(TestDataReader.readData("passcode"), target); + + assertTrue(homePage.isHomePageLoaded(), "Verify if home page is displayed"); + + AddNewCardPage addNewCardPage = homePage.downloadCard(); + + assertTrue(addNewCardPage.isAddNewCardPageLoaded(), "Verify if add new card page is displayed"); + RetrieveIdPage retrieveIdPage = addNewCardPage.clickOnDownloadViaUin(); + + assertTrue(retrieveIdPage.isRetrieveIdPageLoaded(), "Verify if retrieve id page is displayed"); + OtpVerificationPage otpVerification = retrieveIdPage.setEnterIdTextBox(TestDataReader.readData("uin")).clickOnGenerateCardButton(); + + assertTrue(otpVerification.isOtpVerificationPageLoaded(), "Verify if otp verification page is displayed"); + otpVerification.enterOtp(GetOtp(), target); + + assertTrue(homePage.isNameDisplayed(TestDataReader.readData("fullName")), "Verify if full name is displayed"); + MoreOptionsPage moreOptionsPage = homePage.clickOnMoreOptionsButton(); + + assertTrue(moreOptionsPage.isMoreOptionsPageLoaded(), "Verify if more options page is displayed"); + PleaseConfirmPopupPage pleaseConfirmPopupPage = moreOptionsPage.clickOnActivationPending(); + + assertTrue(pleaseConfirmPopupPage.isPleaseConfirmPopupPageLoaded(), "Verify if pop up page is displayed"); + OtpVerificationPage otpVerificationPage = pleaseConfirmPopupPage.clickOnConfirmButton(); + + assertTrue(otpVerificationPage.isOtpVerificationPageLoaded(), "Verify if otp verification page is displayed"); + otpVerificationPage.enterOtp(TestDataReader.readData("invalidOtp"), target); + + assertTrue(otpVerificationPage.somethingWetWrongInVcActivationDisplayed(), "Verify if Something is wrong. Please try again later displayed"); + assertTrue(otpVerificationPage.isCancelButtonDisplayed(), "Verify if cancel button is displayed"); + + HistoryPage historyPage = otpVerificationPage.clickOnCancelButton().ClickOnCloseButton().clickOnHistoryButton(); + assertTrue(historyPage.isHistoryPageLoaded(), "Verify if history page is displayed"); + assertTrue(historyPage.verifyActivationFailedRecordInHistory(TestDataReader.readData("uin"), target)); + } + + @Test + public void verifyActivationFailedRecordInHistoryFromDetailedView() throws InterruptedException { + ChooseLanguagePage chooseLanguagePage = new ChooseLanguagePage(driver); + + assertTrue(chooseLanguagePage.isChooseLanguagePageLoaded(), "Verify if choose language page is displayed"); + WelcomePage welcomePage = chooseLanguagePage.clickOnSavePreference(); + + assertTrue(welcomePage.isWelcomePageLoaded(), "Verify if welcome page is loaded"); + AppUnlockMethodPage appUnlockMethodPage = welcomePage.clickOnSkipButton(); + + assertTrue(appUnlockMethodPage.isAppUnlockMethodPageLoaded(), "Verify if app unlocked page is displayed"); + SetPasscode setPasscode = appUnlockMethodPage.clickOnUsePasscode(); + + assertTrue(setPasscode.isSetPassCodePageLoaded(), "Verify if set passcode page is displayed"); + ConfirmPasscode confirmPasscode = setPasscode.enterPasscode(TestDataReader.readData("passcode"), target); + + assertTrue(confirmPasscode.isConfirmPassCodePageLoaded(), "Verify if confirm passcode page is displayed"); + HomePage homePage = confirmPasscode.confirmPasscode(TestDataReader.readData("passcode"), target); + + assertTrue(homePage.isHomePageLoaded(), "Verify if home page is displayed"); + + AddNewCardPage addNewCardPage = homePage.downloadCard(); + + assertTrue(addNewCardPage.isAddNewCardPageLoaded(), "Verify if add new card page is displayed"); + RetrieveIdPage retrieveIdPage = addNewCardPage.clickOnDownloadViaUin(); + + assertTrue(retrieveIdPage.isRetrieveIdPageLoaded(), "Verify if retrieve id page is displayed"); + OtpVerificationPage otpVerification = retrieveIdPage.setEnterIdTextBox(TestDataReader.readData("uin")).clickOnGenerateCardButton(); + + assertTrue(otpVerification.isOtpVerificationPageLoaded(), "Verify if otp verification page is displayed"); + otpVerification.enterOtp(GetOtp(), target); + + assertTrue(homePage.isNameDisplayed(TestDataReader.readData("fullName")), "Verify if full name is displayed"); + DetailedVcViewPage detailedVcViewPage = homePage.openDetailedVcView(TestDataReader.readData("fullName")); + assertTrue(detailedVcViewPage.isDetailedVcViewPageLoaded(), "Verify if detailed Vc view page is displayed"); + PleaseConfirmPopupPage pleaseConfirmPopupPage = detailedVcViewPage.clickOnActivateButton(); + + assertTrue(pleaseConfirmPopupPage.isPleaseConfirmPopupPageLoaded(), "Verify if pop up page is displayed"); + OtpVerificationPage otpVerificationPage = pleaseConfirmPopupPage.clickOnConfirmButton(); + + assertTrue(otpVerificationPage.isOtpVerificationPageLoaded(), "Verify if otp verification page is displayed"); + otpVerificationPage.enterOtp(TestDataReader.readData("invalidOtp"), target); + + assertTrue(otpVerificationPage.somethingWetWrongInVcActivationDisplayed(), "Verify if Something is wrong. Please try again later displayed"); + assertTrue(otpVerificationPage.isCancelButtonDisplayed(), "Verify if cancel button is displayed"); + + otpVerificationPage.clickOnCancelButton(); + HistoryPage historyPage = detailedVcViewPage.clickOnCrossIcon().clickOnHistoryButton(); + assertTrue(historyPage.isHistoryPageLoaded(), "Verify if history page is displayed"); + assertTrue(historyPage.verifyActivationFailedRecordInHistory(TestDataReader.readData("uin"), target)); + } + + @Test + public void activateVcAndVerifyInHistory() throws InterruptedException { + ChooseLanguagePage chooseLanguagePage = new ChooseLanguagePage(driver); + + assertTrue(chooseLanguagePage.isChooseLanguagePageLoaded(), "Verify if choose language page is displayed"); + WelcomePage welcomePage = chooseLanguagePage.clickOnSavePreference(); + + assertTrue(welcomePage.isWelcomePageLoaded(), "Verify if welcome page is loaded"); + AppUnlockMethodPage appUnlockMethodPage = welcomePage.clickOnSkipButton(); + + assertTrue(appUnlockMethodPage.isAppUnlockMethodPageLoaded(), "Verify if app unlocked page is displayed"); + SetPasscode setPasscode = appUnlockMethodPage.clickOnUsePasscode(); + + assertTrue(setPasscode.isSetPassCodePageLoaded(), "Verify if set passcode page is displayed"); + ConfirmPasscode confirmPasscode = setPasscode.enterPasscode(TestDataReader.readData("passcode"), target); + + assertTrue(confirmPasscode.isConfirmPassCodePageLoaded(), "Verify if confirm passcode page is displayed"); + HomePage homePage = confirmPasscode.confirmPasscode(TestDataReader.readData("passcode"), target); + + assertTrue(homePage.isHomePageLoaded(), "Verify if home page is displayed"); + + AddNewCardPage addNewCardPage = homePage.downloadCard(); + + assertTrue(addNewCardPage.isAddNewCardPageLoaded(), "Verify if add new card page is displayed"); + RetrieveIdPage retrieveIdPage = addNewCardPage.clickOnDownloadViaUin(); + + assertTrue(retrieveIdPage.isRetrieveIdPageLoaded(), "Verify if retrieve id page is displayed"); + OtpVerificationPage otpVerification = retrieveIdPage.setEnterIdTextBox(TestDataReader.readData("uin")).clickOnGenerateCardButton(); + + assertTrue(otpVerification.isOtpVerificationPageLoaded(), "Verify if otp verification page is displayed"); + otpVerification.enterOtp(GetOtp(), target); + + assertTrue(homePage.isNameDisplayed(TestDataReader.readData("fullName")), "Verify if full name is displayed"); + MoreOptionsPage moreOptionsPage = homePage.clickOnMoreOptionsButton(); + + assertTrue(moreOptionsPage.isMoreOptionsPageLoaded(), "Verify if more options page is displayed"); + PleaseConfirmPopupPage pleaseConfirmPopupPage = moreOptionsPage.clickOnActivationPending(); + + assertTrue(pleaseConfirmPopupPage.isPleaseConfirmPopupPageLoaded(), "Verify if pop up page is displayed"); + OtpVerificationPage otpVerificationPage = pleaseConfirmPopupPage.clickOnConfirmButton(); + + assertTrue(otpVerificationPage.isOtpVerificationPageLoaded(), "Verify if otp verification page is displayed"); + otpVerificationPage.enterOtp(TestDataReader.readData("passcode"), target); + + assertTrue(moreOptionsPage.isVcActivatedForOnlineLogin(), "Verify if VC is activated"); + HistoryPage historyPage = moreOptionsPage.ClickOnCloseButton().clickOnHistoryButton(); + assertTrue(historyPage.isHistoryPageLoaded(), "Verify if history page is displayed"); + assertTrue(historyPage.verifyActivationSuccessfulRecordInHistory(TestDataReader.readData("uin"), target)); + + } + } diff --git a/injitest/src/main/resources/TestData.json b/injitest/src/main/resources/TestData.json index 34e91ecb0..eb50aca07 100644 --- a/injitest/src/main/resources/TestData.json +++ b/injitest/src/main/resources/TestData.json @@ -3,14 +3,17 @@ "passcode": "111111", "invalidOtp":"666666", "fullName": "TEST_FULLNAMEeng", - "idType": "National card", + "idType": "National Card", + "gender": "MLEeng", "status": "Valid", + "phoneNumber": "9876543210", "generatedOn": "9/5/2023", + "dateOfBirth": "01/01/1996", "aid": "10001100660000620230714065538", "setExcludedGroups":"AVT,PVT", "androidAppPath":"/Users/kamalsingh/TestAutomation/Inji/inji/injitest/apps/android/Inji.apk", "androidDevice": "nightwatch-android-11", - "uin": "5417524019", + "uin": "6920386351", "uin2": "5740943928", "uin2FullName": "fbgfhgfhghd" } \ No newline at end of file