Sha256: f9570a98eb899ad59a464c15bba25d6947da35f421987c0ff0f74da202cb54ad

Contents?: true

Size: 1.96 KB

Versions: 15

Compression:

Stored size: 1.96 KB

Contents

# AppiumLibCore

[![Gem Version](https://badge.fury.io/rb/appium_lib_core.svg)](https://badge.fury.io/rb/appium_lib_core)


[![Build Status](https://travis-ci.org/appium/ruby_lib_core.svg?branch=master)](https://travis-ci.org/appium/ruby_lib_core)

# Documentation

- http://www.rubydoc.info/github/appium/ruby_lib_core

# Related library
- https://github.com/appium/ruby_lib

# How to start
## Run tests
### Unit Tests
Run unit tests which check each method and commands, URL, using the webmock.

```bash
$ bundle install
$ bundle exec parallel_test test/unit/
```

### Functional Tests
Run functional tests which require the Appium server and real device, Simulator/Emulator.

- Start Appium server
 ```bash
$ npm install -g appium
$ appium
```

- Conduct tests
 ```bash
$ bundle install
$ rake test:func:android # Andorid 
$ rake test:func:ios     # iOS
```

## Run a test case
1. Launch the Appium server locally.
2. Run the following script.

- `test.rb`
 ```ruby
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: {
    wait: 30
  }
}
@core = Appium::Core.for(self, opts) # create a core driver with `opts` and extend methods into `self`
@driver = @core.start_driver

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

- Run the script
```bash
# shell 1
$ appium

# shell 2
$ ruby test.rb
```

# Release
Use [appium_thor](https://github.com/appium/appium_thor) to release this gem.

```bash
$ thor bump # bumpy,
$ thor release
```

# Contribution
1. Fork it ( https://github.com/appium/ruby_lib_core/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create new Pull Request

# License
Apache License v2

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
appium_lib_core-1.9.0 README.md
appium_lib_core-1.8.4 README.md
appium_lib_core-1.8.3 README.md
appium_lib_core-1.8.2 README.md
appium_lib_core-1.8.1 README.md
appium_lib_core-1.8.0 README.md
appium_lib_core-1.7.2 README.md
appium_lib_core-1.7.1 README.md
appium_lib_core-1.7.0 README.md
appium_lib_core-1.6.0 README.md
appium_lib_core-1.5.1 README.md
appium_lib_core-1.5.0 README.md
appium_lib_core-1.4.2 README.md
appium_lib_core-1.4.1 README.md
appium_lib_core-1.4.0 README.md