Skip to content

Commit

Permalink
changes in config file (mosip#1422)
Browse files Browse the repository at this point in the history
* MOSIP-31384

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* resolve conflict

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* resolve conflict

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* MOSIP-31384

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* incorprated changes

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* INJIMOB-924 MOSIP-31927

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* resolve conflicts

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* MOSIP-31384

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* resolve conflicts

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* resolve conflicts

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* MOSIP-31874

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* resolve conflicts

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* MOSIP-31384

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* resolve conflicts

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* resolve conlifcts

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* resolve conflicts

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* updating to unblock deveops

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* MOSIP-32267 MOSIP-32204

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* MOSIP-32204

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* MOSIP-32580

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* MOSIP-32580 MOSIP-32641

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* resolve conflicts

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* MOSIP-32580

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* MOSIP-32641

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* resolve conflicts

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* reslove conflicts

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* reslove conflicts

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

---------

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>
  • Loading branch information
anup-nehe authored May 8, 2024
1 parent 2d0477d commit c75512e
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 9 deletions.
12 changes: 9 additions & 3 deletions injitest/androidConfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,21 @@ app: bs://114fb1285e1395a931b70fb713ca4cf1c4529e7e # BrowserStack Sample App
# Platforms object contains all the browser / device combinations you want to test on.
# Entire list available here -> (https://www.browserstack.com/list-of-browsers-and-platforms/automate)
platforms:
- platformName: android
deviceName: Samsung Galaxy S22 Ultra
platformVersion: 12.0
- platformName: android
deviceName: Google Pixel 7 Pro
platformVersion: 13.0
- platformName: android
deviceName: OnePlus 9
platformVersion: 11.0
- platformName: android
deviceName: Xiaomi Redmi Note 11
platformVersion: 11.0
- platformName: android
deviceName: Samsung Galaxy S21
platformVersion: 12.0
- platformName: android
deviceName: Motorola Moto G71 5G
platformVersion: 11.0

# =======================
# Parallels per Platform
Expand Down
15 changes: 13 additions & 2 deletions injitest/iosConfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,18 @@ platforms:
- platformName: ios
deviceName: iPhone 14 Pro Max
platformVersion: 16

- platformName: ios
deviceName: iPhone 13 Pro
platformVersion: 15
- platformName: ios
deviceName: iPhone 11
platformVersion: 14
- platformName: ios
deviceName: iPhone 15 Pro
platformVersion: 17
- platformName: ios
deviceName: iPhone 12 Pro Max
platformVersion: 14
# =======================
# Parallels per Platform
# =======================
Expand All @@ -50,7 +61,7 @@ platforms:
# Example 1 - If you have configured 3 platforms and set `parallelsPerPlatform` as 2, a total of 6 (2 * 3) parallel threads will be used on BrowserStack
#
# Example 2 - If you have configured 1 platform and set `parallelsPerPlatform` as 5, a total of 5 (1 * 5) parallel threads will be used on BrowserStack
parallelsPerPlatform: 5
parallelsPerPlatform: 1

source: java:appium-intellij:v1.1.4

Expand Down
13 changes: 11 additions & 2 deletions injitest/src/main/java/inji/pages/MoreOptionsPage.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package inji.pages;

import inji.utils.IosUtil;
import io.appium.java_client.AppiumDriver;
import io.appium.java_client.pagefactory.AndroidFindBy;
import io.appium.java_client.pagefactory.iOSXCUITFindBy;
Expand All @@ -12,7 +11,7 @@ public class MoreOptionsPage extends BasePage {
// @iOSXCUITFindBy(accessibility = "removeFromWallet")
// private WebElement removeFromWalletButton;

@AndroidFindBy(uiAutomator = "new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().description(\"removeFromWallet\"))")
@AndroidFindBy(uiAutomator = "new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().description(\"outlined-delete-icon\"))")
@iOSXCUITFindBy(accessibility = "removeFromWallet")
private WebElement removeFromWalletButton;

Expand Down Expand Up @@ -48,6 +47,12 @@ public class MoreOptionsPage extends BasePage {
@iOSXCUITFindBy(accessibility = "activated")
private WebElement activated;

@AndroidFindBy(accessibility = "enableVerification")
@iOSXCUITFindBy(accessibility = "enableVerification")
private WebElement enableVerification;



public MoreOptionsPage(AppiumDriver driver) {
super(driver);
}
Expand Down Expand Up @@ -92,4 +97,8 @@ public boolean isSomethingIsWrongPopupVisible() {
public boolean isVcActivatedDisplayed() {
return this.isElementDisplayed(activatedForOnlineLoginButton);
}

public void clickOnActivationButton() {
clickOnElement(enableVerification);
}
}
2 changes: 2 additions & 0 deletions injitest/src/main/java/inji/pages/SettingsPage.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package inji.pages;

import inji.constants.Target;
import inji.utils.IosUtil;
import io.appium.java_client.AppiumDriver;
import io.appium.java_client.pagefactory.AndroidFindBy;
import io.appium.java_client.pagefactory.iOSXCUITFindBy;
Expand Down Expand Up @@ -108,6 +109,7 @@ public boolean isSettingPageLoadedInFilipion() {
}

public UnlockApplicationPage clickOnLogoutButton() {
IosUtil.scrollToElement(driver,100,800,100,200);
clickOnElement(logoutButton);
return new UnlockApplicationPage(driver);
}
Expand Down
2 changes: 2 additions & 0 deletions injitest/src/main/java/inji/pages/SunbirdLoginPage.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package inji.pages;

import inji.utils.IosUtil;
import io.appium.java_client.AppiumDriver;
import io.appium.java_client.HidesKeyboard;
import io.appium.java_client.pagefactory.AndroidFindBy;
Expand Down Expand Up @@ -256,6 +257,7 @@ public String getGenderValueForSunbirdCard() {
}

public String getEmailIdValueForSunbirdCard() {
IosUtil.scrollToElement(driver, 171, 2149, 625, 1944);
basePage.retrieToGetElement(emailIdValue);
return this.getTextFromLocator(emailIdValue);
}
Expand Down
2 changes: 1 addition & 1 deletion injitest/src/main/java/inji/utils/TestDataReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private static String getValueForKey(String key) {
case "uin":
return UinGenerationUtil.getRandomUin();
case "uin2":
return "5945769861";
return "2162743612";
case "uin2FullName":
return "TEST_FULLNAMEeng";
case "newEnv":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,6 @@ public void downloadAndActiveVcUsingUinViaEsignet() throws InterruptedException

detailedVcViewPage.clickOnBackArrow();
assertTrue(detailedVcViewPage.isEsignetLogoDisplayed(), "Verify if detailed Vc esignet logo is displayed");

}

}

0 comments on commit c75512e

Please sign in to comment.