Appium and RobotFramework? Saucelabs?

2,402 views
Skip to first unread message

Pedro Perez

unread,
Mar 7, 2014, 6:20:02 PM3/7/14
to robotframe...@googlegroups.com
Hey everyone,

Has anybody tried to get Appium (via Saucelabs) working with Robot Framework? It doesn't look like Selenium2Library will work with Appium, I'm looking into using this now: https://github.com/frankbp/robotframework-appiumandroidlibrary ... I'll let you know how it goes. 

Has anybody had any success with Appium and Robot Framework?

Thanks
Pedro

Matt J

unread,
Apr 2, 2014, 3:27:42 PM4/2/14
to robotframe...@googlegroups.com
Hi Pedro,

Did you get any where?

I've managed to use this library to Open an app and click on Icons(buttons), but only if there is a related text view or by knowing the index position.
This library is a great start, but it needs to be extended to include more of the Appium functions such as dealing with web views etc, unless I'm missing something.

Note. I tried using Selenium2Library keywords in conjuction with Open Application, but it complains that I haven't specified a Browser, which the AppiumAndroidLibrary doesn't ask for.

Matt

Pedro Perez

unread,
Apr 3, 2014, 11:32:13 AM4/3/14
to robotframe...@googlegroups.com
I didn't make any progress with that library--seemed too rigid.

I did however finally get an appium browser open with Selenium2Library. There are two different keywords that will do it:

1. open browser 
2. create webdriver

I got both working, but never got far enough to start clicking on elements...got pulled off on another project. I can post the syntax later tonight for both! You can see more info here: https://groups.google.com/forum/#!topic/robotframework-users/RYW2zARG4tY

Cheers
Pedro

Luis Lu

unread,
Apr 17, 2014, 3:44:36 AM4/17/14
to robotframe...@googlegroups.com

Dale King

unread,
May 1, 2014, 11:28:09 AM5/1/14
to robotframe...@googlegroups.com

I was able to get Appium working from the Robot Framework using the Selenium2Library. I used robotframework-maven-plugin to run robot framework within Maven and the robotframework-selenium2library-java library.

There is a bug in the selenium2library-java that means you need to pass in all 6 args to Open Browser (see MarkusBernhardt/robotframework-selenium2library-java#55)

I looked at the other libraries mentioned here but rejected them because they were Android specific (defeating the whole notion of Appium) or changed the set of keywords.

Here is example test file:

*** Settings ***
Library           Selenium2Library
Test Setup       Launch App
Test Teardown    Close Browser

*** Keywords ***
Launch App
    Open Browser  ${EMPTY}  iphone  ${EMPTY}   http://127.0.0.1:4723/wd/hub  device:iPhone Simulator,app:${App}  ${EMPTY}
   
*** Test Cases ***
DummyTest
    Capture Page Screenshot
    Click Element  name=Tap Here
    Capture Page Screenshot

Dale King

unread,
May 8, 2014, 9:18:59 AM5/8/14
to robotframe...@googlegroups.com
Of course this got blown out of the water with Appium 1.0 which now replaces standard Selenium drivers with Appium Client libraries.

David

unread,
May 10, 2014, 12:47:58 AM5/10/14
to robotframe...@googlegroups.com
Well, hopefully someone can write a RF wrapper library around the new Appium client library/binding in that case...

SUPPA Venugopal

unread,
Jul 24, 2014, 6:23:28 AM7/24/14
to robotframe...@googlegroups.com
Hi Matt,

I am using Appium with robot framework. I am automation an app  on my android. I am using windows. I am running the appium app and launch the application on my android. I am able use click element, input text key works. But Now I have to select a value from dropdown box, There is no inbuild command from appium to select from drop down. Please tell me some solution.

-Suppa.

Shanthi Latha

unread,
Jul 28, 2015, 7:20:11 PM7/28/15
to robotframework-users, venu...@gmail.com
Hello venugopal,
I am trying to write scripts using appium library in robot framework. Could you please share your scripts with me, so that I can start off quickly. Thank you.

- Shanthi

Mark Winspear

unread,
Jul 29, 2015, 5:31:56 AM7/29/15
to robotframework-users, guer...@gmail.com


On Friday, 7 March 2014 23:20:02 UTC, Pedro Perez wrote:
Hey everyone,

Has anybody tried to get Appium (via Saucelabs) working with Robot Framework? It doesn't look like Selenium2Library will work with Appium, I'm looking into using this now: https://github.com/frankbp/robotframework-appiumandroidlibrary ... I'll let you know how it goes.

Hi - If you follow the simple instructions on the saucel abs tutorial on www.robotframeworktutorial.com, you'll be running those tests on saucelabs in minutes 

siddhesh sahane

unread,
Jul 29, 2015, 5:58:50 AM7/29/15
to robotframework-users, venu...@gmail.com, latha.s...@gmail.com
Hi Shanthi, 

I tried following code and its working at my end, hope it will be useful to you as well 

*** Settings ***
Library AppiumLibrary
*** Variables ***
${REMOTE_URL} http://localhost:4723/wd/hub # URL to appium server
${PLATFORM_NAME} iOS
${PLATFORM_VERSION} 8.1
${DEVICE_NAME} iPhone Simulator
# Appium uses the *.app directory that is created by the ios build to provision the emulator.
${APP_LOCATION} /Users/horaceheaven/.jenkins/jobs/FunctionalTesting/workspace/build/Products/Debug-iphonesimulator/Todo.app
*** Keywords ***
Open App
Open Application ${REMOTE_URL} ${PLATFORM_NAME} ${PLATFORM_VERSION} ${DEVICE_NAME} ${APP_LOCATION}
Close All Apps
Close All Applications

Prashant Bharambe

unread,
Mar 24, 2016, 8:20:07 PM3/24/16
to robotframework-users
I am also try to learn this thing, Please let me know if there is any information site for Appium and Robot Framework integration and to run on actual Android device. 

-Prashant

Prashant

unread,
Mar 24, 2016, 8:27:03 PM3/24/16
to robotframework-users
Suppa, 

I am new to Appium with robot framework, Can you please help me to configure and run or launch the App. 

Or Help me to Get the site where i can get the information. 

Thanks, 

Taylor, Martin

unread,
Mar 31, 2016, 8:06:33 AM3/31/16
to bharambep...@gmail.com, robotframework-users

I have been using the https://github.com/jollychang/robotframework-appiumlibrary for a couple of months now to test our iOS app. It’s not too hard to get working in a basic sort of way but, because it’s based on Apple’s Instruments, it doesn’t scale well. When I try to run my full Regression test suite (several hundred test cases) it fails about every 30 or so tests due to an Instruments crash. I asked about this on the Appium user group and got no response from the community. I don’t see how ANYONE can do REAL iOS testing with Appium! Maybe you’ll have better luck with Android, since the problem appears to be iOS-specific.

 

Cheers,

Martin

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

Pedro Perez

unread,
Mar 31, 2016, 11:23:33 AM3/31/16
to cmta...@ti.com, bharambep...@gmail.com, robotframework-users
I actually haven't had good luck with Appium at scale. I would recommend against Appium and go with something else -- regardless if you're using RobotFramework or not -- I wouldn't use Appium except for very simple stuff.

--
You received this message because you are subscribed to a topic in the Google Groups "robotframework-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robotframework-users/mKWoKnXY_lY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robotframework-u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages