gnome_app_driver 0.3.2 → 0.3.3
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/Changelog.md +11 -0
- data/README.md +51 -66
- data/lib/gnome_app_driver/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39a619ec23d07246906cdbf8d92f77b443ec3d57dbe4a5bba1db41f01beac258
|
4
|
+
data.tar.gz: 97565686b8ababd8138397c56cbbdf5e5dd4b348cd97f1763002676f5c76485b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdbf7d9ab215fb8b92bf0932b83fb20e8006f21ce495f2d7330a8cfccd9fcf8be1fbb90b2c6cc5aef673f69bf0878b0d780ae269d5bd968c6b130a94777fb8e8
|
7
|
+
data.tar.gz: 3f02377ea8f4c20ac28e460e6bd177af9a90ad14390d41293e4c4412b4215e65bb06ea5f7786072b90ffea47a2918f7bb422ddf0443a907bed7d5eb8dda0c505
|
data/Changelog.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# Change log
|
2
2
|
|
3
|
+
## 0.3.3 / 2024-01-05
|
4
|
+
|
5
|
+
* Support Ruby 3.0 through 3.3, dropping support for 2.6 and 2.7
|
6
|
+
([#77], [#78] and [#92] by [mvz])
|
7
|
+
|
8
|
+
[mvz]: https://github.com/mvz
|
9
|
+
|
10
|
+
[#77]: https://github.com/mvz/gnome_app_driver/pull/77
|
11
|
+
[#78]: https://github.com/mvz/gnome_app_driver/pull/78
|
12
|
+
[#92]: https://github.com/mvz/gnome_app_driver/pull/92
|
13
|
+
|
3
14
|
## 0.3.2 / 2022-09-02
|
4
15
|
|
5
16
|
* Loosen dependency on gobject-introspection to allow use with version 4.0
|
data/README.md
CHANGED
@@ -10,77 +10,62 @@ code in `lib/`.
|
|
10
10
|
|
11
11
|
Say, your application is called `foo`. Then, in your tests, do something like this:
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
13
|
+
```ruby
|
14
|
+
require 'gnome_app_driver'
|
15
|
+
|
16
|
+
describe 'The application' do
|
17
|
+
before do
|
18
|
+
@driver = GnomeAppDriver.new('foo')
|
19
|
+
|
20
|
+
# This will boot `ruby -Ilib bin/foo`, wait for its main window to appear,
|
21
|
+
# and focus it.
|
22
|
+
@driver.boot
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'does stuff' do
|
26
|
+
# Fetch the main window's atspi object
|
27
|
+
frame = @driver.frame
|
28
|
+
|
29
|
+
# You can now interact with the window's objects
|
30
|
+
|
31
|
+
# Select item matching /bar/ from combo box:
|
32
|
+
box = frame.find_role :combo_box
|
33
|
+
item = box.find_role :menu_item, /bar/
|
34
|
+
box.get_action_name(0).must_equal 'press'
|
35
|
+
box.do_action 0
|
36
|
+
item.get_action_name(0).must_equal 'click'
|
37
|
+
item.do_action 0
|
38
|
+
|
39
|
+
# Fetch contents of a text box
|
40
|
+
textbox = frame.find_role :text
|
41
|
+
textbox.get_text(0, 100).must_equal 'Foo bar baz'
|
42
|
+
|
43
|
+
# Quit application
|
44
|
+
menu_item = frame.find_role :menu_item, /Quit/
|
45
|
+
menu_item.do_action 0
|
46
|
+
|
47
|
+
# Check exit status
|
48
|
+
status = @driver.cleanup
|
49
|
+
status.exitstatus.must_equal 0
|
50
|
+
end
|
51
|
+
|
52
|
+
after do
|
53
|
+
# Ensure application is cleaned up
|
54
|
+
@driver.cleanup
|
55
|
+
end
|
56
|
+
end
|
57
|
+
```
|
56
58
|
|
57
59
|
## Installation
|
58
60
|
|
59
|
-
|
61
|
+
```
|
62
|
+
gem install gnome_app_driver
|
63
|
+
```
|
60
64
|
|
61
65
|
## Dependencies
|
62
66
|
|
63
|
-
Ruby-GNOME2 App Driver
|
64
|
-
|
65
|
-
Corrections are welcome, of course.
|
66
|
-
|
67
|
-
### Debian
|
68
|
-
|
69
|
-
This should work on Debian unstable.
|
70
|
-
|
71
|
-
sudo apt-get install dbus
|
72
|
-
sudo apt-get install libgirepository1.0-dev gobject-introspection
|
73
|
-
sudo apt-get install gir1.2-atspi-2.0 libatk-adaptor
|
74
|
-
|
75
|
-
### Ubuntu
|
76
|
-
|
77
|
-
Please try the instructions for Debian. This will probably not work on Ubuntu
|
78
|
-
12.04. Again, corrections and additions are welcome.
|
79
|
-
|
80
|
-
### Other OS
|
81
|
-
|
82
|
-
To be determined. Please contribute back your experience in getting Ruby-GNOME2 App
|
83
|
-
Driver working on your favorite operation system.
|
67
|
+
Ruby-GNOME2 App Driver depends on the `gobject-introspection` gem. It also
|
68
|
+
requires Ruby 3.0 or higher.
|
84
69
|
|
85
70
|
## Contributing
|
86
71
|
|
@@ -89,5 +74,5 @@ on GitHub.
|
|
89
74
|
|
90
75
|
## License
|
91
76
|
|
92
|
-
Copyright © 2015-
|
77
|
+
Copyright © 2015-2024 [Matijs van Zuijlen](http://www.matijs.net).
|
93
78
|
See LICENSE for details.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gnome_app_driver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matijs van Zuijlen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gobject-introspection
|
@@ -98,28 +98,28 @@ dependencies:
|
|
98
98
|
requirements:
|
99
99
|
- - "~>"
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: '1.
|
101
|
+
version: '1.51'
|
102
102
|
type: :development
|
103
103
|
prerelease: false
|
104
104
|
version_requirements: !ruby/object:Gem::Requirement
|
105
105
|
requirements:
|
106
106
|
- - "~>"
|
107
107
|
- !ruby/object:Gem::Version
|
108
|
-
version: '1.
|
108
|
+
version: '1.51'
|
109
109
|
- !ruby/object:Gem::Dependency
|
110
110
|
name: rubocop-minitest
|
111
111
|
requirement: !ruby/object:Gem::Requirement
|
112
112
|
requirements:
|
113
113
|
- - "~>"
|
114
114
|
- !ruby/object:Gem::Version
|
115
|
-
version: 0.
|
115
|
+
version: 0.34.1
|
116
116
|
type: :development
|
117
117
|
prerelease: false
|
118
118
|
version_requirements: !ruby/object:Gem::Requirement
|
119
119
|
requirements:
|
120
120
|
- - "~>"
|
121
121
|
- !ruby/object:Gem::Version
|
122
|
-
version: 0.
|
122
|
+
version: 0.34.1
|
123
123
|
- !ruby/object:Gem::Dependency
|
124
124
|
name: rubocop-packaging
|
125
125
|
requirement: !ruby/object:Gem::Requirement
|
@@ -140,14 +140,14 @@ dependencies:
|
|
140
140
|
requirements:
|
141
141
|
- - "~>"
|
142
142
|
- !ruby/object:Gem::Version
|
143
|
-
version: '1.
|
143
|
+
version: '1.18'
|
144
144
|
type: :development
|
145
145
|
prerelease: false
|
146
146
|
version_requirements: !ruby/object:Gem::Requirement
|
147
147
|
requirements:
|
148
148
|
- - "~>"
|
149
149
|
- !ruby/object:Gem::Version
|
150
|
-
version: '1.
|
150
|
+
version: '1.18'
|
151
151
|
description: 'Driver to test the UI of applications using Ruby-GNOME2 by interacting
|
152
152
|
with them via Atspi.
|
153
153
|
|
@@ -183,14 +183,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
183
183
|
requirements:
|
184
184
|
- - ">="
|
185
185
|
- !ruby/object:Gem::Version
|
186
|
-
version:
|
186
|
+
version: 3.0.0
|
187
187
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
188
188
|
requirements:
|
189
189
|
- - ">="
|
190
190
|
- !ruby/object:Gem::Version
|
191
191
|
version: '0'
|
192
192
|
requirements: []
|
193
|
-
rubygems_version: 3.3
|
193
|
+
rubygems_version: 3.5.3
|
194
194
|
signing_key:
|
195
195
|
specification_version: 4
|
196
196
|
summary: Test Ruby-GNOME2 applications using Atspi
|