testcentricity_web 2.1.8.2 → 2.1.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +27 -0
- data/.rubocop.yml +41 -0
- data/.yardopts +2 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +28 -0
- data/README.md +1438 -0
- data/Rakefile +1 -0
- data/lib/devices/devices.yml +280 -0
- data/lib/testcentricity_web.rb +140 -0
- data/lib/testcentricity_web/browser_helper.rb +173 -0
- data/lib/testcentricity_web/data_objects_helper.rb +78 -0
- data/lib/testcentricity_web/drag_drop_helper.rb +15 -0
- data/lib/testcentricity_web/elements/button.rb +8 -0
- data/lib/testcentricity_web/elements/cell_button.rb +8 -0
- data/lib/testcentricity_web/elements/cell_checkbox.rb +38 -0
- data/lib/testcentricity_web/elements/cell_element.rb +62 -0
- data/lib/testcentricity_web/elements/cell_image.rb +8 -0
- data/lib/testcentricity_web/elements/cell_radio.rb +31 -0
- data/lib/testcentricity_web/elements/checkbox.rb +99 -0
- data/lib/testcentricity_web/elements/file_field.rb +45 -0
- data/lib/testcentricity_web/elements/image.rb +34 -0
- data/lib/testcentricity_web/elements/label.rb +8 -0
- data/lib/testcentricity_web/elements/link.rb +8 -0
- data/lib/testcentricity_web/elements/list.rb +54 -0
- data/lib/testcentricity_web/elements/list_button.rb +8 -0
- data/lib/testcentricity_web/elements/list_checkbox.rb +38 -0
- data/lib/testcentricity_web/elements/list_element.rb +51 -0
- data/lib/testcentricity_web/elements/list_radio.rb +31 -0
- data/lib/testcentricity_web/elements/radio.rb +73 -0
- data/lib/testcentricity_web/elements/select_list.rb +189 -0
- data/lib/testcentricity_web/elements/table.rb +473 -0
- data/lib/testcentricity_web/elements/textfield.rb +84 -0
- data/lib/testcentricity_web/environment.rb +249 -0
- data/lib/testcentricity_web/excel_helper.rb +242 -0
- data/lib/testcentricity_web/exception_queue_helper.rb +47 -0
- data/lib/testcentricity_web/page_objects_helper.rb +656 -0
- data/lib/testcentricity_web/page_sections_helper.rb +811 -0
- data/lib/testcentricity_web/siebel_open_ui_helper.rb +15 -0
- data/lib/testcentricity_web/ui_elements_helper.rb +425 -0
- data/lib/testcentricity_web/utility_helpers.rb +28 -0
- data/lib/testcentricity_web/version.rb +3 -0
- data/lib/testcentricity_web/webdriver_helper.rb +451 -0
- data/lib/testcentricity_web/world_extensions.rb +26 -0
- data/testcentricity_web.gemspec +42 -0
- metadata +52 -4
@@ -0,0 +1,26 @@
|
|
1
|
+
module WorldData
|
2
|
+
def environs
|
3
|
+
@environs ||= TestCentricity::EnvironData.new
|
4
|
+
end
|
5
|
+
|
6
|
+
# instantiate and register all data objects specified in data_objects method
|
7
|
+
def instantiate_data_objects
|
8
|
+
# return if data objects have already been instantiated and registered
|
9
|
+
return if TestCentricity::DataManager.loaded?
|
10
|
+
|
11
|
+
# register and instantiate all data objects
|
12
|
+
eval(TestCentricity::DataManager.register_data_objects(data_objects))
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
|
17
|
+
module WorldPages
|
18
|
+
# instantiate and register all page objects specified in page_objects method
|
19
|
+
def instantiate_page_objects
|
20
|
+
# return if page objects have already been instantiated and registered
|
21
|
+
return if TestCentricity::PageManager.loaded?
|
22
|
+
|
23
|
+
# register and instantiate all page objects
|
24
|
+
eval(TestCentricity::PageManager.register_page_objects(page_objects))
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'testcentricity_web/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'testcentricity_web'
|
8
|
+
spec.version = TestCentricityWeb::VERSION
|
9
|
+
spec.platform = Gem::Platform::RUBY
|
10
|
+
spec.required_ruby_version = '>= 2.1.1'
|
11
|
+
spec.authors = ['A.J. Mrozinski']
|
12
|
+
spec.email = ['testcentricity@gmail.com']
|
13
|
+
spec.summary = %q{A Page Object and Data Object Model Framework for desktop and mobile web testing}
|
14
|
+
spec.description = %q{
|
15
|
+
The TestCentricity™ Web core generic framework for desktop and mobile web site testing implements a Page Object Model DSL
|
16
|
+
for use with Cucumber, Capybara, and Selenium-Webdriver. The TestCentricity™ Web gem supports running automated tests
|
17
|
+
against locally hosted desktop browsers (Firefox, Chrome, Safari, or IE), locally hosted emulated mobile browsers (iOS,
|
18
|
+
Android, Windows Phone, Blackberry, Kindle Fire) running within an instance of Firefox or Chrome, a "headless" browser (using
|
19
|
+
Poltergeist and PhantomJS), mobile Safari browsers on iOS device simulators (using Appium and XCode on OS X), or cloud hosted
|
20
|
+
desktop or mobile web browsers (using the BrowserStack, Sauce Labs, CrossBrowserTesting, or TestingBot services).}
|
21
|
+
spec.homepage = ''
|
22
|
+
spec.license = 'BSD3'
|
23
|
+
|
24
|
+
spec.files = `git ls-files -z`.split("\x0")
|
25
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
26
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
27
|
+
spec.require_paths = ['lib']
|
28
|
+
spec.requirements << 'Capybara, Selenium-WebDriver'
|
29
|
+
|
30
|
+
spec.add_development_dependency 'bundler', '~> 1.5'
|
31
|
+
spec.add_development_dependency 'rake'
|
32
|
+
|
33
|
+
spec.add_dependency 'capybara', ['>= 2.1', '< 3.0']
|
34
|
+
spec.add_dependency 'test-unit'
|
35
|
+
spec.add_dependency 'selenium-webdriver', ['>= 2.50.0', '< 3.0']
|
36
|
+
spec.add_dependency 'poltergeist'
|
37
|
+
spec.add_dependency 'faker'
|
38
|
+
spec.add_dependency 'chronic', '0.10.2'
|
39
|
+
spec.add_dependency 'spreadsheet', '1.1.1'
|
40
|
+
spec.add_dependency 'os'
|
41
|
+
spec.add_dependency 'i18n'
|
42
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testcentricity_web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.8.
|
4
|
+
version: 2.1.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- A.J. Mrozinski
|
@@ -189,7 +189,56 @@ email:
|
|
189
189
|
executables: []
|
190
190
|
extensions: []
|
191
191
|
extra_rdoc_files: []
|
192
|
-
files:
|
192
|
+
files:
|
193
|
+
- ".gitignore"
|
194
|
+
- ".idea/.name"
|
195
|
+
- ".idea/encodings.xml"
|
196
|
+
- ".idea/misc.xml"
|
197
|
+
- ".idea/modules.xml"
|
198
|
+
- ".idea/vcs.xml"
|
199
|
+
- ".rubocop.yml"
|
200
|
+
- ".yardopts"
|
201
|
+
- Gemfile
|
202
|
+
- LICENSE.txt
|
203
|
+
- README.md
|
204
|
+
- Rakefile
|
205
|
+
- lib/devices/devices.yml
|
206
|
+
- lib/testcentricity_web.rb
|
207
|
+
- lib/testcentricity_web/browser_helper.rb
|
208
|
+
- lib/testcentricity_web/data_objects_helper.rb
|
209
|
+
- lib/testcentricity_web/drag_drop_helper.rb
|
210
|
+
- lib/testcentricity_web/elements/button.rb
|
211
|
+
- lib/testcentricity_web/elements/cell_button.rb
|
212
|
+
- lib/testcentricity_web/elements/cell_checkbox.rb
|
213
|
+
- lib/testcentricity_web/elements/cell_element.rb
|
214
|
+
- lib/testcentricity_web/elements/cell_image.rb
|
215
|
+
- lib/testcentricity_web/elements/cell_radio.rb
|
216
|
+
- lib/testcentricity_web/elements/checkbox.rb
|
217
|
+
- lib/testcentricity_web/elements/file_field.rb
|
218
|
+
- lib/testcentricity_web/elements/image.rb
|
219
|
+
- lib/testcentricity_web/elements/label.rb
|
220
|
+
- lib/testcentricity_web/elements/link.rb
|
221
|
+
- lib/testcentricity_web/elements/list.rb
|
222
|
+
- lib/testcentricity_web/elements/list_button.rb
|
223
|
+
- lib/testcentricity_web/elements/list_checkbox.rb
|
224
|
+
- lib/testcentricity_web/elements/list_element.rb
|
225
|
+
- lib/testcentricity_web/elements/list_radio.rb
|
226
|
+
- lib/testcentricity_web/elements/radio.rb
|
227
|
+
- lib/testcentricity_web/elements/select_list.rb
|
228
|
+
- lib/testcentricity_web/elements/table.rb
|
229
|
+
- lib/testcentricity_web/elements/textfield.rb
|
230
|
+
- lib/testcentricity_web/environment.rb
|
231
|
+
- lib/testcentricity_web/excel_helper.rb
|
232
|
+
- lib/testcentricity_web/exception_queue_helper.rb
|
233
|
+
- lib/testcentricity_web/page_objects_helper.rb
|
234
|
+
- lib/testcentricity_web/page_sections_helper.rb
|
235
|
+
- lib/testcentricity_web/siebel_open_ui_helper.rb
|
236
|
+
- lib/testcentricity_web/ui_elements_helper.rb
|
237
|
+
- lib/testcentricity_web/utility_helpers.rb
|
238
|
+
- lib/testcentricity_web/version.rb
|
239
|
+
- lib/testcentricity_web/webdriver_helper.rb
|
240
|
+
- lib/testcentricity_web/world_extensions.rb
|
241
|
+
- testcentricity_web.gemspec
|
193
242
|
homepage: ''
|
194
243
|
licenses:
|
195
244
|
- BSD3
|
@@ -211,10 +260,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
211
260
|
requirements:
|
212
261
|
- Capybara, Selenium-WebDriver
|
213
262
|
rubyforge_project:
|
214
|
-
rubygems_version: 2.
|
263
|
+
rubygems_version: 2.5.1
|
215
264
|
signing_key:
|
216
265
|
specification_version: 4
|
217
266
|
summary: A Page Object and Data Object Model Framework for desktop and mobile web
|
218
267
|
testing
|
219
268
|
test_files: []
|
220
|
-
has_rdoc:
|