appium_lib 9.4.5 → 9.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/appium_lib.gemspec +1 -1
- data/docs/android_docs.md +224 -224
- data/docs/ios_docs.md +250 -250
- data/lib/appium_lib/common/version.rb +1 -1
- data/release_notes.md +13 -0
- metadata +1 -109
- data/android_tests/Gemfile +0 -2
- data/android_tests/LICENSE-2.0.txt +0 -202
- data/android_tests/Rakefile +0 -68
- data/android_tests/api.apk +0 -0
- data/android_tests/appium.txt +0 -11
- data/android_tests/flaky.txt +0 -1
- data/android_tests/lib/android/specs/android/element/alert.rb +0 -48
- data/android_tests/lib/android/specs/android/element/button.rb +0 -52
- data/android_tests/lib/android/specs/android/element/generic.rb +0 -58
- data/android_tests/lib/android/specs/android/element/text.rb +0 -35
- data/android_tests/lib/android/specs/android/element/textfield.rb +0 -62
- data/android_tests/lib/android/specs/android/helper.rb +0 -111
- data/android_tests/lib/android/specs/android/patch.rb +0 -27
- data/android_tests/lib/android/specs/common/command.rb +0 -52
- data/android_tests/lib/android/specs/common/device.rb +0 -159
- data/android_tests/lib/android/specs/common/device_touchaction.rb +0 -34
- data/android_tests/lib/android/specs/common/element/window.rb +0 -11
- data/android_tests/lib/android/specs/common/helper.rb +0 -112
- data/android_tests/lib/android/specs/common/patch.rb +0 -78
- data/android_tests/lib/android/specs/common/version.rb +0 -9
- data/android_tests/lib/android/specs/common/web_context.rb +0 -60
- data/android_tests/lib/android/specs/device/touch_actions.rb +0 -71
- data/android_tests/lib/android/specs/driver.rb +0 -280
- data/android_tests/lib/android/specs/install.rb +0 -26
- data/android_tests/lib/format.rb +0 -47
- data/android_tests/lib/run.rb +0 -91
- data/android_tests/readme.md +0 -30
- data/grid/README.md +0 -21
- data/grid/appium.txt.ios.example +0 -15
- data/grid/config.json +0 -25
- data/grid/hub_config.json +0 -14
- data/grid/selenium-server-standalone-2.53.1.jar +0 -0
- data/grid/selenium-server-standalone-3.2.0.jar +0 -0
- data/ios_tests/Gemfile +0 -4
- data/ios_tests/LICENSE-2.0.txt +0 -202
- data/ios_tests/Rakefile +0 -54
- data/ios_tests/UICatalog.app.zip +0 -0
- data/ios_tests/UICatalog.app/12-6AM.png +0 -0
- data/ios_tests/UICatalog.app/12-6PM.png +0 -0
- data/ios_tests/UICatalog.app/6-12AM.png +0 -0
- data/ios_tests/UICatalog.app/6-12PM.png +0 -0
- data/ios_tests/UICatalog.app/Default-568h@2x.png +0 -0
- data/ios_tests/UICatalog.app/Default@2x.png +0 -0
- data/ios_tests/UICatalog.app/Info.plist +0 -0
- data/ios_tests/UICatalog.app/PkgInfo +0 -1
- data/ios_tests/UICatalog.app/UIButton_custom.png +0 -0
- data/ios_tests/UICatalog.app/UICatalog +0 -0
- data/ios_tests/UICatalog.app/blueButton.png +0 -0
- data/ios_tests/UICatalog.app/bookmarkImage.png +0 -0
- data/ios_tests/UICatalog.app/bookmarkImageHighlighted.png +0 -0
- data/ios_tests/UICatalog.app/divider.png +0 -0
- data/ios_tests/UICatalog.app/en.lproj/AlertsViewController.nib +0 -0
- data/ios_tests/UICatalog.app/en.lproj/ButtonsViewController.nib +0 -0
- data/ios_tests/UICatalog.app/en.lproj/ControlsViewController.nib +0 -0
- data/ios_tests/UICatalog.app/en.lproj/ImagesViewController.nib +0 -0
- data/ios_tests/UICatalog.app/en.lproj/Localizable.strings +0 -0
- data/ios_tests/UICatalog.app/en.lproj/MainWindow.nib +0 -0
- data/ios_tests/UICatalog.app/en.lproj/PickerViewController.nib +0 -0
- data/ios_tests/UICatalog.app/en.lproj/SearchBarController.nib +0 -0
- data/ios_tests/UICatalog.app/en.lproj/SegmentViewController.nib +0 -0
- data/ios_tests/UICatalog.app/en.lproj/TextFieldController.nib +0 -0
- data/ios_tests/UICatalog.app/en.lproj/TextViewController.nib +0 -0
- data/ios_tests/UICatalog.app/en.lproj/ToolbarViewController.nib +0 -0
- data/ios_tests/UICatalog.app/en.lproj/TransitionViewController.nib +0 -0
- data/ios_tests/UICatalog.app/en.lproj/WebViewController.nib +0 -0
- data/ios_tests/UICatalog.app/orangeslide.png +0 -0
- data/ios_tests/UICatalog.app/scene1.jpg +0 -0
- data/ios_tests/UICatalog.app/scene2.jpg +0 -0
- data/ios_tests/UICatalog.app/scene3.jpg +0 -0
- data/ios_tests/UICatalog.app/scene4.jpg +0 -0
- data/ios_tests/UICatalog.app/scene5.jpg +0 -0
- data/ios_tests/UICatalog.app/searchBarBackground.png +0 -0
- data/ios_tests/UICatalog.app/segment_check.png +0 -0
- data/ios_tests/UICatalog.app/segment_search.png +0 -0
- data/ios_tests/UICatalog.app/segment_tools.png +0 -0
- data/ios_tests/UICatalog.app/segmentedBackground.png +0 -0
- data/ios_tests/UICatalog.app/slider_ball.png +0 -0
- data/ios_tests/UICatalog.app/toolbarBackground.png +0 -0
- data/ios_tests/UICatalog.app/whiteButton.png +0 -0
- data/ios_tests/UICatalog.app/yellowslide.png +0 -0
- data/ios_tests/appium.txt +0 -15
- data/ios_tests/data/unicode.txt +0 -1
- data/ios_tests/flaky.txt +0 -1
- data/ios_tests/lib/common.rb +0 -84
- data/ios_tests/lib/format.rb +0 -23
- data/ios_tests/lib/ios/specs/common/command.rb +0 -45
- data/ios_tests/lib/ios/specs/common/element/window.rb +0 -17
- data/ios_tests/lib/ios/specs/common/helper.rb +0 -228
- data/ios_tests/lib/ios/specs/common/patch.rb +0 -54
- data/ios_tests/lib/ios/specs/common/version.rb +0 -17
- data/ios_tests/lib/ios/specs/common/web_context.rb +0 -15
- data/ios_tests/lib/ios/specs/device/device.rb +0 -130
- data/ios_tests/lib/ios/specs/device/multi_touch.rb +0 -31
- data/ios_tests/lib/ios/specs/device/touch_actions.rb +0 -90
- data/ios_tests/lib/ios/specs/driver.rb +0 -308
- data/ios_tests/lib/ios/specs/ios/element/alert.rb +0 -51
- data/ios_tests/lib/ios/specs/ios/element/button.rb +0 -58
- data/ios_tests/lib/ios/specs/ios/element/generic.rb +0 -37
- data/ios_tests/lib/ios/specs/ios/element/text.rb +0 -63
- data/ios_tests/lib/ios/specs/ios/element/textfield.rb +0 -135
- data/ios_tests/lib/ios/specs/ios/helper.rb +0 -59
- data/ios_tests/lib/ios/specs/ios/mobile_methods.rb +0 -20
- data/ios_tests/lib/ios/specs/ios/patch.rb +0 -34
- data/ios_tests/lib/ios/specs/ios/xcuitest_gestures.rb +0 -110
- data/ios_tests/lib/run.rb +0 -4
- data/ios_tests/readme.md +0 -31
- data/ios_tests/upload/sauce_storage.rb +0 -67
- data/ios_tests/upload/upload.rb +0 -6
@@ -1,5 +1,5 @@
|
|
1
1
|
module Appium
|
2
2
|
# Version and Date are defined on the 'Appium' module, not 'Appium::Common'
|
3
|
-
VERSION = '9.4.
|
3
|
+
VERSION = '9.4.6'.freeze unless defined? ::Appium::VERSION
|
4
4
|
DATE = '2017-05-25'.freeze unless defined? ::Appium::DATE
|
5
5
|
end
|
data/release_notes.md
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
#### v9.4.5 2017-05-25
|
2
|
+
|
3
|
+
- [8e7ea79](https://github.com/appium/ruby_lib/commit/8e7ea79ca476bdc172015aea3ed2b4dc3b571d00) [Release 9 4 5 (#590)](https://github.com/appium/ruby_lib/issues/590)
|
4
|
+
- [4001282](https://github.com/appium/ruby_lib/commit/40012821fd3a3b5f7f484de951bec9fbb00f225c) [add grid 2.x (#589)](https://github.com/appium/ruby_lib/issues/589)
|
5
|
+
- [fa00890](https://github.com/appium/ruby_lib/commit/fa008908ce95d1d8cd76bd9bb1ea927b36a64f9a) [update some grid parameters (#588)](https://github.com/appium/ruby_lib/issues/588)
|
6
|
+
- [44e12cb](https://github.com/appium/ruby_lib/commit/44e12cb2f0aec3a9f9954819c68646ed83efb297) [add grid settings (#587)](https://github.com/appium/ruby_lib/issues/587)
|
7
|
+
- [4d98683](https://github.com/appium/ruby_lib/commit/4d986830facd0e4ef1978e247a3c8ffd0a02427b) [skip loading Pry.config.pager = false if users have .pryrc (#585)](https://github.com/appium/ruby_lib/issues/585)
|
8
|
+
- [517f30d](https://github.com/appium/ruby_lib/commit/517f30d6cdbcbf683311612c705ac876b1e3521a) [fix some ambiguous gesture (#584)](https://github.com/appium/ruby_lib/issues/584)
|
9
|
+
- [b69f0e0](https://github.com/appium/ruby_lib/commit/b69f0e0ce061ebeb6462b0118411af85b388addd) [replace attr_accessor to attr_reader (#583)](https://github.com/appium/ruby_lib/issues/583)
|
10
|
+
- [5eff035](https://github.com/appium/ruby_lib/commit/5eff0353ee32a40e56dea8b36a9b3bb86269579e) [add touch and hold (#581)](https://github.com/appium/ruby_lib/issues/581)
|
11
|
+
- [e736359](https://github.com/appium/ruby_lib/commit/e736359bc9b8b3a369dcbcc727cb858d2f98e94f) [add alert test case (#579)](https://github.com/appium/ruby_lib/issues/579)
|
12
|
+
|
13
|
+
|
1
14
|
#### v9.4.4 2017-05-13
|
2
15
|
|
3
16
|
- [230bac6](https://github.com/appium/ruby_lib/commit/230bac6fbcf26645111f76caab64dbf46de84897) [Release 9 4 4 (#577)](https://github.com/appium/ruby_lib/issues/577)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appium_lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.4.
|
4
|
+
version: 9.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- code@bootstraponline.com
|
@@ -224,33 +224,6 @@ files:
|
|
224
224
|
- Gemfile
|
225
225
|
- LICENSE-2.0.txt
|
226
226
|
- Rakefile
|
227
|
-
- android_tests/Gemfile
|
228
|
-
- android_tests/LICENSE-2.0.txt
|
229
|
-
- android_tests/Rakefile
|
230
|
-
- android_tests/api.apk
|
231
|
-
- android_tests/appium.txt
|
232
|
-
- android_tests/flaky.txt
|
233
|
-
- android_tests/lib/android/specs/android/element/alert.rb
|
234
|
-
- android_tests/lib/android/specs/android/element/button.rb
|
235
|
-
- android_tests/lib/android/specs/android/element/generic.rb
|
236
|
-
- android_tests/lib/android/specs/android/element/text.rb
|
237
|
-
- android_tests/lib/android/specs/android/element/textfield.rb
|
238
|
-
- android_tests/lib/android/specs/android/helper.rb
|
239
|
-
- android_tests/lib/android/specs/android/patch.rb
|
240
|
-
- android_tests/lib/android/specs/common/command.rb
|
241
|
-
- android_tests/lib/android/specs/common/device.rb
|
242
|
-
- android_tests/lib/android/specs/common/device_touchaction.rb
|
243
|
-
- android_tests/lib/android/specs/common/element/window.rb
|
244
|
-
- android_tests/lib/android/specs/common/helper.rb
|
245
|
-
- android_tests/lib/android/specs/common/patch.rb
|
246
|
-
- android_tests/lib/android/specs/common/version.rb
|
247
|
-
- android_tests/lib/android/specs/common/web_context.rb
|
248
|
-
- android_tests/lib/android/specs/device/touch_actions.rb
|
249
|
-
- android_tests/lib/android/specs/driver.rb
|
250
|
-
- android_tests/lib/android/specs/install.rb
|
251
|
-
- android_tests/lib/format.rb
|
252
|
-
- android_tests/lib/run.rb
|
253
|
-
- android_tests/readme.md
|
254
227
|
- appium_lib.gemspec
|
255
228
|
- contributing.md
|
256
229
|
- docs/android_docs.md
|
@@ -264,87 +237,6 @@ files:
|
|
264
237
|
- docs/travis.sample.yml
|
265
238
|
- docs_gen/docs_from_js.md
|
266
239
|
- docs_gen/make_docs.rb
|
267
|
-
- grid/README.md
|
268
|
-
- grid/appium.txt.ios.example
|
269
|
-
- grid/config.json
|
270
|
-
- grid/hub_config.json
|
271
|
-
- grid/selenium-server-standalone-2.53.1.jar
|
272
|
-
- grid/selenium-server-standalone-3.2.0.jar
|
273
|
-
- ios_tests/Gemfile
|
274
|
-
- ios_tests/LICENSE-2.0.txt
|
275
|
-
- ios_tests/Rakefile
|
276
|
-
- ios_tests/UICatalog.app.zip
|
277
|
-
- ios_tests/UICatalog.app/12-6AM.png
|
278
|
-
- ios_tests/UICatalog.app/12-6PM.png
|
279
|
-
- ios_tests/UICatalog.app/6-12AM.png
|
280
|
-
- ios_tests/UICatalog.app/6-12PM.png
|
281
|
-
- ios_tests/UICatalog.app/Default-568h@2x.png
|
282
|
-
- ios_tests/UICatalog.app/Default@2x.png
|
283
|
-
- ios_tests/UICatalog.app/Info.plist
|
284
|
-
- ios_tests/UICatalog.app/PkgInfo
|
285
|
-
- ios_tests/UICatalog.app/UIButton_custom.png
|
286
|
-
- ios_tests/UICatalog.app/UICatalog
|
287
|
-
- ios_tests/UICatalog.app/blueButton.png
|
288
|
-
- ios_tests/UICatalog.app/bookmarkImage.png
|
289
|
-
- ios_tests/UICatalog.app/bookmarkImageHighlighted.png
|
290
|
-
- ios_tests/UICatalog.app/divider.png
|
291
|
-
- ios_tests/UICatalog.app/en.lproj/AlertsViewController.nib
|
292
|
-
- ios_tests/UICatalog.app/en.lproj/ButtonsViewController.nib
|
293
|
-
- ios_tests/UICatalog.app/en.lproj/ControlsViewController.nib
|
294
|
-
- ios_tests/UICatalog.app/en.lproj/ImagesViewController.nib
|
295
|
-
- ios_tests/UICatalog.app/en.lproj/Localizable.strings
|
296
|
-
- ios_tests/UICatalog.app/en.lproj/MainWindow.nib
|
297
|
-
- ios_tests/UICatalog.app/en.lproj/PickerViewController.nib
|
298
|
-
- ios_tests/UICatalog.app/en.lproj/SearchBarController.nib
|
299
|
-
- ios_tests/UICatalog.app/en.lproj/SegmentViewController.nib
|
300
|
-
- ios_tests/UICatalog.app/en.lproj/TextFieldController.nib
|
301
|
-
- ios_tests/UICatalog.app/en.lproj/TextViewController.nib
|
302
|
-
- ios_tests/UICatalog.app/en.lproj/ToolbarViewController.nib
|
303
|
-
- ios_tests/UICatalog.app/en.lproj/TransitionViewController.nib
|
304
|
-
- ios_tests/UICatalog.app/en.lproj/WebViewController.nib
|
305
|
-
- ios_tests/UICatalog.app/orangeslide.png
|
306
|
-
- ios_tests/UICatalog.app/scene1.jpg
|
307
|
-
- ios_tests/UICatalog.app/scene2.jpg
|
308
|
-
- ios_tests/UICatalog.app/scene3.jpg
|
309
|
-
- ios_tests/UICatalog.app/scene4.jpg
|
310
|
-
- ios_tests/UICatalog.app/scene5.jpg
|
311
|
-
- ios_tests/UICatalog.app/searchBarBackground.png
|
312
|
-
- ios_tests/UICatalog.app/segment_check.png
|
313
|
-
- ios_tests/UICatalog.app/segment_search.png
|
314
|
-
- ios_tests/UICatalog.app/segment_tools.png
|
315
|
-
- ios_tests/UICatalog.app/segmentedBackground.png
|
316
|
-
- ios_tests/UICatalog.app/slider_ball.png
|
317
|
-
- ios_tests/UICatalog.app/toolbarBackground.png
|
318
|
-
- ios_tests/UICatalog.app/whiteButton.png
|
319
|
-
- ios_tests/UICatalog.app/yellowslide.png
|
320
|
-
- ios_tests/appium.txt
|
321
|
-
- ios_tests/data/unicode.txt
|
322
|
-
- ios_tests/flaky.txt
|
323
|
-
- ios_tests/lib/common.rb
|
324
|
-
- ios_tests/lib/format.rb
|
325
|
-
- ios_tests/lib/ios/specs/common/command.rb
|
326
|
-
- ios_tests/lib/ios/specs/common/element/window.rb
|
327
|
-
- ios_tests/lib/ios/specs/common/helper.rb
|
328
|
-
- ios_tests/lib/ios/specs/common/patch.rb
|
329
|
-
- ios_tests/lib/ios/specs/common/version.rb
|
330
|
-
- ios_tests/lib/ios/specs/common/web_context.rb
|
331
|
-
- ios_tests/lib/ios/specs/device/device.rb
|
332
|
-
- ios_tests/lib/ios/specs/device/multi_touch.rb
|
333
|
-
- ios_tests/lib/ios/specs/device/touch_actions.rb
|
334
|
-
- ios_tests/lib/ios/specs/driver.rb
|
335
|
-
- ios_tests/lib/ios/specs/ios/element/alert.rb
|
336
|
-
- ios_tests/lib/ios/specs/ios/element/button.rb
|
337
|
-
- ios_tests/lib/ios/specs/ios/element/generic.rb
|
338
|
-
- ios_tests/lib/ios/specs/ios/element/text.rb
|
339
|
-
- ios_tests/lib/ios/specs/ios/element/textfield.rb
|
340
|
-
- ios_tests/lib/ios/specs/ios/helper.rb
|
341
|
-
- ios_tests/lib/ios/specs/ios/mobile_methods.rb
|
342
|
-
- ios_tests/lib/ios/specs/ios/patch.rb
|
343
|
-
- ios_tests/lib/ios/specs/ios/xcuitest_gestures.rb
|
344
|
-
- ios_tests/lib/run.rb
|
345
|
-
- ios_tests/readme.md
|
346
|
-
- ios_tests/upload/sauce_storage.rb
|
347
|
-
- ios_tests/upload/upload.rb
|
348
240
|
- lib/appium_lib.rb
|
349
241
|
- lib/appium_lib/android/client_xpath.rb
|
350
242
|
- lib/appium_lib/android/element/alert.rb
|
data/android_tests/Gemfile
DELETED
@@ -1,202 +0,0 @@
|
|
1
|
-
|
2
|
-
Apache License
|
3
|
-
Version 2.0, January 2004
|
4
|
-
http://www.apache.org/licenses/
|
5
|
-
|
6
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
7
|
-
|
8
|
-
1. Definitions.
|
9
|
-
|
10
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
11
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
12
|
-
|
13
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
14
|
-
the copyright owner that is granting the License.
|
15
|
-
|
16
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
17
|
-
other entities that control, are controlled by, or are under common
|
18
|
-
control with that entity. For the purposes of this definition,
|
19
|
-
"control" means (i) the power, direct or indirect, to cause the
|
20
|
-
direction or management of such entity, whether by contract or
|
21
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
22
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
23
|
-
|
24
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
25
|
-
exercising permissions granted by this License.
|
26
|
-
|
27
|
-
"Source" form shall mean the preferred form for making modifications,
|
28
|
-
including but not limited to software source code, documentation
|
29
|
-
source, and configuration files.
|
30
|
-
|
31
|
-
"Object" form shall mean any form resulting from mechanical
|
32
|
-
transformation or translation of a Source form, including but
|
33
|
-
not limited to compiled object code, generated documentation,
|
34
|
-
and conversions to other media types.
|
35
|
-
|
36
|
-
"Work" shall mean the work of authorship, whether in Source or
|
37
|
-
Object form, made available under the License, as indicated by a
|
38
|
-
copyright notice that is included in or attached to the work
|
39
|
-
(an example is provided in the Appendix below).
|
40
|
-
|
41
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
42
|
-
form, that is based on (or derived from) the Work and for which the
|
43
|
-
editorial revisions, annotations, elaborations, or other modifications
|
44
|
-
represent, as a whole, an original work of authorship. For the purposes
|
45
|
-
of this License, Derivative Works shall not include works that remain
|
46
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
47
|
-
the Work and Derivative Works thereof.
|
48
|
-
|
49
|
-
"Contribution" shall mean any work of authorship, including
|
50
|
-
the original version of the Work and any modifications or additions
|
51
|
-
to that Work or Derivative Works thereof, that is intentionally
|
52
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
53
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
54
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
55
|
-
means any form of electronic, verbal, or written communication sent
|
56
|
-
to the Licensor or its representatives, including but not limited to
|
57
|
-
communication on electronic mailing lists, source code control systems,
|
58
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
59
|
-
Licensor for the purpose of discussing and improving the Work, but
|
60
|
-
excluding communication that is conspicuously marked or otherwise
|
61
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
62
|
-
|
63
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
64
|
-
on behalf of whom a Contribution has been received by Licensor and
|
65
|
-
subsequently incorporated within the Work.
|
66
|
-
|
67
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
68
|
-
this License, each Contributor hereby grants to You a perpetual,
|
69
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
70
|
-
copyright license to reproduce, prepare Derivative Works of,
|
71
|
-
publicly display, publicly perform, sublicense, and distribute the
|
72
|
-
Work and such Derivative Works in Source or Object form.
|
73
|
-
|
74
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
75
|
-
this License, each Contributor hereby grants to You a perpetual,
|
76
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
77
|
-
(except as stated in this section) patent license to make, have made,
|
78
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
79
|
-
where such license applies only to those patent claims licensable
|
80
|
-
by such Contributor that are necessarily infringed by their
|
81
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
82
|
-
with the Work to which such Contribution(s) was submitted. If You
|
83
|
-
institute patent litigation against any entity (including a
|
84
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
85
|
-
or a Contribution incorporated within the Work constitutes direct
|
86
|
-
or contributory patent infringement, then any patent licenses
|
87
|
-
granted to You under this License for that Work shall terminate
|
88
|
-
as of the date such litigation is filed.
|
89
|
-
|
90
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
91
|
-
Work or Derivative Works thereof in any medium, with or without
|
92
|
-
modifications, and in Source or Object form, provided that You
|
93
|
-
meet the following conditions:
|
94
|
-
|
95
|
-
(a) You must give any other recipients of the Work or
|
96
|
-
Derivative Works a copy of this License; and
|
97
|
-
|
98
|
-
(b) You must cause any modified files to carry prominent notices
|
99
|
-
stating that You changed the files; and
|
100
|
-
|
101
|
-
(c) You must retain, in the Source form of any Derivative Works
|
102
|
-
that You distribute, all copyright, patent, trademark, and
|
103
|
-
attribution notices from the Source form of the Work,
|
104
|
-
excluding those notices that do not pertain to any part of
|
105
|
-
the Derivative Works; and
|
106
|
-
|
107
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
108
|
-
distribution, then any Derivative Works that You distribute must
|
109
|
-
include a readable copy of the attribution notices contained
|
110
|
-
within such NOTICE file, excluding those notices that do not
|
111
|
-
pertain to any part of the Derivative Works, in at least one
|
112
|
-
of the following places: within a NOTICE text file distributed
|
113
|
-
as part of the Derivative Works; within the Source form or
|
114
|
-
documentation, if provided along with the Derivative Works; or,
|
115
|
-
within a display generated by the Derivative Works, if and
|
116
|
-
wherever such third-party notices normally appear. The contents
|
117
|
-
of the NOTICE file are for informational purposes only and
|
118
|
-
do not modify the License. You may add Your own attribution
|
119
|
-
notices within Derivative Works that You distribute, alongside
|
120
|
-
or as an addendum to the NOTICE text from the Work, provided
|
121
|
-
that such additional attribution notices cannot be construed
|
122
|
-
as modifying the License.
|
123
|
-
|
124
|
-
You may add Your own copyright statement to Your modifications and
|
125
|
-
may provide additional or different license terms and conditions
|
126
|
-
for use, reproduction, or distribution of Your modifications, or
|
127
|
-
for any such Derivative Works as a whole, provided Your use,
|
128
|
-
reproduction, and distribution of the Work otherwise complies with
|
129
|
-
the conditions stated in this License.
|
130
|
-
|
131
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
132
|
-
any Contribution intentionally submitted for inclusion in the Work
|
133
|
-
by You to the Licensor shall be under the terms and conditions of
|
134
|
-
this License, without any additional terms or conditions.
|
135
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
136
|
-
the terms of any separate license agreement you may have executed
|
137
|
-
with Licensor regarding such Contributions.
|
138
|
-
|
139
|
-
6. Trademarks. This License does not grant permission to use the trade
|
140
|
-
names, trademarks, service marks, or product names of the Licensor,
|
141
|
-
except as required for reasonable and customary use in describing the
|
142
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
143
|
-
|
144
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
145
|
-
agreed to in writing, Licensor provides the Work (and each
|
146
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
147
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
148
|
-
implied, including, without limitation, any warranties or conditions
|
149
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
150
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
151
|
-
appropriateness of using or redistributing the Work and assume any
|
152
|
-
risks associated with Your exercise of permissions under this License.
|
153
|
-
|
154
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
155
|
-
whether in tort (including negligence), contract, or otherwise,
|
156
|
-
unless required by applicable law (such as deliberate and grossly
|
157
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
158
|
-
liable to You for damages, including any direct, indirect, special,
|
159
|
-
incidental, or consequential damages of any character arising as a
|
160
|
-
result of this License or out of the use or inability to use the
|
161
|
-
Work (including but not limited to damages for loss of goodwill,
|
162
|
-
work stoppage, computer failure or malfunction, or any and all
|
163
|
-
other commercial damages or losses), even if such Contributor
|
164
|
-
has been advised of the possibility of such damages.
|
165
|
-
|
166
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
167
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
168
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
169
|
-
or other liability obligations and/or rights consistent with this
|
170
|
-
License. However, in accepting such obligations, You may act only
|
171
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
172
|
-
of any other Contributor, and only if You agree to indemnify,
|
173
|
-
defend, and hold each Contributor harmless for any liability
|
174
|
-
incurred by, or claims asserted against, such Contributor by reason
|
175
|
-
of your accepting any such warranty or additional liability.
|
176
|
-
|
177
|
-
END OF TERMS AND CONDITIONS
|
178
|
-
|
179
|
-
APPENDIX: How to apply the Apache License to your work.
|
180
|
-
|
181
|
-
To apply the Apache License to your work, attach the following
|
182
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
183
|
-
replaced with your own identifying information. (Don't include
|
184
|
-
the brackets!) The text should be enclosed in the appropriate
|
185
|
-
comment syntax for the file format. We also recommend that a
|
186
|
-
file or class name and description of purpose be included on the
|
187
|
-
same "printed page" as the copyright notice for easier
|
188
|
-
identification within third-party archives.
|
189
|
-
|
190
|
-
Copyright [yyyy] [name of copyright owner]
|
191
|
-
|
192
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
193
|
-
you may not use this file except in compliance with the License.
|
194
|
-
You may obtain a copy of the License at
|
195
|
-
|
196
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
197
|
-
|
198
|
-
Unless required by applicable law or agreed to in writing, software
|
199
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
200
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
201
|
-
See the License for the specific language governing permissions and
|
202
|
-
limitations under the License.
|
data/android_tests/Rakefile
DELETED
@@ -1,68 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'rake'
|
3
|
-
require 'rubocop/rake_task'
|
4
|
-
|
5
|
-
task default: :android
|
6
|
-
|
7
|
-
# Run sh and ignore exception
|
8
|
-
# rubocop:disable Lint/HandleExceptions
|
9
|
-
def run_sh(cmd)
|
10
|
-
sh cmd
|
11
|
-
rescue
|
12
|
-
end
|
13
|
-
|
14
|
-
# Run cmd. On failure run install and try again.
|
15
|
-
def bash(cmd)
|
16
|
-
sh cmd do |successful, result|
|
17
|
-
# exitstatus 7 means bundle install failed
|
18
|
-
# exitstatus 1 means the test failed
|
19
|
-
if !successful && result.exitstatus == 7
|
20
|
-
Rake::Task['install'].execute
|
21
|
-
run_sh cmd
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
def wait_for_valid_device
|
27
|
-
while `adb shell echo "ping"`.strip != 'ping'
|
28
|
-
`adb kill-server`
|
29
|
-
`adb devices`
|
30
|
-
sleep 5
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
# rake android['single_text_name']
|
35
|
-
# rake android
|
36
|
-
def run_android(test_file = nil)
|
37
|
-
wait_for_valid_device
|
38
|
-
cmd = 'bundle exec ruby ./lib/run.rb android'
|
39
|
-
cmd += %( "#{test_file}") if test_file
|
40
|
-
bash cmd
|
41
|
-
end
|
42
|
-
|
43
|
-
# Run a single test with:
|
44
|
-
# rake android['android/element/generic']
|
45
|
-
#
|
46
|
-
# Run all tests with:
|
47
|
-
# rake android
|
48
|
-
desc 'Run the Android tests'
|
49
|
-
task :android, :args, :test_file do |_args, test_file|
|
50
|
-
run_android test_file[:args]
|
51
|
-
end
|
52
|
-
|
53
|
-
desc 'Run the Android tests without uninstalling'
|
54
|
-
task :droid, :args, :test_file do |_args, test_file|
|
55
|
-
run_android test_file[:args]
|
56
|
-
end
|
57
|
-
|
58
|
-
desc 'Run bundle install'
|
59
|
-
task :install do
|
60
|
-
sh 'bundle install'
|
61
|
-
end
|
62
|
-
|
63
|
-
desc 'Execute RuboCop static code analysis'
|
64
|
-
RuboCop::RakeTask.new(:rubocop) do |t|
|
65
|
-
t.patterns = %w(**/*.rb)
|
66
|
-
t.options = %w(-D)
|
67
|
-
t.fail_on_error = false
|
68
|
-
end
|
data/android_tests/api.apk
DELETED
Binary file
|
data/android_tests/appium.txt
DELETED
data/android_tests/flaky.txt
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
android = "lib/android/specs/"
|
@@ -1,48 +0,0 @@
|
|
1
|
-
# rake android[android/element/alert]
|
2
|
-
describe 'android/element/alert' do
|
3
|
-
def open_alert
|
4
|
-
# trigger the alert
|
5
|
-
wait { button('OK Cancel dialog with a message').click }
|
6
|
-
end
|
7
|
-
|
8
|
-
t 'alert_click' do
|
9
|
-
# nav to alert activity
|
10
|
-
wait { find('app').click }
|
11
|
-
wait { find('alert').click }
|
12
|
-
|
13
|
-
# test
|
14
|
-
wait { open_alert }
|
15
|
-
wait { alert_click('OK') }
|
16
|
-
end
|
17
|
-
|
18
|
-
t 'alert_accept' do
|
19
|
-
wait { open_alert }
|
20
|
-
wait { alert_accept }
|
21
|
-
end
|
22
|
-
|
23
|
-
t 'alert_accept_text' do
|
24
|
-
wait { open_alert }
|
25
|
-
wait { alert_accept_text.must_equal 'OK' }
|
26
|
-
wait { alert_accept }
|
27
|
-
end
|
28
|
-
|
29
|
-
t 'alert_dismiss' do
|
30
|
-
wait { open_alert }
|
31
|
-
wait { alert_dismiss }
|
32
|
-
end
|
33
|
-
|
34
|
-
t 'alert_dismiss_text' do
|
35
|
-
wait { open_alert }
|
36
|
-
|
37
|
-
# alert dialog button placement changed:
|
38
|
-
# 'OK Cancel dialog with a long message'
|
39
|
-
# Android L: 'Something, Cancel, Ok'
|
40
|
-
# Android 19: 'Cancel, Something, Ok'
|
41
|
-
|
42
|
-
wait { alert_dismiss_text.must_equal 'Cancel' }
|
43
|
-
wait { alert_dismiss }
|
44
|
-
|
45
|
-
# nav to start activity
|
46
|
-
2.times { back }
|
47
|
-
end
|
48
|
-
end
|