rwda 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -8
  3. data/lib/rwda.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8fa64e5e4f10359dc3b9117c41885b6ff174ccbc
4
- data.tar.gz: 801e052f3a3b73c5aa6dbe34644336c2e10fafbf
3
+ metadata.gz: 885f2f088d5ef49db0f9890a25199bd21020b439
4
+ data.tar.gz: 74d9b7c556f79cc5498592141d768ef86053d0b9
5
5
  SHA512:
6
- metadata.gz: 67668b713794e7a89bebf6ac5a46554c9b6543a287f7889b291bafbf6e20e0fc8927db61cca50b78f89634b7c642cb8d4d40cbb301d16221c5bbfa6f66e7516c
7
- data.tar.gz: bfa2aa96a0f18fcfede50bc253c88fdfdd0e89485fe621f33b65d87bd73ba3dbd9ce197f23ef4c6236045f5145dccb4d473adbf4e74b99a2c67d30cfb2011d28
6
+ metadata.gz: d56be21d1157a3d2cbc7133d0c45a21f3a54dfa1d32508c7ecac0f41926421aa0d53e8e9290b0a8f576665a188b291dd6c2ae9be066bafb93e60e85b4c5a10fe
7
+ data.tar.gz: 98d45b20c1ed1683f1aba12b38c1c7a4773f0f0882f3573472894a8317bbb0f9e3526b624197fc960b3200bf2e2aa53c0dd8579d75efcec797855e841e6bf0dc
data/README.md CHANGED
@@ -1,8 +1,9 @@
1
1
  # Rwda
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rwda`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ A ruby client to implement FB WebDriverAgent and make iOS automation test fast and powerful.
4
+
5
+ It supports parallel automation with different devices'UDID.
4
6
 
5
- TODO: Delete this and the text above, and describe your gem
6
7
 
7
8
  ## Installation
8
9
 
@@ -22,18 +23,17 @@ Or install it yourself as:
22
23
 
23
24
  ## Usage
24
25
 
25
- TODO: Write usage instructions here
26
+ 1. Please define your devices info before use rwda.
26
27
 
27
- ## Development
28
+ 2. require 'rwda' in your tests(in hook if cucumber).
28
29
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+ 3. Browser.new().
30
31
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+ 4. Play with all APIs.
32
33
 
33
34
  ## Contributing
34
35
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/phoebusliang/rwda. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
-
36
+ Please report bug and requirements to make it useful.
37
37
 
38
38
  ## License
39
39
 
@@ -66,7 +66,7 @@ class Browser
66
66
  wait_for_response(request_route, 'get', '', lambda { |val| return val.to_json.include? 'true' })
67
67
  end
68
68
 
69
- def open_app(device, bundle_id = 'com.rea-group.reapa.internal')
69
+ def open_app(device, bundle_id)
70
70
  app_body = {:desiredCapabilities => {:bundleId => bundle_id}}
71
71
  response = HTTParty.post(DEVICE_URL[device], :body => app_body.to_json)
72
72
  @url = DEVICE_URL[device]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rwda
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - phoebusliang
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-02 00:00:00.000000000 Z
11
+ date: 2017-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler