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.
- checksums.yaml +4 -4
- data/README.md +8 -8
- data/lib/rwda.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 885f2f088d5ef49db0f9890a25199bd21020b439
|
|
4
|
+
data.tar.gz: 74d9b7c556f79cc5498592141d768ef86053d0b9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d56be21d1157a3d2cbc7133d0c45a21f3a54dfa1d32508c7ecac0f41926421aa0d53e8e9290b0a8f576665a188b291dd6c2ae9be066bafb93e60e85b4c5a10fe
|
|
7
|
+
data.tar.gz: 98d45b20c1ed1683f1aba12b38c1c7a4773f0f0882f3573472894a8317bbb0f9e3526b624197fc960b3200bf2e2aa53c0dd8579d75efcec797855e841e6bf0dc
|
data/README.md
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# Rwda
|
|
2
2
|
|
|
3
|
-
|
|
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
|
-
|
|
26
|
+
1. Please define your devices info before use rwda.
|
|
26
27
|
|
|
27
|
-
|
|
28
|
+
2. require 'rwda' in your tests(in hook if cucumber).
|
|
28
29
|
|
|
29
|
-
|
|
30
|
+
3. Browser.new().
|
|
30
31
|
|
|
31
|
-
|
|
32
|
+
4. Play with all APIs.
|
|
32
33
|
|
|
33
34
|
## Contributing
|
|
34
35
|
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
Please report bug and requirements to make it useful.
|
|
37
37
|
|
|
38
38
|
## License
|
|
39
39
|
|
data/lib/rwda.rb
CHANGED
|
@@ -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
|
|
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.
|
|
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-
|
|
11
|
+
date: 2017-03-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|