Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I read mobile capabilites from serenity.conf #3000

Open
ikaryan opened this issue Dec 23, 2022 · 2 comments
Open

How can I read mobile capabilites from serenity.conf #3000

ikaryan opened this issue Dec 23, 2022 · 2 comments
Labels

Comments

@ikaryan
Copy link

ikaryan commented Dec 23, 2022

I am managing the mobile capabilities from the serenity.conf file of this way

capabilities {
  local {
    appium {
      hub = "http://127.0.0.1:4723/wd/hub"
      deviceName = Nexus_6
      platformVersion = 12
      platformName = Android
      app = "${user.dir}\\src\\test\\resources\\apps\\android\\MiBanco_Dev.apk"
      appPackage = com.popr.android.mibanco.debug
      appActivity = com.popr.android.mibanco.IntroScreen
      deviceOrientation = portrait
      captureScreenshots = true
      autoGrantPermissions = true
      automationName = UiAutomator2
    }
    Android {
      appium {
        deviceOrientation = portrait
        browserName = chrome
        deviceGroup = KOBITON
        deviceName = Galaxy S10
        platformVersion = 5.0.2
        platformName = Android
        app = "kobiton-store:v532107"
        groupId = 3960
        sessionName = Android automation test session
        automationName = UIAutomator2
        deviceGroup = ORGANIZATION
        fullReset = false
        kobitonConcurrence = true
        kobitonServerUrl = "https://epito.perez:d6ec449a-c91d-42bf-a9f6-ff8baef1b2fe@api.kobiton.com/wd/hub"
      }
    },
    iOS {
      deviceOrientation = portrait,
      browserName = chrome,
      deviceGroup = KOBITON,
      deviceName = "*",
      platformVersion = "*",
      platformName = iOS,
      app = "kobiton-store:v511601"
      sessionName = iOS automation test session
      automationName = UIAutomator2
      deviceGroup = ORGANIZATION
      fullReset = false
      kobitonConcurrence = true
      kobitonServerUrl = "https://pepito.perez:d6ec449a-c91d-42bf-a9f6-ff8baef1b2fe@api.kobiton.com/wd/hub"
    }
  }

and the way to identify if it is Local, Android or iOs is from cucumber scenario

`Scenario Outline: Making a new successful transfer
Given that requires to access to MI BANCO "os" app

Examples:
  | user    | language | id  | os      |
  | ocuky    | English  | 001 | Android |
  | mainbsm | Spanish  | 002 | iOs|`

But I don't know how to read the cucumber file, taking the value in OS column and based on this value, search it in serenity.conf and load the respective capabilities to open the respective device in the kobiton farm

@RemyaAnoop
Copy link

@ikaryan are you using Serenity framework with kobiton? I’m having some issue with hitting the app based on the page object model of Serenity.would like to get your help.

@ikaryan
Copy link
Author

ikaryan commented Feb 3, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants