appium_console 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/ios_v_android.md +11 -0
- data/lib/appium_console.rb +9 -1
- data/lib/appium_console/version.rb +2 -2
- data/osx.md +31 -1
- data/readme.md +2 -1
- data/release_notes.md +7 -0
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
YWY5N2Q4NzZjZDgyYTIyZTRkYzM3ZmM3NjM3ZWNjNDBjNTI1NTkxZTQ1ZTYx
|
10
|
-
NTc1MDZjZjRlMDZkZWNkMTM4MTk0ODg4NTBhYTI0YTI0MDZkYzU4YTQ1YjYz
|
11
|
-
ZjcxMTJiZTY2NTI0YzUxMTNkNTdmYTFlYThhYjFmNWQ0NDU2Nzc=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NTkxNTQ3YTNkMWI1NWU5ODFkN2QzM2YyZTFmZTVjMTRkMjBlZDc0YmU1ODkx
|
14
|
-
N2JmNTk5NTdmOTViM2U2NGI2ZjU2NDUwMGJjMWI0MjVhNzkwNDM4ODQ2N2Uw
|
15
|
-
ZmQxYmNmNDA4MThjZGZlMzYwNTg3YWM5MDU3ZDEwNGNmNjBmNTg=
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 40771e9fa754c4149e36a1d77b74723be93b2a2d
|
4
|
+
data.tar.gz: 699f6691404a64f22a13c0b1c0742841f7f179a0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9fcf217c4c1dc90f35a0b5eb3b23baba9cd8ee01ede172bb3944138b5a69b41b418b9470cfcc126c7a5b1fa1bb28cfcb6ce125e8b824faf1c65570a0c8e20670
|
7
|
+
data.tar.gz: 5acad561d5da6a49ee5056f0e8df3c444b9ff78cf1097536a6d0fccd2cc0a07fd4e1265b775361c5f7f3c8be7df5ded5b83fc77968d780a9a2a1b0c6565de3f4
|
data/ios_v_android.md
CHANGED
@@ -37,3 +37,14 @@ Android
|
|
37
37
|
iOS .name returns the [accessibility attribute](http://developer.apple.com/library/ios/#documentation/ToolsLanguages/Reference/UIAElementClassReference/UIAElement/UIAElement.html#//apple_ref/javascript/instm/UIAElement/name) if it's set. if not set, the string value is used.
|
38
38
|
|
39
39
|
Android .name returns the accessibility attribute and nothing if it's not set.
|
40
|
+
|
41
|
+
#### More options button
|
42
|
+
|
43
|
+
The android `options` button will be hidden if the device has a hardware menu button. To work around this:
|
44
|
+
|
45
|
+
```ruby
|
46
|
+
# see abs__action_menu_overflow_description in ActionBarSherlock
|
47
|
+
# click more options if it exists. if it doesn't then the device has a hardware menu button that must be pressed instead.
|
48
|
+
exists { name 'more options' } ? name('more options').click : mobile(:keyevent, keycode: 82)
|
49
|
+
```
|
50
|
+
|
data/lib/appium_console.rb
CHANGED
@@ -7,10 +7,18 @@ module Appium; end unless defined? Appium
|
|
7
7
|
|
8
8
|
module Appium::Console
|
9
9
|
require 'appium_lib'
|
10
|
-
load_appium_txt file: Dir.pwd + '/appium.txt'
|
10
|
+
to_require = load_appium_txt file: Dir.pwd + '/appium.txt', verbose: true
|
11
11
|
|
12
12
|
start = File.expand_path '../start.rb', __FILE__
|
13
|
+
# to do:
|
14
|
+
# -e switch to pass require string
|
13
15
|
cmd = ['-r', start]
|
16
|
+
|
17
|
+
if to_require && !to_require.empty?
|
18
|
+
load_files = to_require.map { |f| %(require "#{f}";) }.join "\n"
|
19
|
+
cmd += [ '-e', load_files ]
|
20
|
+
end
|
21
|
+
|
14
22
|
$stdout.puts "pry #{cmd.join(' ')}"
|
15
23
|
Pry::CLI.parse_options cmd
|
16
24
|
end # module Appium::Console
|
@@ -2,6 +2,6 @@
|
|
2
2
|
# Define Appium module so version can be required directly.
|
3
3
|
module Appium; end unless defined? Appium
|
4
4
|
module Appium::Console
|
5
|
-
VERSION = '0.5.
|
6
|
-
DATE = '2013-
|
5
|
+
VERSION = '0.5.2' unless defined? ::Appium::Console::VERSION
|
6
|
+
DATE = '2013-07-26' unless defined? ::Appium::Console::DATE
|
7
7
|
end
|
data/osx.md
CHANGED
@@ -4,6 +4,9 @@ This document is written for OS X 10.8.3 or better. iOS testing requires OS X. A
|
|
4
4
|
|
5
5
|
Install `Xcode` from the Mac app store and the command line build tools (Xcode -> Preferences -> Downloads).
|
6
6
|
|
7
|
+
- Install Java 7 if there's no Java on the system.
|
8
|
+
- [JDK 7](http://www.oracle.com/technetwork/java/javase/downloads/index.html)
|
9
|
+
|
7
10
|
- Ensure you have Ruby 1.9.3-p392 or better (1.8 is not supported). Install the latest stable patch release of Ruby 1.9.3 (not Ruby 2.0).
|
8
11
|
|
9
12
|
`$ \curl -L https://get.rvm.io | bash -s stable --ruby=1.9.3`
|
@@ -15,6 +18,13 @@ $ rvm list
|
|
15
18
|
$ rvm --default use 1.9.3
|
16
19
|
```
|
17
20
|
|
21
|
+
- Installing Ruby 2.0 instead
|
22
|
+
|
23
|
+
```
|
24
|
+
$ rvm get stable
|
25
|
+
$ rvm install 2.0.0
|
26
|
+
```
|
27
|
+
|
18
28
|
- Check that it's installed properly by printing the ruby version.
|
19
29
|
|
20
30
|
`$ ruby --version`
|
@@ -87,6 +97,11 @@ If you see config errors, try cleaning git. `git clean -dfx; git reset --hard`
|
|
87
97
|
|
88
98
|
You can also reset by platform. `./reset.sh --android`
|
89
99
|
|
100
|
+
|
101
|
+
- Authorize for iOS testing. Must run reset.sh as mentioned above before running the grunt task.
|
102
|
+
|
103
|
+
> sudo \`which grunt\` authorize
|
104
|
+
|
90
105
|
- Start appium.
|
91
106
|
|
92
107
|
`node server.js`
|
@@ -122,7 +137,7 @@ If there are any problems viewing or downloading the packages, go to `Packages -
|
|
122
137
|
|
123
138
|
![](img/packages.png)
|
124
139
|
|
125
|
-
- Create a new Android virtual device that uses the Intel image. Ensure `Use Host GPU` is checked.
|
140
|
+
- Create a new Android virtual device that uses the Intel image. Ensure `Use Host GPU` is checked. Set `VM Heap` to `64`. `32` is too small.
|
126
141
|
|
127
142
|
`android avd`
|
128
143
|
|
@@ -149,3 +164,18 @@ If you see `error: protocol fault (no status)` just keep running the command unt
|
|
149
164
|
- Start appium console
|
150
165
|
|
151
166
|
`arc`
|
167
|
+
|
168
|
+
- See [running on OS X](https://github.com/appium/appium/blob/master/docs/running-on-osx.md)
|
169
|
+
|
170
|
+
When using `Appium.app` make sure to set Appium -> Preferences... -> Check "Use External Appium Package" and set it to the path of Appium cloned from GitHub.
|
171
|
+
|
172
|
+
Fix permission errors. npm shouldn't require sudo.
|
173
|
+
|
174
|
+
```bash
|
175
|
+
brew uninstall node
|
176
|
+
brew install node
|
177
|
+
rm -rf ./node_modules # run from the appium folder
|
178
|
+
rm -rf /Users/`whoami`/.npm
|
179
|
+
./reset.sh --ios
|
180
|
+
./reset.sh --android
|
181
|
+
```
|
data/readme.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#### Ruby Console for Appium [![Dependency Status](https://gemnasium.com/appium/ruby_console.png)](https://gemnasium.com/appium/ruby_console)
|
1
|
+
#### Ruby Console for Appium [![Gem Version](https://badge.fury.io/rb/appium_console.png)](http://rubygems.org/gems/appium_console)[![Dependency Status](https://gemnasium.com/appium/ruby_console.png)](https://gemnasium.com/appium/ruby_console)
|
2
2
|
|
3
3
|
- [appium_console on RubyGems](https://rubygems.org/gems/appium_console)
|
4
4
|
|
@@ -83,3 +83,4 @@ Reset Appium after pulling the latest changes.
|
|
83
83
|
- [Overview](https://github.com/appium/ruby_lib/blob/master/docs/docs.md)
|
84
84
|
- [Android methods](https://github.com/appium/ruby_lib/blob/master/docs/android_docs.md)
|
85
85
|
- [iOS methods](https://github.com/appium/ruby_lib/blob/master/docs/ios_docs.md)
|
86
|
+
- [Appium docs](https://github.com/appium/appium/tree/master/docs)
|
data/release_notes.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
#### v0.5.1 2013-05-24
|
2
|
+
|
3
|
+
- [3d9aef1](https://github.com/appium/ruby_console/commit/3d9aef1458d0874c5c740faf8e41086ee65da86d) Release 0.5.1
|
4
|
+
- [7242c5e](https://github.com/appium/ruby_console/commit/7242c5e72f9057fd18efa726077f78999e0f53e3) Update appium_console.gemspec
|
5
|
+
- [f9d8b70](https://github.com/appium/ruby_console/commit/f9d8b7031425ab742285e0513520ca17bbbf2cde) Update readme.md
|
6
|
+
|
7
|
+
|
1
8
|
#### v0.5.0 2013-05-24
|
2
9
|
|
3
10
|
- [2734fda](https://github.com/appium/ruby_console/commit/2734fdabed2802e15f161bf81ba56dc51cd76ce3) Release 0.5.0
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appium_console
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- code@bootstraponline.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: appium_lib
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 0.3.13
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.3.13
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -87,19 +87,18 @@ require_paths:
|
|
87
87
|
- lib
|
88
88
|
required_ruby_version: !ruby/object:Gem::Requirement
|
89
89
|
requirements:
|
90
|
-
- -
|
90
|
+
- - '>='
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: 1.9.3
|
93
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- -
|
95
|
+
- - '>='
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '0'
|
98
98
|
requirements: []
|
99
99
|
rubyforge_project:
|
100
|
-
rubygems_version: 2.0.
|
100
|
+
rubygems_version: 2.0.6
|
101
101
|
signing_key:
|
102
102
|
specification_version: 4
|
103
103
|
summary: Appium Ruby Console
|
104
104
|
test_files: []
|
105
|
-
has_rdoc:
|