CucumberWithSerenity + Appium + IOS Native app sample project

3,336 views
Skip to first unread message

Rahul

unread,
Aug 9, 2017, 4:52:41 AM8/9/17
to Serenity BDD Users Group
Hello All, 
I have automated tests with: CucumberWithSerenity (1.2.2-rc1) + Appium + Native Android
Following is my serenities.properties file

webdriver.driver=appium
appium.hub = http://127.0.0.1:4723/wd/hub
appium.platformName = Android
appium.platformVersion = 8.0.0
appium.deviceName =emulator-5554
appium.app=/users/rahulk/documents/apks/testapp.apk
serenity.take.screenshots=FOR_FAILURES

However, when I use
webdriver.driver=appium
appium.hub = http://127.0.0.1:4723/wd/hub
appium.platformName = IOS
appium.platformVersion = 10.2
appium.deviceName =auto
appium.app=/users/rahulk/documents/apks/testapp.app
serenity.take.screenshots=FOR_FAILURES

I get all sorts of puzzling errors
e.g: 
1. driver must be specified, so i added mvn clean verify -Dwebdriver.driver=appium
then i get another error 
2. platformName must be either IOS or ANDROID so i added mvn clean verify -Dwebdriver.driver=appium -DplatformName=IOS
and so and so forth for all the information in the properties file. 
after doing all that, i get error, appium driver could not instantiated.

@vikramvi created a sample project for android
Can you please create something for IOS.

I know currently there were lot changes with respect to Appium (1.6.4 +) and Apple now supporting XCUITest.

I am able to launch the application with Cucumber + Appium. however i cannot enjoy the benefits of Serenity (including the reports). 
Can someone please create a sample project with CucumberWithSerenity + Appium + IOS Native app?

80Vikram

unread,
Aug 9, 2017, 10:57:55 AM8/9/17
to Serenity BDD Users Group
Hi Rahul,

For time being I'm not using Serenity for mobile native app automation

https://github.com/serenity-bdd/serenity-core/issues/672 , refer to this for details

Regards,
Vikram

Rahul

unread,
Aug 10, 2017, 6:59:23 AM8/10/17
to Serenity BDD Users Group
Hi Vikram, 
Can you let me know what are you currently using?

Preferred reason to use serenity for myself
1. No need to initalize pages as I am using POM pattern. 
2. Awesome reports with Jenkins Plugin. 

Is there any other tool which are using to accomplish the same thing?

Regards, 
Rahul

80Vikram

unread,
Aug 30, 2017, 8:55:29 AM8/30/17
to Serenity BDD Users Group
Hi Rahul,

Some update on this 


Serenity has started supporting latest Appium Java.

Let me try to update the repo with sample iOS project as well this week & update back.

Regards,
Vikram

Sibin

unread,
May 7, 2018, 6:46:49 PM5/7/18
to Serenity BDD Users Group
Hi Guys,
We are evaluating Serenity BDD to start test automation for web and mobile (native iOS and android) at work. Just wondering, by choosing Serenity, are we going to miss latest features of Selenium and Appium? In other words does Serenity supports latest versions of both testing tools?
Thanks
Sibin

Sibin

unread,
May 7, 2018, 6:54:54 PM5/7/18
to Serenity BDD Users Group
I am also trying make a POC using Cucumber with Serenity and Appium for iOS and Android. Have you any luck with running iOS test on a real device?

Thanks

John Smart

unread,
May 8, 2018, 2:23:50 AM5/8/18
to Sibin, Serenity BDD Users Group
Serenity always uses the latest version of Selenium, and you can easily access the Selenium driver instance if needed. There are quite a lot of people using Serenity for mobile testing with Appium - ask here or on https://serenity-bdd.rocket.chat.

On Mon, 7 May 2018 at 23:54, Sibin <sib...@gmail.com> wrote:
I am also trying make a POC using Cucumber with Serenity and Appium for iOS and Android. Have you any luck with running iOS test on a real device?

Thanks

--
You received this message because you are subscribed to the Google Groups "Serenity BDD Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-use...@googlegroups.com.
To post to this group, send an email to thucydid...@googlegroups.com.
Visit this group at https://groups.google.com/group/thucydides-users.
For more options, visit https://groups.google.com/d/optout.
--
___________________________________________________
John Smart | Wakaleo Consulting  |  +44 7398 832273
Making smart teams collaborate better
http://johnfergusonsmart.com  |  john....@wakaleo.com
___________________________________________________

We love breaking down silos and helping smart teams collaborate better! Ask about our tailored on-site workshops in Agile Product Planning, BDD Requirements Discovery,  BDD, TDD and Clean Coding, and Advanced BDD Test Automation.

Need some help with Serenity BDD? Check out our Serenity BDD training and support packages here.
___________________________________________________

80Vikram

unread,
May 9, 2018, 5:39:18 AM5/9/18
to Serenity BDD Users Group
Sibin,

You're ask very relevant question.

You can refer to my project  https://github.com/vikramvi/AppiumSerenityPOC

- I'm user of this awesome project since Dec. 2013 and will continue using it till I'm doing automation work :)

- It saves loads of money for your company as you / team don't need to write, maintain & enhance framework around selenium & appium

- You / team can get started with automation from day 1

- has got amazing training, documentation & community

- It's like x-mas tree, you don't grow tree but get buy it and decorate per your likings :)

- Supports BDD which is most critical part of IT project to avoid "You Burn, I Scrape"

I hope you're convinced by now.

Regards,
Vikram
Reply all
Reply to author
Forward
0 new messages