AppiumLibCore

Gem Version

Documentation

base library

How to start

Start Appium server

$ npm install -g appium
$ appium

Run tests

Unit Tests

$ bundle install
$ rake test:unit

Functional Tests

$ bundle install
$ rake test:func:android # Andorid. Require 
$ rake test:func:ios     # iOS

How to use this core library

  1. Launch the appium server locally.
  2. Run the following script.
require 'rubygems'
require 'appium_lib_core'

opts = {
       caps: {
         platformName: :ios,
         platformVersion: '11.0',
         deviceName: 'iPhone Simulator',
         automationName: 'XCUITest',
         app: '/path/to/MyiOS.app'
       },
       appium_lib: {
       }
     }
@core = Appium::Driver.new(opts)
@driver = @core.start_driver

# Launch iPhone Simulator and `MyiOS.app`
@driver.find_element(:accessibility_id, 'some accessibility') # find an element

Release

$ bundle exec thor bump # bumpy, bumpz
$ bundle exec thor release

License

Apache License v2