This framework, as it is, no longer includes the .app to test with, I have left the code as I felt that it may still be helpful to many.
Until I have another useful app to demonstrate Appium on iOS, I will leave this up.
- You are not 100% new to Ruby, iOS or Cucumber
- You have the necessary iOS tools in place and installed (i.e. XCode, Command Line Tools and some Simulators)
- You are aware of RVM (or similar tools)
- A well put together Appium framwork for testing iOS apps.
- Follows, generally, good Ruby and general automation practices.
- An idea of how a framework can be setup to handle a real world app.
- Some basic reporting, profile and device handling.
- A good way to see how elements can be located in Appium (I have deliberately used as many types as I could)
- A good example to see RSpec expectations in action.
- Good use of the Page Object Model
- Demonstrable use of the Ruby 'appium_lib'
- An all-in-one super duper framework.
- Something that you can 100% copy over for any app (though I suspect you'd be able to use most, as is).
- Will not handle the automatic start/stop of the Appium service.
- Will not handle Simulator/Device 'issues'.
- This framework will not magically resolve GPS issues.
- Hard coded to use Appium default launch arguments.
Drop me an email, [email protected] for any comments, suggestions, etc.
I like to use RVM to get my house in order...
- cd into appium-ios-example/
- rvm use ruby-2.3.0
- rvm gemset create appium-ios-example
- rvm gemset use appium-ios-example
- gem install nokogiri -v '1.8.1'
- bundle install
Then...
In the env.rb, set the desiredCapabilities appropriately.
cucumber features/basic_ios.feature -p html_report