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't pass automationName capability needed for iOS 10.x automation #659

Closed
vikramvi opened this issue Jan 23, 2017 · 8 comments
Closed

Comments

@vikramvi
Copy link
Member

@wakaleo

With iOS 10.X one need to pass automationName = "XCUITest"

But this flag is missing in serenity framework, please fix this problem.

Thanks in advance.

Regards,
Vikram

@wakaleo
Copy link
Member

wakaleo commented Jan 23, 2017

Could you provide a code sample of how this would be added, or better still, a pull request ;-)

@vikramvi
Copy link
Member Author

vikramvi commented Jan 23, 2017

@wakaleo I've below entries in appium.txt

[caps]
automationName = "XCUITest"
#platformName
platformName = "iOS"
xcodeConfigFile = "/Users/vikram-anna/..../myconfig.xcconfig"
app = "/Users/vikram-anna/.../AppUnderTest.ipa"
#deviceName random comment
deviceName = "Vikram's iPhone"
platformVersion = "10.2"
udid = "97d9bb791384407fa67dxxxxxxx"

With these I can launch app in REPL mode with help of arc. I'm struck how to pass this through serenity.properties ?

Let me have a look at framework code and see if I can submit PR

@vikramvi
Copy link
Member Author

@wakaleo Please find some update on this issue

had below in my serenity.properties

webdriver.driver= appium
#automationName = "XCUITest"
appium.platformName = iOS
appium.platformVersion = 10.2
appium.deviceName = iPhone SE
appium.app = /Users/../serenityAppiumFlipkart/SauceGuineaPig.app
appium.hub = http://localhost:4723/wd/hub

The sample script worked even with and without automationName capability, but I'm not sure how and why ?

can you please clarify.

I've committed code to existing demo appium and serenity project

vikramvi/AppiumSerenityPOC@c87bedc

@pisarenco92
Copy link

@vikramvi Add the:
appium.automationName = XCUITest capability

@vikramvi
Copy link
Member Author

@pisarenco92 Thanks but strangely I could able to launch .app on iOS Simulator running with 10.2.

I'm wondering if this is taken internally by framework itself ?

@cliviu
Copy link
Collaborator

cliviu commented Jan 24, 2017

Hi @vikramvi . For clarification : all properties which are starting with "appium" in serenity.properties will be forwarded to the appium driver. So, for example setting in serenity.properties appium.automationName = XCUITest will have as end effect setting the property automationName=XCUITest in the Appium driver capabilities.

@vikramvi
Copy link
Member Author

@cliviu Thanks for detailed clarification.

I'll keep this issue open and submit PR for documentation for the benefit of others; who refer to Appium related queries in it.

vikramvi pushed a commit to vikramvi/serenity-documentation that referenced this issue Feb 3, 2017
@vikramvi
Copy link
Member Author

vikramvi commented Feb 3, 2017

closing as PR is submitted serenity-bdd/serenity-documentation#102

@vikramvi vikramvi closed this as completed Feb 3, 2017
wakaleo added a commit to serenity-bdd/serenity-documentation that referenced this issue Feb 6, 2017
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

4 participants