gnome_app_driver 0.3.1 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +15 -0
- data/README.md +51 -66
- data/lib/gnome_app_driver/version.rb +1 -1
- metadata +28 -16
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,20 @@
|
|
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
|
+
|
14
|
+
## 0.3.2 / 2022-09-02
|
15
|
+
|
16
|
+
* Loosen dependency on gobject-introspection to allow use with version 4.0
|
17
|
+
|
3
18
|
## 0.3.1 / 2022-01-26
|
4
19
|
|
5
20
|
* Drop support for Ruby version 2.5
|
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,43 +1,55 @@
|
|
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
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.2'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '5.0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '3.2'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '5.0'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: gtk3
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
|
-
- - "
|
37
|
+
- - ">="
|
32
38
|
- !ruby/object:Gem::Version
|
33
39
|
version: '3.2'
|
40
|
+
- - "<"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '5.0'
|
34
43
|
type: :development
|
35
44
|
prerelease: false
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
37
46
|
requirements:
|
38
|
-
- - "
|
47
|
+
- - ">="
|
39
48
|
- !ruby/object:Gem::Version
|
40
49
|
version: '3.2'
|
50
|
+
- - "<"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '5.0'
|
41
53
|
- !ruby/object:Gem::Dependency
|
42
54
|
name: minitest
|
43
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,56 +98,56 @@ dependencies:
|
|
86
98
|
requirements:
|
87
99
|
- - "~>"
|
88
100
|
- !ruby/object:Gem::Version
|
89
|
-
version: '1.
|
101
|
+
version: '1.51'
|
90
102
|
type: :development
|
91
103
|
prerelease: false
|
92
104
|
version_requirements: !ruby/object:Gem::Requirement
|
93
105
|
requirements:
|
94
106
|
- - "~>"
|
95
107
|
- !ruby/object:Gem::Version
|
96
|
-
version: '1.
|
108
|
+
version: '1.51'
|
97
109
|
- !ruby/object:Gem::Dependency
|
98
110
|
name: rubocop-minitest
|
99
111
|
requirement: !ruby/object:Gem::Requirement
|
100
112
|
requirements:
|
101
113
|
- - "~>"
|
102
114
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.
|
115
|
+
version: 0.34.1
|
104
116
|
type: :development
|
105
117
|
prerelease: false
|
106
118
|
version_requirements: !ruby/object:Gem::Requirement
|
107
119
|
requirements:
|
108
120
|
- - "~>"
|
109
121
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
122
|
+
version: 0.34.1
|
111
123
|
- !ruby/object:Gem::Dependency
|
112
124
|
name: rubocop-packaging
|
113
125
|
requirement: !ruby/object:Gem::Requirement
|
114
126
|
requirements:
|
115
127
|
- - "~>"
|
116
128
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.5.
|
129
|
+
version: 0.5.1
|
118
130
|
type: :development
|
119
131
|
prerelease: false
|
120
132
|
version_requirements: !ruby/object:Gem::Requirement
|
121
133
|
requirements:
|
122
134
|
- - "~>"
|
123
135
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.5.
|
136
|
+
version: 0.5.1
|
125
137
|
- !ruby/object:Gem::Dependency
|
126
138
|
name: rubocop-performance
|
127
139
|
requirement: !ruby/object:Gem::Requirement
|
128
140
|
requirements:
|
129
141
|
- - "~>"
|
130
142
|
- !ruby/object:Gem::Version
|
131
|
-
version: '1.
|
143
|
+
version: '1.18'
|
132
144
|
type: :development
|
133
145
|
prerelease: false
|
134
146
|
version_requirements: !ruby/object:Gem::Requirement
|
135
147
|
requirements:
|
136
148
|
- - "~>"
|
137
149
|
- !ruby/object:Gem::Version
|
138
|
-
version: '1.
|
150
|
+
version: '1.18'
|
139
151
|
description: 'Driver to test the UI of applications using Ruby-GNOME2 by interacting
|
140
152
|
with them via Atspi.
|
141
153
|
|
@@ -171,14 +183,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
171
183
|
requirements:
|
172
184
|
- - ">="
|
173
185
|
- !ruby/object:Gem::Version
|
174
|
-
version:
|
186
|
+
version: 3.0.0
|
175
187
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
176
188
|
requirements:
|
177
189
|
- - ">="
|
178
190
|
- !ruby/object:Gem::Version
|
179
191
|
version: '0'
|
180
192
|
requirements: []
|
181
|
-
rubygems_version: 3.
|
193
|
+
rubygems_version: 3.5.3
|
182
194
|
signing_key:
|
183
195
|
specification_version: 4
|
184
196
|
summary: Test Ruby-GNOME2 applications using Atspi
|