testcentricity_apps 4.0.15 → 4.1.0
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 +15 -14
- data/LICENSE.md +1 -1
- data/README.md +374 -248
- data/lib/testcentricity_apps/app_core/appium_connect_helper.rb +58 -70
- data/lib/testcentricity_apps/app_core/screen_object.rb +58 -12
- data/lib/testcentricity_apps/app_core/screen_objects_helper.rb +29 -15
- data/lib/testcentricity_apps/app_core/screen_section.rb +63 -20
- data/lib/testcentricity_apps/app_elements/alert.rb +8 -8
- data/lib/testcentricity_apps/app_elements/app_element.rb +39 -9
- data/lib/testcentricity_apps/app_elements/list.rb +4 -4
- data/lib/testcentricity_apps/app_elements/menu.rb +2 -2
- data/lib/testcentricity_apps/app_elements/menubar.rb +0 -22
- data/lib/testcentricity_apps/app_elements/selectlist.rb +5 -5
- data/lib/testcentricity_apps/app_elements/switch.rb +1 -1
- data/lib/testcentricity_apps/app_elements/table.rb +397 -0
- data/lib/testcentricity_apps/data_objects/data_objects_helper.rb +3 -7
- data/lib/testcentricity_apps/data_objects/environment.rb +2 -54
- data/lib/testcentricity_apps/exception_queue_helper.rb +9 -10
- data/lib/testcentricity_apps/utility_helpers.rb +1 -0
- data/lib/testcentricity_apps/version.rb +1 -1
- data/lib/testcentricity_apps.rb +1 -0
- metadata +23 -22
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
module TestCentricity
|
|
2
2
|
class EnvironData < TestCentricity::DataSource
|
|
3
|
-
attr_accessor
|
|
4
|
-
attr_accessor :data_source_type
|
|
5
|
-
attr_accessor :generic_data
|
|
6
|
-
attr_accessor :environ_specific_data
|
|
3
|
+
attr_accessor :current, :data_source_type, :generic_data, :environ_specific_data
|
|
7
4
|
|
|
8
5
|
def self.find_environ(environ_name, source_type = :yaml)
|
|
9
6
|
raise 'No environment specified' if environ_name.nil?
|
|
@@ -71,56 +68,7 @@ module TestCentricity
|
|
|
71
68
|
@language = ENV['LANGUAGE'] || 'English'
|
|
72
69
|
@screen_shots = []
|
|
73
70
|
|
|
74
|
-
attr_accessor :test_environment
|
|
75
|
-
attr_accessor :session_state
|
|
76
|
-
attr_accessor :session_code
|
|
77
|
-
attr_accessor :app_session_id
|
|
78
|
-
attr_accessor :os
|
|
79
|
-
attr_accessor :device
|
|
80
|
-
attr_accessor :device_name
|
|
81
|
-
attr_accessor :device_type
|
|
82
|
-
attr_accessor :device_os
|
|
83
|
-
attr_accessor :device_os_version
|
|
84
|
-
attr_accessor :device_orientation
|
|
85
|
-
attr_accessor :screen_size
|
|
86
|
-
attr_accessor :platform
|
|
87
|
-
attr_accessor :driver
|
|
88
|
-
attr_accessor :driver_name
|
|
89
|
-
attr_accessor :appium_driver
|
|
90
|
-
attr_accessor :tunneling
|
|
91
|
-
attr_accessor :locale
|
|
92
|
-
attr_accessor :language
|
|
93
|
-
|
|
94
|
-
attr_accessor :parallel
|
|
95
|
-
attr_accessor :process_num
|
|
96
|
-
|
|
97
|
-
attr_accessor :signed_in
|
|
98
|
-
attr_accessor :portal_status
|
|
99
|
-
attr_accessor :portal_context
|
|
100
|
-
|
|
101
|
-
attr_accessor :user_id
|
|
102
|
-
attr_accessor :password
|
|
103
|
-
attr_accessor :app_id
|
|
104
|
-
attr_accessor :api_key
|
|
105
|
-
attr_accessor :option1
|
|
106
|
-
attr_accessor :option2
|
|
107
|
-
attr_accessor :option3
|
|
108
|
-
attr_accessor :option4
|
|
109
|
-
attr_accessor :dns
|
|
110
|
-
attr_accessor :db_username
|
|
111
|
-
attr_accessor :db_password
|
|
112
|
-
|
|
113
|
-
attr_accessor :ios_app_path
|
|
114
|
-
attr_accessor :ios_ipa_path
|
|
115
|
-
attr_accessor :ios_bundle_id
|
|
116
|
-
attr_accessor :ios_test_id
|
|
117
|
-
attr_accessor :android_apk_path
|
|
118
|
-
attr_accessor :android_app_id
|
|
119
|
-
attr_accessor :android_test_id
|
|
120
|
-
attr_accessor :default_max_wait_time
|
|
121
|
-
attr_accessor :deep_link_prefix
|
|
122
|
-
|
|
123
|
-
attr_accessor :mac_bundle_id
|
|
71
|
+
attr_accessor :test_environment, :session_state, :session_code, :app_session_id, :os, :device, :device_name, :device_type, :device_os, :device_os_version, :device_orientation, :screen_size, :platform, :driver, :driver_name, :appium_driver, :tunneling, :locale, :language, :parallel, :process_num, :signed_in, :portal_status, :portal_context, :user_id, :password, :app_id, :api_key, :option1, :option2, :option3, :option4, :dns, :db_username, :db_password, :ios_app_path, :ios_ipa_path, :ios_bundle_id, :ios_test_id, :android_apk_path, :android_app_id, :android_test_id, :default_max_wait_time, :deep_link_prefix, :mac_bundle_id
|
|
124
72
|
|
|
125
73
|
def initialize(data)
|
|
126
74
|
@user_id = data['USER_ID']
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
module TestCentricity
|
|
2
2
|
class ExceptionQueue
|
|
3
|
-
attr_accessor :error_queue
|
|
4
|
-
attr_accessor :active_ui_element
|
|
3
|
+
attr_accessor :error_queue, :active_ui_element
|
|
5
4
|
|
|
6
5
|
def self.enqueue_assert_equal(expected, actual, error_message)
|
|
7
6
|
is_equal = if expected.is_a?(String) && actual.is_a?(String)
|
|
@@ -9,17 +8,17 @@ module TestCentricity
|
|
|
9
8
|
else
|
|
10
9
|
expected == actual
|
|
11
10
|
end
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
return if is_equal
|
|
12
|
+
|
|
13
|
+
enqueue("#{error_message} to be\n '#{expected}'\nbut found\n '#{actual}'")
|
|
14
|
+
enqueue_screenshot
|
|
16
15
|
end
|
|
17
16
|
|
|
18
17
|
def self.enqueue_assert_not_equal(expected, actual, error_message)
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
return if expected != actual
|
|
19
|
+
|
|
20
|
+
enqueue("#{error_message} to not be equal to '#{expected}'")
|
|
21
|
+
enqueue_screenshot
|
|
23
22
|
end
|
|
24
23
|
|
|
25
24
|
def self.enqueue_exception(error_message)
|
data/lib/testcentricity_apps.rb
CHANGED
|
@@ -27,6 +27,7 @@ require 'testcentricity_apps/app_elements/menubar'
|
|
|
27
27
|
require 'testcentricity_apps/app_elements/radio'
|
|
28
28
|
require 'testcentricity_apps/app_elements/selectlist'
|
|
29
29
|
require 'testcentricity_apps/app_elements/switch'
|
|
30
|
+
require 'testcentricity_apps/app_elements/table'
|
|
30
31
|
require 'testcentricity_apps/app_elements/textfield'
|
|
31
32
|
|
|
32
33
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: testcentricity_apps
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.0
|
|
4
|
+
version: 4.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- A.J. Mrozinski
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-12-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -30,14 +30,14 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - '='
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version:
|
|
33
|
+
version: 10.1.1
|
|
34
34
|
type: :development
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - '='
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version:
|
|
40
|
+
version: 10.1.1
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: parallel_tests
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -94,6 +94,20 @@ dependencies:
|
|
|
94
94
|
- - ">="
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
96
|
version: 3.13.0
|
|
97
|
+
- !ruby/object:Gem::Dependency
|
|
98
|
+
name: selenium-webdriver
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - "~>"
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: 4.38.0
|
|
104
|
+
type: :development
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - "~>"
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: 4.38.0
|
|
97
111
|
- !ruby/object:Gem::Dependency
|
|
98
112
|
name: simplecov
|
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -128,14 +142,14 @@ dependencies:
|
|
|
128
142
|
requirements:
|
|
129
143
|
- - "~>"
|
|
130
144
|
- !ruby/object:Gem::Version
|
|
131
|
-
version:
|
|
145
|
+
version: 16.1.0
|
|
132
146
|
type: :runtime
|
|
133
147
|
prerelease: false
|
|
134
148
|
version_requirements: !ruby/object:Gem::Requirement
|
|
135
149
|
requirements:
|
|
136
150
|
- - "~>"
|
|
137
151
|
- !ruby/object:Gem::Version
|
|
138
|
-
version:
|
|
152
|
+
version: 16.1.0
|
|
139
153
|
- !ruby/object:Gem::Dependency
|
|
140
154
|
name: childprocess
|
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -206,20 +220,6 @@ dependencies:
|
|
|
206
220
|
- - ">="
|
|
207
221
|
- !ruby/object:Gem::Version
|
|
208
222
|
version: '0'
|
|
209
|
-
- !ruby/object:Gem::Dependency
|
|
210
|
-
name: selenium-webdriver
|
|
211
|
-
requirement: !ruby/object:Gem::Requirement
|
|
212
|
-
requirements:
|
|
213
|
-
- - '='
|
|
214
|
-
- !ruby/object:Gem::Version
|
|
215
|
-
version: 4.26.0
|
|
216
|
-
type: :runtime
|
|
217
|
-
prerelease: false
|
|
218
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
219
|
-
requirements:
|
|
220
|
-
- - '='
|
|
221
|
-
- !ruby/object:Gem::Version
|
|
222
|
-
version: 4.26.0
|
|
223
223
|
- !ruby/object:Gem::Dependency
|
|
224
224
|
name: test-unit
|
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -281,6 +281,7 @@ files:
|
|
|
281
281
|
- lib/testcentricity_apps/app_elements/radio.rb
|
|
282
282
|
- lib/testcentricity_apps/app_elements/selectlist.rb
|
|
283
283
|
- lib/testcentricity_apps/app_elements/switch.rb
|
|
284
|
+
- lib/testcentricity_apps/app_elements/table.rb
|
|
284
285
|
- lib/testcentricity_apps/app_elements/textfield.rb
|
|
285
286
|
- lib/testcentricity_apps/appium_server.rb
|
|
286
287
|
- lib/testcentricity_apps/data_objects/data_objects_helper.rb
|
|
@@ -306,7 +307,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
306
307
|
requirements:
|
|
307
308
|
- - ">="
|
|
308
309
|
- !ruby/object:Gem::Version
|
|
309
|
-
version: 3.
|
|
310
|
+
version: 3.1.0
|
|
310
311
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
311
312
|
requirements:
|
|
312
313
|
- - ">="
|
|
@@ -314,7 +315,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
314
315
|
version: '0'
|
|
315
316
|
requirements:
|
|
316
317
|
- Appium
|
|
317
|
-
rubygems_version: 3.
|
|
318
|
+
rubygems_version: 3.4.10
|
|
318
319
|
signing_key:
|
|
319
320
|
specification_version: 4
|
|
320
321
|
summary: A Screen Object Model Framework for MacOS desktop app and iOS and/or Android
|