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

can serenity.conf handle android and iOS capabilities in runTime through platformName? #3155

Open
AayushGLO opened this issue Jun 13, 2023 · 2 comments

Comments

@AayushGLO
Copy link

We need to run the same script either on iOS or on Android. Right now, we're using serenity.conf to run it locally and whenever we want to run it on Android, we comment out the iOS capabilities and whenever we want to run it on iOS, we comment out the Android capabilities.

Do we have any feature to configure Webdriver in appium similar to https://serenity-bdd.github.io/docs/guide/driver_config that we can use and handle both the OS using same serenity.conf

Below is the serenity.conf that I'm using

======================================
serenity {
project.name = POC Serenity,
requirements.dir = src/test/resources/features,
requirement.types = Domains; Feature,
console.colors = true,
reports.show.step.details = true,
take.screenshots = AFTER_EACH_STEP
},

webdriver {
driver = appium,
timeouts.implicitlywait = 30000
},

appium {
appWaitDuration = 40000,
fullReset = true,
noReset = false,
dontStopAppOnReset = true,
autoAcceptAlerts = true,
autoGrantPermissions = true,
simulatorStartupTimeout = 180000,
platformName = IOS
},

appium {
automationName = uiautomator2,
platformVersion = 12,
app = ${user.dir}/apps/sample.apk,
deviceName = Samsung Galaxy,
udid = vnjiernbvierbngiern
},

step.creation.strategy = legacy

==========================================

@AayushGLO
Copy link
Author

Serenity-Bdd team, is there any update on this?

@wakaleo
Copy link
Member

wakaleo commented Jun 18, 2023

Appium integration is largely community driven, so as with most open source projects. the fastest way to get a new feature implemented is to raise a PR. If you are not in a position to do this, and the feature is valuable for your organisation, then the best option is to get one of the commercial support packages.

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

No branches or pull requests

2 participants