testcentricity 3.0.4 → 3.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 +29 -0
- data/README.md +48 -46
- data/lib/testcentricity/app_core/appium_connect_helper.rb +6 -8
- data/lib/testcentricity/app_core/screen_section.rb +0 -1
- data/lib/testcentricity/app_elements/app_element_helper.rb +14 -4
- data/lib/testcentricity/version.rb +1 -1
- metadata +13 -158
- data/.gitignore +0 -40
- data/.rspec +0 -4
- data/.rubocop.yml +0 -38
- data/.ruby-version +0 -1
- data/.simplecov +0 -9
- data/CODE_OF_CONDUCT.md +0 -13
- data/Gemfile +0 -6
- data/Rakefile +0 -63
- data/config/cucumber.yml +0 -146
- data/config/locales/en-US.yml +0 -56
- data/config/test_data/data.yml +0 -76
- data/features/deep_links.feature +0 -38
- data/features/login.feature +0 -30
- data/features/navigation.feature +0 -43
- data/features/step_definitions/generic_steps.rb +0 -67
- data/features/support/android/screens/about_screen.rb +0 -11
- data/features/support/android/screens/base_app_screen.rb +0 -31
- data/features/support/android/screens/biometrics_screen.rb +0 -17
- data/features/support/android/screens/checkout_address_screen.rb +0 -17
- data/features/support/android/screens/checkout_payment_screen.rb +0 -22
- data/features/support/android/screens/geo_location_screen.rb +0 -28
- data/features/support/android/screens/login_screen.rb +0 -18
- data/features/support/android/screens/product_item_screen.rb +0 -39
- data/features/support/android/screens/products_screen.rb +0 -27
- data/features/support/android/screens/qr_code_scanner_screen.rb +0 -15
- data/features/support/android/screens/saucebot_screen.rb +0 -16
- data/features/support/android/screens/webview_screen.rb +0 -13
- data/features/support/android/sections/list_items/product_list_item.rb +0 -13
- data/features/support/android/sections/nav_widgets/nav_menu.rb +0 -39
- data/features/support/data/product_data.rb +0 -27
- data/features/support/data/user_data.rb +0 -17
- data/features/support/env.rb +0 -62
- data/features/support/hooks.rb +0 -135
- data/features/support/ios/screens/about_screen.rb +0 -11
- data/features/support/ios/screens/base_app_screen.rb +0 -20
- data/features/support/ios/screens/biometrics_screen.rb +0 -17
- data/features/support/ios/screens/checkout_address_screen.rb +0 -17
- data/features/support/ios/screens/checkout_payment_screen.rb +0 -22
- data/features/support/ios/screens/geo_location_screen.rb +0 -32
- data/features/support/ios/screens/login_screen.rb +0 -18
- data/features/support/ios/screens/product_item_screen.rb +0 -39
- data/features/support/ios/screens/products_screen.rb +0 -27
- data/features/support/ios/screens/qr_code_scanner_screen.rb +0 -11
- data/features/support/ios/screens/saucebot_screen.rb +0 -16
- data/features/support/ios/screens/webview_screen.rb +0 -13
- data/features/support/ios/sections/list_items/product_list_item.rb +0 -13
- data/features/support/ios/sections/nav_widgets/nav_bar.rb +0 -31
- data/features/support/ios/sections/nav_widgets/nav_menu.rb +0 -41
- data/features/support/shared_components/screens/base_app_screen.rb +0 -35
- data/features/support/shared_components/screens/checkout_address_screen.rb +0 -17
- data/features/support/shared_components/screens/checkout_payment_screen.rb +0 -22
- data/features/support/shared_components/screens/login_screen.rb +0 -39
- data/features/support/shared_components/screens/saucebot_screen.rb +0 -17
- data/features/support/shared_components/screens/webview_screen.rb +0 -12
- data/features/support/shared_components/sections/nav_menu.rb +0 -58
- data/features/support/world_data.rb +0 -15
- data/features/support/world_pages.rb +0 -30
- data/reports/.keep +0 -1
- data/spec/fixtures/page_object.rb +0 -22
- data/spec/fixtures/page_section_object.rb +0 -21
- data/spec/fixtures/screen_object.rb +0 -16
- data/spec/fixtures/screen_section_object.rb +0 -16
- data/spec/spec_helper.rb +0 -33
- data/spec/testcentricity/elements/button_spec.rb +0 -18
- data/spec/testcentricity/elements/checkbox_spec.rb +0 -28
- data/spec/testcentricity/elements/image_spec.rb +0 -13
- data/spec/testcentricity/elements/label_spec.rb +0 -18
- data/spec/testcentricity/elements/list_spec.rb +0 -13
- data/spec/testcentricity/elements/ui_element_spec.rb +0 -72
- data/spec/testcentricity/mobile/appium_connect_spec.rb +0 -117
- data/spec/testcentricity/mobile/screen_object_spec.rb +0 -63
- data/spec/testcentricity/mobile/screen_section_object_spec.rb +0 -56
- data/spec/testcentricity/version_spec.rb +0 -7
- data/spec/testcentricity/web/browser_spec.rb +0 -41
- data/spec/testcentricity/web/local_webdriver_spec.rb +0 -86
- data/spec/testcentricity/web/mobile_webdriver_spec.rb +0 -123
- data/spec/testcentricity/web/page_object_spec.rb +0 -85
- data/spec/testcentricity/web/page_section_object_spec.rb +0 -72
- data/testcentricity.gemspec +0 -48
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
describe TestCentricity::PageSection, web: true do
|
|
4
|
-
before :context do
|
|
5
|
-
@test_page = TestPage.new
|
|
6
|
-
@test_section = @test_page.section1
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
context 'section object traits' do
|
|
10
|
-
it 'returns section name' do
|
|
11
|
-
expect(@test_section.section_name).to eq('Basic Test Section')
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
it 'returns section locator' do
|
|
15
|
-
expect(@test_section.get_locator).to eq('div#section')
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
it 'returns class' do
|
|
19
|
-
expect(@test_section.class).to eql TestPageSection
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
it 'returns css locator type' do
|
|
23
|
-
expect(@test_section.get_locator_type).to eql :css
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
it 'registers with type section' do
|
|
27
|
-
expect(@test_section.get_object_type).to eql :section
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
it 'returns parent list object' do
|
|
31
|
-
expect(@test_section.get_parent_list).to eql nil
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
context 'section object with UI elements' do
|
|
36
|
-
it 'responds to element' do
|
|
37
|
-
expect(@test_section).to respond_to(:element1)
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
it 'responds to button' do
|
|
41
|
-
expect(@test_section).to respond_to(:button1)
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
it 'responds to textfield' do
|
|
45
|
-
expect(@test_section).to respond_to(:field1)
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
it 'responds to link' do
|
|
49
|
-
expect(@test_section).to respond_to(:link1)
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
it 'responds to range' do
|
|
53
|
-
expect(@test_section).to respond_to(:range1)
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
it 'responds to image' do
|
|
57
|
-
expect(@test_section).to respond_to(:image1)
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
it 'responds to radio' do
|
|
61
|
-
expect(@test_section).to respond_to(:radio1)
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
it 'responds to checkbox' do
|
|
65
|
-
expect(@test_section).to respond_to(:check1)
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
it 'responds to section' do
|
|
69
|
-
expect(@test_section).to respond_to(:section2)
|
|
70
|
-
end
|
|
71
|
-
end
|
|
72
|
-
end
|
data/testcentricity.gemspec
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
-
require 'testcentricity/version'
|
|
5
|
-
|
|
6
|
-
Gem::Specification.new do |spec|
|
|
7
|
-
spec.name = 'testcentricity'
|
|
8
|
-
spec.version = TestCentricity::VERSION
|
|
9
|
-
spec.platform = Gem::Platform::RUBY
|
|
10
|
-
spec.required_ruby_version = '>= 2.7.5'
|
|
11
|
-
spec.authors = ['A.J. Mrozinski']
|
|
12
|
-
spec.email = ['testcentricity@gmail.com']
|
|
13
|
-
spec.summary = %q{A Page Object Model Framework for native mobile app and desktop/mobile web portal testing}
|
|
14
|
-
spec.description = '
|
|
15
|
-
The TestCentricity™ core framework for native mobile iOS and Android apps and desktop/mobile web testing implements a Page Object
|
|
16
|
-
Model DSL for use with Cucumber, Appium, Capybara, and Selenium-Webdriver v4.x. The gem also facilitates the configuration of the
|
|
17
|
-
appropriate Appium capabilities required to establish a connection with locally or cloud (using BrowserStack, Sauce Labs, or
|
|
18
|
-
TestingBot services) hosted iOS or Android devices or simulators. For more information on desktop/mobile web testing with this
|
|
19
|
-
gem, refer to docs for the TestCentricity™ Web gem (https://www.rubydoc.info/gems/testcentricity_web).'
|
|
20
|
-
spec.homepage = 'https://github.com/TestCentricity/testcentricity'
|
|
21
|
-
spec.license = 'BSD-3-Clause'
|
|
22
|
-
spec.metadata = {
|
|
23
|
-
'changelog_uri' => 'https://github.com/TestCentricity/testcentricity/blob/master/CHANGELOG.md',
|
|
24
|
-
'documentation_uri' => 'https://www.rubydoc.info/gems/testcentricity'
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
spec.files = `git ls-files -z`.split("\x0")
|
|
28
|
-
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
29
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
30
|
-
spec.require_paths = ['lib']
|
|
31
|
-
spec.requirements << 'Appium, TestCentricity Web'
|
|
32
|
-
|
|
33
|
-
spec.add_development_dependency 'bundler'
|
|
34
|
-
spec.add_development_dependency 'cucumber'
|
|
35
|
-
spec.add_development_dependency 'cuke_modeler', '~> 3.0'
|
|
36
|
-
spec.add_development_dependency 'parallel_tests'
|
|
37
|
-
spec.add_development_dependency 'rake'
|
|
38
|
-
spec.add_development_dependency 'require_all', '=1.5.0'
|
|
39
|
-
spec.add_development_dependency 'rspec', '~> 3.10'
|
|
40
|
-
spec.add_development_dependency 'simplecov', ['~> 0.18']
|
|
41
|
-
spec.add_development_dependency 'yard', ['>= 0.9.0']
|
|
42
|
-
|
|
43
|
-
spec.add_runtime_dependency 'appium_lib'
|
|
44
|
-
spec.add_runtime_dependency 'curb'
|
|
45
|
-
spec.add_runtime_dependency 'json'
|
|
46
|
-
spec.add_runtime_dependency 'testcentricity_web', '>= 4.2.4'
|
|
47
|
-
spec.add_runtime_dependency 'test-unit'
|
|
48
|
-
end
|