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: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.
| *** 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 |
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.
--
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.