smart_monkey 0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +1 -0
- data/Gemfile +17 -0
- data/LICENSE.txt +21 -0
- data/README.md +77 -0
- data/Rakefile +57 -0
- data/Troubleshooting.md +61 -0
- data/VERSION +1 -0
- data/bin/smart_monkey +53 -0
- data/lib/bootstrap/css/bootstrap-responsive.css +1109 -0
- data/lib/bootstrap/css/bootstrap-responsive.min.css +9 -0
- data/lib/bootstrap/css/bootstrap.css +6167 -0
- data/lib/bootstrap/css/bootstrap.min.css +9 -0
- data/lib/bootstrap/img/glyphicons-halflings-white.png +0 -0
- data/lib/bootstrap/img/glyphicons-halflings.png +0 -0
- data/lib/bootstrap/js/bootstrap.js +2280 -0
- data/lib/bootstrap/js/bootstrap.min.js +6 -0
- data/lib/ios_device_log/deviceconsole +0 -0
- data/lib/smart_monkey.rb +2 -0
- data/lib/smart_monkey/command_helper.rb +71 -0
- data/lib/smart_monkey/monkey_runner.rb +549 -0
- data/lib/smart_monkey/templates/automation_result.xsl +61 -0
- data/lib/smart_monkey/templates/index.html.erb +77 -0
- data/lib/smart_monkey/templates/result.html.erb +110 -0
- data/lib/smart_monkey/templates/result_view.coffee +160 -0
- data/lib/smart_monkey/templates/result_view.js +250 -0
- data/lib/ui-auto-monkey/UIAutoMonkey.js +470 -0
- data/lib/ui-auto-monkey/custom.js +73 -0
- data/lib/ui-auto-monkey/handler/buttonHandler.js +111 -0
- data/lib/ui-auto-monkey/handler/wbScrollViewButtonHandler.js +114 -0
- data/lib/ui-auto-monkey/tuneup/LICENSE +20 -0
- data/lib/ui-auto-monkey/tuneup/assertions.js +402 -0
- data/lib/ui-auto-monkey/tuneup/image_asserter +26 -0
- data/lib/ui-auto-monkey/tuneup/image_assertion.js +65 -0
- data/lib/ui-auto-monkey/tuneup/image_assertion.rb +102 -0
- data/lib/ui-auto-monkey/tuneup/lang-ext.js +76 -0
- data/lib/ui-auto-monkey/tuneup/screen.js +11 -0
- data/lib/ui-auto-monkey/tuneup/test.js +71 -0
- data/lib/ui-auto-monkey/tuneup/test_runner/abbreviated_console_output.rb +38 -0
- data/lib/ui-auto-monkey/tuneup/test_runner/colored_console_output.rb +27 -0
- data/lib/ui-auto-monkey/tuneup/test_runner/console_output.rb +17 -0
- data/lib/ui-auto-monkey/tuneup/test_runner/preprocessor.rb +25 -0
- data/lib/ui-auto-monkey/tuneup/test_runner/run +343 -0
- data/lib/ui-auto-monkey/tuneup/test_runner/xunit_output.rb +114 -0
- data/lib/ui-auto-monkey/tuneup/tuneup.js +6 -0
- data/lib/ui-auto-monkey/tuneup/tuneup_js.podspec +52 -0
- data/lib/ui-auto-monkey/tuneup/uiautomation-ext.js +965 -0
- data/smart_monkey.gemspec +112 -0
- data/spec/spec_helper.rb +12 -0
- metadata +192 -0
@@ -0,0 +1,112 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{smart_monkey}
|
8
|
+
version_path = File.join(File.dirname(__FILE__), "VERSION")
|
9
|
+
s.version = File.read(version_path)
|
10
|
+
|
11
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
|
+
s.authors = ["vigossjjj"]
|
13
|
+
s.date = %q{2015-06-01}
|
14
|
+
s.default_executable = %q{smart_monkey}
|
15
|
+
s.description = %q{iOS Monkey test tool base on UIAutomation.}
|
16
|
+
s.email = %q{jiangyunpeng@58.com}
|
17
|
+
s.executables = ["smart_monkey"]
|
18
|
+
s.extra_rdoc_files = [
|
19
|
+
"LICENSE.txt",
|
20
|
+
"README.md",
|
21
|
+
]
|
22
|
+
s.files = [
|
23
|
+
".rspec",
|
24
|
+
"Gemfile",
|
25
|
+
"LICENSE.txt",
|
26
|
+
"README.md",
|
27
|
+
"Rakefile",
|
28
|
+
"Troubleshooting.md",
|
29
|
+
"VERSION",
|
30
|
+
"bin/smart_monkey",
|
31
|
+
"smart_monkey.gemspec",
|
32
|
+
"lib/bootstrap/css/bootstrap-responsive.css",
|
33
|
+
"lib/bootstrap/css/bootstrap-responsive.min.css",
|
34
|
+
"lib/bootstrap/css/bootstrap.css",
|
35
|
+
"lib/bootstrap/css/bootstrap.min.css",
|
36
|
+
"lib/bootstrap/img/glyphicons-halflings-white.png",
|
37
|
+
"lib/bootstrap/img/glyphicons-halflings.png",
|
38
|
+
"lib/bootstrap/js/bootstrap.js",
|
39
|
+
"lib/bootstrap/js/bootstrap.min.js",
|
40
|
+
"lib/ios_device_log/deviceconsole",
|
41
|
+
"lib/smart_monkey.rb",
|
42
|
+
"lib/smart_monkey/command_helper.rb",
|
43
|
+
"lib/smart_monkey/monkey_runner.rb",
|
44
|
+
"lib/smart_monkey/templates/automation_result.xsl",
|
45
|
+
"lib/smart_monkey/templates/index.html.erb",
|
46
|
+
"lib/smart_monkey/templates/result.html.erb",
|
47
|
+
"lib/smart_monkey/templates/result_view.coffee",
|
48
|
+
"lib/smart_monkey/templates/result_view.js",
|
49
|
+
"lib/ui-auto-monkey/custom.js",
|
50
|
+
"lib/ui-auto-monkey/UIAutoMonkey.js",
|
51
|
+
"lib/ui-auto-monkey/handler/buttonHandler.js",
|
52
|
+
"lib/ui-auto-monkey/handler/wbScrollViewButtonHandler.js",
|
53
|
+
"lib/ui-auto-monkey/tuneup/assertions.js",
|
54
|
+
"lib/ui-auto-monkey/tuneup/image_asserter",
|
55
|
+
"lib/ui-auto-monkey/tuneup/image_assertion.js",
|
56
|
+
"lib/ui-auto-monkey/tuneup/image_assertion.rb",
|
57
|
+
"lib/ui-auto-monkey/tuneup/lang-ext.js",
|
58
|
+
"lib/ui-auto-monkey/tuneup/LICENSE",
|
59
|
+
"lib/ui-auto-monkey/tuneup/screen.js",
|
60
|
+
"lib/ui-auto-monkey/tuneup/test.js",
|
61
|
+
"lib/ui-auto-monkey/tuneup/tuneup_js.podspec",
|
62
|
+
"lib/ui-auto-monkey/tuneup/tuneup.js",
|
63
|
+
"lib/ui-auto-monkey/tuneup/uiautomation-ext.js",
|
64
|
+
"lib/ui-auto-monkey/tuneup/test_runner/abbreviated_console_output.rb",
|
65
|
+
"lib/ui-auto-monkey/tuneup/test_runner/colored_console_output.rb",
|
66
|
+
"lib/ui-auto-monkey/tuneup/test_runner/console_output.rb",
|
67
|
+
"lib/ui-auto-monkey/tuneup/test_runner/preprocessor.rb",
|
68
|
+
"lib/ui-auto-monkey/tuneup/test_runner/run",
|
69
|
+
"lib/ui-auto-monkey/tuneup/test_runner/xunit_output.rb",
|
70
|
+
"spec/spec_helper.rb"
|
71
|
+
]
|
72
|
+
s.homepage = %q{https://github.com/vigossjjj/CrashMonkey4IOS}
|
73
|
+
s.licenses = ["MIT"]
|
74
|
+
s.require_paths = ["lib"]
|
75
|
+
s.rubygems_version = %q{1.6.2}
|
76
|
+
s.summary = %q{Monkey Test For iOS Application}
|
77
|
+
|
78
|
+
if s.respond_to? :specification_version then
|
79
|
+
s.specification_version = 3
|
80
|
+
|
81
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
82
|
+
s.add_runtime_dependency(%q<erubis>, [">= 2.7.0"])
|
83
|
+
s.add_runtime_dependency(%q<json>, [">= 1.7.0"])
|
84
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
|
85
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
86
|
+
s.add_development_dependency(%q<bundler>, ["> 1.0.0"])
|
87
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
|
88
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
89
|
+
else
|
90
|
+
s.add_dependency(%q<erubis>, [">= 2.7.0"])
|
91
|
+
s.add_dependency(%q<json>, [">= 1.7.0"])
|
92
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
93
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
94
|
+
s.add_dependency(%q<bundler>, ["> 1.0.0"])
|
95
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
96
|
+
if RUBY_VERSION > '1.9' then
|
97
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
98
|
+
else
|
99
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
100
|
+
end
|
101
|
+
end
|
102
|
+
else
|
103
|
+
s.add_dependency(%q<erubis>, [">= 2.7.0"])
|
104
|
+
s.add_dependency(%q<json>, [">= 1.7.0"])
|
105
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
106
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
107
|
+
s.add_dependency(%q<bundler>, ["> 1.0.0"])
|
108
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
109
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
|
+
require 'rspec'
|
4
|
+
require 'smart_monkey'
|
5
|
+
|
6
|
+
# Requires supporting files with custom matchers and macros, etc,
|
7
|
+
# in ./support/ and its subdirectories.
|
8
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
|
12
|
+
end
|
metadata
ADDED
@@ -0,0 +1,192 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: smart_monkey
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '0.1'
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- vigossjjj
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-06-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: erubis
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.7.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.7.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: json
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.7.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.7.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 2.8.0
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.8.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rdoc
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.12'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.12'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bundler
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.0.0
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.0.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: jeweler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 1.8.4
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 1.8.4
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rcov
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description: iOS Monkey test tool base on UIAutomation.
|
112
|
+
email: jiangyunpeng@58.com
|
113
|
+
executables:
|
114
|
+
- smart_monkey
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files:
|
117
|
+
- LICENSE.txt
|
118
|
+
- README.md
|
119
|
+
files:
|
120
|
+
- ".rspec"
|
121
|
+
- Gemfile
|
122
|
+
- LICENSE.txt
|
123
|
+
- README.md
|
124
|
+
- Rakefile
|
125
|
+
- Troubleshooting.md
|
126
|
+
- VERSION
|
127
|
+
- bin/smart_monkey
|
128
|
+
- lib/bootstrap/css/bootstrap-responsive.css
|
129
|
+
- lib/bootstrap/css/bootstrap-responsive.min.css
|
130
|
+
- lib/bootstrap/css/bootstrap.css
|
131
|
+
- lib/bootstrap/css/bootstrap.min.css
|
132
|
+
- lib/bootstrap/img/glyphicons-halflings-white.png
|
133
|
+
- lib/bootstrap/img/glyphicons-halflings.png
|
134
|
+
- lib/bootstrap/js/bootstrap.js
|
135
|
+
- lib/bootstrap/js/bootstrap.min.js
|
136
|
+
- lib/ios_device_log/deviceconsole
|
137
|
+
- lib/smart_monkey.rb
|
138
|
+
- lib/smart_monkey/command_helper.rb
|
139
|
+
- lib/smart_monkey/monkey_runner.rb
|
140
|
+
- lib/smart_monkey/templates/automation_result.xsl
|
141
|
+
- lib/smart_monkey/templates/index.html.erb
|
142
|
+
- lib/smart_monkey/templates/result.html.erb
|
143
|
+
- lib/smart_monkey/templates/result_view.coffee
|
144
|
+
- lib/smart_monkey/templates/result_view.js
|
145
|
+
- lib/ui-auto-monkey/UIAutoMonkey.js
|
146
|
+
- lib/ui-auto-monkey/custom.js
|
147
|
+
- lib/ui-auto-monkey/handler/buttonHandler.js
|
148
|
+
- lib/ui-auto-monkey/handler/wbScrollViewButtonHandler.js
|
149
|
+
- lib/ui-auto-monkey/tuneup/LICENSE
|
150
|
+
- lib/ui-auto-monkey/tuneup/assertions.js
|
151
|
+
- lib/ui-auto-monkey/tuneup/image_asserter
|
152
|
+
- lib/ui-auto-monkey/tuneup/image_assertion.js
|
153
|
+
- lib/ui-auto-monkey/tuneup/image_assertion.rb
|
154
|
+
- lib/ui-auto-monkey/tuneup/lang-ext.js
|
155
|
+
- lib/ui-auto-monkey/tuneup/screen.js
|
156
|
+
- lib/ui-auto-monkey/tuneup/test.js
|
157
|
+
- lib/ui-auto-monkey/tuneup/test_runner/abbreviated_console_output.rb
|
158
|
+
- lib/ui-auto-monkey/tuneup/test_runner/colored_console_output.rb
|
159
|
+
- lib/ui-auto-monkey/tuneup/test_runner/console_output.rb
|
160
|
+
- lib/ui-auto-monkey/tuneup/test_runner/preprocessor.rb
|
161
|
+
- lib/ui-auto-monkey/tuneup/test_runner/run
|
162
|
+
- lib/ui-auto-monkey/tuneup/test_runner/xunit_output.rb
|
163
|
+
- lib/ui-auto-monkey/tuneup/tuneup.js
|
164
|
+
- lib/ui-auto-monkey/tuneup/tuneup_js.podspec
|
165
|
+
- lib/ui-auto-monkey/tuneup/uiautomation-ext.js
|
166
|
+
- smart_monkey.gemspec
|
167
|
+
- spec/spec_helper.rb
|
168
|
+
homepage: https://github.com/vigossjjj/CrashMonkey4IOS
|
169
|
+
licenses:
|
170
|
+
- MIT
|
171
|
+
metadata: {}
|
172
|
+
post_install_message:
|
173
|
+
rdoc_options: []
|
174
|
+
require_paths:
|
175
|
+
- lib
|
176
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
182
|
+
requirements:
|
183
|
+
- - ">="
|
184
|
+
- !ruby/object:Gem::Version
|
185
|
+
version: '0'
|
186
|
+
requirements: []
|
187
|
+
rubyforge_project:
|
188
|
+
rubygems_version: 2.4.5
|
189
|
+
signing_key:
|
190
|
+
specification_version: 3
|
191
|
+
summary: Monkey Test For iOS Application
|
192
|
+
test_files: []
|